View previous topic :: View next topic
|
Author |
Message |
dharmarao.katkuri Currently Banned New User
Joined: 11 Dec 2006 Posts: 5 Location: chennai
|
|
|
|
I have input file as
input file:-
header
1111
2222
3333
4444.
ouput file:
1111
2222
3333
4444.
I want to copy only the records starting from 1111 to 4444 to the ouput file. I have to skip the header record. I dont know how the header record will be. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
dharmarao.katkuri,
Assuming that your first record is the header record , the following DFSORT JCL will give you the desired results
Code: |
//STEP0100 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
HEADER
1111
2222
3333
4444.
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY,SKIPREC=1
//* |
|
|
Back to top |
|
|
dharmarao.katkuri Currently Banned New User
Joined: 11 Dec 2006 Posts: 5 Location: chennai
|
|
|
|
Thanks !!!! Kolusu |
|
Back to top |
|
|
|