Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Sat Dec 13, 2008 11:31 am Post subject: |
|
|
You can use a DFSORT job like the following to do what you asked for. I used 1 digit for the record number as shown in your example. If appropriate, you can use more digits by changing the length of the SEQNUM field.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
11111111111
22222222222
SYS33333333
44444444444
55555555555
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(15:SEQNUM,1,ZD)
OUTFIL INCLUDE=(1,3,CH,EQ,C'SYS'),BUILD=(1:15,1,80:X)
/*
|
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|