COMMAND INPUT ===> SCROLL ===> CSR
********************************* TOP OF DATA **********************************
111 0001
111 0001
111 0001
111 0001
222 0002
222 0002
333 0003
444 0004
444 0004
555 0005
666 0006
666 0006
666 0006
******************************** BOTTOM OF DATA ********************************
But I need the o/p in the following way:
Code:
COMMAND INPUT ===> SCROLL ===> CSR
********************************* TOP OF DATA **********************************
111 0001
111 0001
111 0001
111 0001
222 0002
222 0002
333 0003
444 0004
444 0004
555 0001
666 0001
666 0002
666 0002
******************************** BOTTOM OF DATA ********************************
In other words, I want the SEQNUM to restart from 0001 once the seqnum reaches to 0004. Can anybody please help me out and suggest how to acheive this? I will be very thankful
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Gagangarg,
Use the following DFSORT control cards. I am not sure as to why you are sorting. If your aim to assign the seqnum after sorting then you need to use OUTREC instead of INREC.