View previous topic :: View next topic
|
Author |
Message |
homesh_career
New User
Joined: 25 Aug 2005 Posts: 5
|
|
|
|
I want to copy all the records except a particular record (I have the record number only and not the data). I know the workaround of using the SKIPREC and STOPAFT in different steps and merging the data.
But is there anyway I can skip a particular record in a single step only.
Thanks |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
homesh_career wrote: |
I want to copy all the records except a particular record (I have the record number only and not the data). I know the workaround of using the SKIPREC and STOPAFT in different steps and merging the data.
But is there anyway I can skip a particular record in a single step only.
Thanks |
Homesh, you have digged out 2008 post again for no reason. Please start new topic you want to post your query. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hi Homesh,
Below code will give you required output using DFSORT'S ICETOOL
Code: |
//S1 EXEC PGM=ICETOOL
//SYSOUT DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//IN DD DSN=your input file here
//OUT DD DSN=your output file here
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) REMOVE INPUT RRN(n)
/*
|
where n is record number which you want to remove from input file. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
|