Posted: Thu Jun 11, 2009 9:07 pm Post subject: SYNCSORT "readability"
In order to increase "readability in SYNCSORT parameters, does anyone know if SYNCSORT (not DFSORT etc.) supports some form of "EQUATE" (or similar) to allow something like the following (but not just in OUTREC processing) -
Native SYNCSORT version
Desired version EQUATE RECCODE 5,5
EQUATE RECTYPE 13,2
EQUATE MAXH 30
EQUATE MAXD 57
EQUATE MAXW 65
MAXW:C'0120')), _________________ The only stupid question is the one you DON'T ask!
Basically, create the SYMNAMES file (I used FB/80/27920) and put in it entries like
** Comments start with an asterisk in col 1, or can be placed after
** parameters providing that at least one blank precedes them
RecType,4,6,CH Record type (offset 4, 6 chars)
RecCode,*,4,CH Record code (follows Record type)
** You can specify values too!
MastRec,C'100000' Master record is the 100000
If you include the DD SYMNAMES in the SYNCSORT JCL, in the sort parameters you can then use constructs like -
Including the DD SYMNOUT (optional) causes SYNCSORT to write a "report" of the interpretation of the symbolic names.
One small thing to remember - SYMNAMES entries are CaSe sensitive.
"Rectype" is NOT the same as "RecType" (as I discovered in testing!)
Hoping this helps someone else.... _________________ The only stupid question is the one you DON'T ask!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum