Optional. Use FORMAT to specify print line locations for elements of your input file and/or constants. G1G001 concatenates these fields and constants according to the following rules:
-
FORMAT parameters are executed in the order in which defined.
-
The first field to be formatted must not be a constant.
-
There must be at least two fields to be formatted.
-
Two consecutive non-constant fields (for example, input record elements) automatically have a space between them.
-
All leading blanks of non-constant fields (for example, input record elements) are suppressed and are not printed on the print line.
-
No spaces print between constants and input record elements unless enabled for in the length of the constant. (In other words, if there is a 2-byte constant, and you want to print a space between the constant and the input record element that follows it, define a length of 3 for the constant.)
Position |
Field Name |
Description |
---|---|---|
1-6 |
Keyword |
Required. FORMAT is the only acceptable entry. |
7-8 |
Comment |
Optional. You can enter any value you want here to identify this format operation; G1G001 will ignore this field. No default. |
10-12 |
Print Location |
Required. Location on the print line to which you want the input record elements or constants moved. No default. |
14-15 |
Total Length |
Required. The length the data concatenated with this format is to occupy on the print line. You can enter a number between 1 and 99. No default. |
17-1925-2733-3541-4349-5157-5965-6773-75 |
Location Of Fields To Be Formatted |
Required. The starting position in the input record for the data that is to print on the print line, or the constant ID number. You can enter an input position or C01-C08 for each of these LOCATION fields. You must enter at least 2 fields, and no more than 8. The first blank field will terminate the processing of this line. No default. |
2028364452606876 |
Constant Treatment |
Required. A code controlling the formatting of the constant (this is only valid if the corresponding LOCATION field is a constant):
|
21-2229-3037-3845-4653-5461-6269-7077-78 |
Length Of Fields To Be Formatted |
Required. The length of each of the input record elements or constants defined in the LOCATION fields. No default. |
2331394755637179 |
Zero Suppression |
Optional. Code indicating whether to suppress leading zeros from the corresponding input record element or constant. Enter a Z if leading zeros should be suppressed. Default is to not print leading zeros. |
80 |
Force Print Of Current Line |
Optional. Enter one of the following codes to indicate whether or not you want to force the current line to be printed:
|