Previous Topic: Defaults for Optional Panel EntriesNext Topic: Column Format


Defaults for Optional FIELD Entries

The following FIELD entries default to the panel values.

INFILL
OUTFILL
CASETRAN
ERRHANDL
REQUIRED
ALLOW‑EOF
HARDWARE‑INSERT

The following defaults apply to other FIELD entries:

LENGTH

Defaults to the length of the INITIAL‑VALUE. It is not necessary to specify the length of text data.

LEVEL

Defaults to 2 for the first field, to 3 for the first field after a TYPE G field, and to the LEVEL of the previous field for all other fields. It is only necessary to specify LEVEL when a field follows a repeating group.

ROW

Defaults to 1 for the first field. Otherwise, ROW defaults to the ROW of the previous field. If that would cause an error, the next ROW is used. Therefore, specifying COLUMN 1 and no ROW places the field on COLUMN 1 of the next ROW. Also, the default ROW automatically steps to the next ROW for the first field in a group and the first field after a group.

COLUMN

Defaults to the COLUMN immediately following the previous field. If that causes an error and ROW is also not specified, COLUMN 1 on the next ROW is used. As long as the fields are on the ROW, it might be easiest to use PDF LAYOUT to adjust them to the appropriate column.

When neither ROW nor COLUMN is specified, the field is placed in the first available location that does not cause an error. (If the FIELD LENGTH is greater than the panel WIDTH minus one, there is no location that avoids an error.)

ATTRIBUTES

Defaults to the values specified in SET PANEL TFATTRIBUTE and IFATTRIBUTE commands. If neither ATTRIBUTES nor INITIAL‑VALUE is specified, IFATTRIBUTE is used. If ATTRIBUTES is not specified for a field with an INITIAL‑VALUE, TFATTRIBUTE is used.

Note: Some errors cannot be recognized until the next FIELD has begun. This is true for the error messages that begin with STPCB. Specifying only ‑>FIELD on the first statement for each field makes it easier to interpret these errors.

PROGRAM Format

a CA Ideal program, when exported or imported using the Source Transport Utility, has the following format. For more information about descriptions of the lowercase values, see the Creating Programs Guide.

‑>PROGRAM pgmname VERSION version SYSTEM system
[STATUS stat] [IDEAL nn.nx]
[DATE‑CREATED yymmdd CREATED‑BY user‑name]
[DATE‑MODIFIED yymmdd TIME‑MODIFIED hhmm MODIFIED‑BY user‑name]
[DATE‑COMPILED yymmdd TIME‑COMPILED hhmm]
[RUN‑STATUS run‑status]
[NEW‑COPY‑ON‑CALL x] [UPDATE‑DB x] [UPDATE‑DB2 x]
[LANGUAGE lang] [TARGET‑DATE yymmdd] [ACTUAL‑DATE yymmdd]

[SHORT‑DESC  'short‑description']
[ TEXT1 '1st line of long‑description' ]
[[TEXT2 '2nd line of long‑description']]
[[TEXT3 '3rd line of long‑description']]
[[TEXT4 '4th line of long‑description']]
[[TEXT5 '5th line of long‑description']]

[USES‑DATAVIEW dvw‑name [VERSION version]]
[USES‑DATAVIEW authid.db2‑dvw‑name QUALIFIED x]
[USES‑PANEL    pnl‑name [VERSION version] [SYSTEM sss]]
[USES‑REPORT   rpt‑name [VERSION version] [SYSTEM sss]]
[USES‑PROGRAM  pgm‑name [VERSION version] [SYSTEM sss]]

[ENVIRONMENT                     ]
[ SQL dbtype                     ]
[ AUTHORIZATION authid           ]
[ MODE sqlmode                   ]
[ ISOLATION‑LEVEL isolevel       ]
[ OPTMODE optmode                ]
[ OPTMSGS‑PREP msgopt            ]
[ OPTMSGS‑EXEC msgopt            ]
[ DATEFORM form                  ]
[ TIMEFORM form                  ]
[             {SEC}              ]
[ WAITTIME nn {MIN}              ]
[                                ]
[ PRIORITY nn                    ]
[ CBSIO nnnnnn                   ]
[ DECPOINT x                     ]
[ STRDELIM x                     ]
[ WORKSPACE nnnn                 ]

[ ‑>WORKING‑DATA                 ]
[[columnar format working data]  ]

[ ‑>PARAMETER‑DATA                ]
[[columnar format parameter data] ]

[ ‑>PROCEDURE‑DATA                ]
[columnar format procedure data]  ]

‑>END‑PROGRAM

Note:

When a program is imported, the environment section is ignored if the target CA Ideal is not capable of SQL access. If the target CA Ideal is capable of SQL access and the environment section is not present, default values are used.