kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Nov 30, 2010 11:30 am Post subject: |
|
|
sivafdms,
The following DFSORT JCL will give you the desired results. The output will be 2 bytes and will have 260 records (26 alphabets and 10 records for each alphabet)
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DUMMY RECORD
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REPEAT=260,
IFTHEN=(WHEN=INIT,BUILD=(SEQNUM,3,ZD)),
IFTHEN=(WHEN=GROUP,RECORDS=10,PUSH=(ID=2)),
IFTHEN=(WHEN=INIT,
FINDREP=(INOUT=(C'01',C'A',C'02',C'B',C'03',C'C',
C'04',C'D',C'05',C'E',C'06',C'F',
C'07',C'G',C'08',C'H',C'09',C'I',
C'10',C'J',C'11',C'K',C'12',C'L',
C'13',C'M',C'14',C'N',C'15',C'O',
C'16',C'P',C'17',C'Q',C'18',C'R',
C'19',C'S',C'20',C'T',C'21',C'U',
C'22',C'V',C'23',C'W',C'24',C'X',
C'25',C'Y',C'26',C'Z'),STARTPOS=1,DO=1)),
IFTHEN=(WHEN=INIT,BUILD=(1,2))
//* |
_________________ Kolusu
www.linkedin.com/in/kolusu |
|