(Areas 2A, 2B)
Format 3 of the DEFINE command enables you to redefine all or part of an existing field or array element. This command defines:
Sample DEFINE Command Format 3
►►─┬─ DEFINE ─┬─ fieldname1=fieldname2 ─┬─ n1 ─ THRU ─ n2 ─┬─ data-type ──────► └─ DEF ────┘ └─ n1 ─────────────┘ ►─┬─────────────────────────────────────────────────┬────────────────────────► └─┬─ HEADING ─┬─ ' heading 1 ' ─┬───────────────┬─┘ └─ HDG ─────┘ └─ 'heading 2' ─┘ ►─┬────────────────────────┬─┬──────────────────────────┬────────────────────►◄ └─ PICTURE ─ 'edit ptn' ─┘ └─ OCCURS ─ n ─┬─────────┬─┘ └─ TIMES ─┘
Is a user-supplied name assigned to the location specified in the DEFINE command.
Is the predefined name of a field or element of an array which you must redefine.
Indicates, in bytes, the relative starting and ending positions, respectively, of the field within the predefined fieldname2.
TO or – (dash) can be used in place of THRU.
Indicates that the field is one byte long and that integer n1 is the position of the field.
Describes the data type of the field. Use the following entries:
Indicates that the field contains alphanumeric data and can contain any EBCDIC character.
Works the same as data-type X for moves and compare operations but on a PRINT statement displays in HEX. For example, A12 would display as C1F1F2 on the print line. Maximum length is 62.
Indicates that the field contains zoned decimal data. d indicates the number of implied decimal places.
Indicates that the field contains packed decimal data. d indicates the number of implied decimal places.
Indicates that the field contains binary data. d indicates the number of
Indicates that the field contains binary data. d indicates the number of implied decimal places.
Indicates that the field contains unsigned binary data. d indicates the number of implied decimal places.
Indicates that the field contains bit string data and must have a length of only one byte.
Specifies an optional separator used to denote that the literals that follow are to be interpreted as headings. HDG can be used in place of HEADING.
Enables you to assign one or two heading lines to the field. The heading lines appear as column headings if the field is printed in a report.
Assigns an edit mask to be used to edit the field when it is printed, overriding the Reporting Facility default editing. PIC can be used in place of PICTURE in the command.
Indicates that this is an array definition occurring n times in contiguous locations beginning with the first byte of fieldname1. Using the keyword TIMES is optional, but recommended for documentation purposes.
|
Copyright © 2014 CA.
All rights reserved.
|
|