- Specify the column in which a field should begin.
- Specify halfword, fullword, or doubleword alignment.
- Convert a numeric field to a printable format with editing capabilities.
- Convert numeric data to another numeric data format.
Perform minimum and maximum functions and arithmetic operations (multiplication, division, modulus, addition, subtraction) with numeric fields and constants.
Change an input field to a replacement value in the reformatted output record if the input field equals a search constant. The replacement value can be a constant or another field from the input record.
- Convert a field to its printable hexadecimal representation.
- Left-justify, right-justify or “squeeze” (remove additional blanks) the data in a field.
- Create a variable-length field from justified or squeezed fields.
- Change the case of EBCDIC letters from lowercase to uppercase or vice-versa, translate ASCII characters to EBCDIC ones or vice-versa, or transform data to printable hexadecimal (0-9 or A-F) or binary (0 or 1), or vice-versa, or translate data based on an alternative collating sequence (ALTSEQ) table in effect.
- Convert date data.
- Convert a 2-digit year field to a 4-digit year field.
- Convert a full-date field to a printable field with separators.
- Convert any full-date field to a Gregorian or Julian date field.
The figure below illustrates how the FIELDS subparameters should be specified and describes their functions. For information on the EDIT, LENGTH, Mm, and SIGNS subparameters, see How to Convert Numeric Data.
p | For INREC, the position value indicates the first byte of the field relative to the beginning of the input record after E15 processing, if specified, has completed. For OUTREC, the position value indicates the first byte of the field after both E15 and INREC processing, if specified, have completed. If the OUTREC parameter of the OUTFIL control statement is used, the position value refers to the record after E35 processing as well. The field must begin on a byte boundary. |
l | The length value indicates the length of the field. The length must be an integer number of bytes. |
%pp | Identifies a fixed-length parsed field. See PARSE Parameter (Optional) for information on creating parsed %pp fields. |
The following describes the c: subparameter:
c: |
Use the c: subparameter to define the column in which the field should begin. MFX will add the appropriate number of blanks to achieve the proper alignment. This subparameter can be specified for all types of fields. |
The term expression represents the following syntax:
|
|
|
fy2fP |
Use this subparameter together with the p,l elements to indicate the conversion of a full-date field to a packed decimal format. The year portion of the date is converted to a 4-digit year using the century window defined by the CENTWIN parameter. The century window is not used for the special values, which are expanded with characters of the proper format. See Full-Date Field Conversions fy2fP. |
|
|
Use this subparameter together with the p,l elements to indicate the conversion of a full-date field to a printable Gregorian date. The resultant field can be created with a separator character by specifying the DT subparameter or without a separator by specifying the DTNS subparameter. For Y2x fields, the year portion of the date is converted to a 4-digit year using the century window defined by the CENTWIN parameter. Invalid input date values will be converted to all nines in the digit fields. All full-date Y2x and YYx fields are vald input fields. See Elements of expression. |
|||||||||||||||
|
|
|||||||||||||||
|
|
|||||||||||||||
|
Use this subparameter together with the p,l elements to
indicate the conversion of a full-date Gregorian date field to a
printable Julian date. The resultant field can be created with a
separator character by specifying the YD subparameter or without a
separator by specifying the YDNS subparameter. The year portion of
the date is converted to a 4-digit year using the century window
defined by the CENTWIN parameter. Invalid input date values will be
converted to all nines in the digit fields. See Valid Length l and Format f Combinations
for the valid formats that can be specified for the Gregorian dates.
|
|||||||||||||||
|
|
|||||||||||||||
|
|
|
fiyxx,TOJUL=foyxx | TOJUL converts full-date Gregorian or Julian year fields into a Julian format full-date field. For printable output fields, TOJUL=foyxx(c) may be used to create an output date with c as the separator, where c can be any character except a blank. The eligible output foyxx formats are listed below along with the length and format of the fields. |
|
fiyxx,TOGREG=foyxx | TOGREG converts full-date Gregorian or Julian year fields into a Gregorian format fulldate field. For printable output fields, TOGREG=foyxx(c) may be used to create an otuput date with c as the separator, where c can be any character except a blank. The eligible output foyxx formats are listed below along with the length and format of the fields. |
|
fiyxx,WEEKDAY={CHAR3,CHAR9,DIGIT1} | The WEEKDAY parameter creates an output field that is a printable indicator of the day of the week of the full-date input field. There are 3 types of output indicators that you can create. The output field lengths for CHAR3, CHAR9, and DIGIT1 and 3, 9, and 1 respectively. CHAR9 is right-padded with blanks when necessary. |
|