>> (Garbled by Copy/Paste.)
Gil,
Did you try enclosing the control cards using "Courier New" font ? It retains
the spacing.
>> So each control statement must either be labelled or a comment, since it's
>> impossible not to use column 1 with RECFM=F.
Not sure what you meant by IMPOSSIBLE . You don’t have to always use column 1.
You can leave blank lines in between control cards and DFSORT will simply
ignore them and scan for the next available keyword. Here is an example.
//SYSIN DD *
OPTION COPY
SORT FIELDS=(1,3,CH,A)
OUTREC OVERLAY=(35:C'Ibm-Main')
/*
>>.) I suspect colon has to do with field specification,
Not exactly. Colon Specifies the position (column) for a separation field,
input field, decimal constant, arithmetic expression, or sequence number,
relative to the start of the reformatted input record. Unused
space preceding the specified column is padded with EBCDIC blanks. The
following rules apply:
• c must be a number between 1 and 32752.
• c: must be followed by a separation field, input field, decimal
constant, or arithmetic expression.
• c must not overlap the previous input field or separation field in the
reformatted input record.
• for variable-length records, c: must not be specified before the first
input field (the record
descriptor word) nor after the variable part of the input record.
• The colon (:) is treated like the comma (,) or semicolon (;) for
continuation to another line.
≫but I can find no unified definition of fields.
Had you searched the application programming guide for P,M or FIELDS= or
BUILD= , you would have found a detail description of how the reformatted
INREC/OUTREC consists of
Example
https://www.ibm.com/docs/en/zos/2.5.0?topic=statements-inrec-control-statement
Scroll down to the section of P,M,a and you will find detailed description.
Thanks,
Kolusu
DFSORT Development
IBM Corporation
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN