View previous topic :: View next topic
|
Author |
Message |
miosne Warnings : 1 New User
Joined: 13 Mar 2006 Posts: 63 Location: italy
|
|
|
|
How can I do this??
Input
aaaa
bbbb
cccc
dddd
output
aaaa0001
bbbb0002
cccc0003
dddd0004
thanks |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
miosne,
Which SORT product are you using?
Search for SEQNUM in the JCL forum and you will find working examples.
All you need is to reformat the field and add a sequence number of bytes 4 from position 5. |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
Hi,
Use this sort card may be this can help you
//SYSIN DD *
SORT FIELDS=(1,4,CH,A)
OUTREC FIELDS=(1,4,12:SEQNUM,1,ZD)
/*
Use the reformat fields to chnage the output |
|
Back to top |
|
|
miosne Warnings : 1 New User
Joined: 13 Mar 2006 Posts: 63 Location: italy
|
|
|
|
It works.
thanks a lot |
|
Back to top |
|
|
|