>> The question is, what's the simplest way to do this with a *standard* z/OS >> utility (i.e. that comes with z/OS), or with a standard sort product (e.g. >> DFSORT or SyncSort), where it is all in a self-contained job?
Michael, DFSORT can generate the sequenced records quite easily. Use the following JCL. It will generate an 8 byte sequence number. You can change the REPEAT=n to the desired number of records that you want. //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * ABC //SORTOUT DD SYSOUT=* //SYSIN DD * OPTION COPY OUTFIL REPEAT=1000, BUILD=(C'RECORD ',SEQNUM,8,ZD) /* If you want the leading zeroes suppressed then you can use FS format instead of ZD 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
