IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to skip a particular record in sort copy


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
homesh_career

New User


Joined: 25 Aug 2005
Posts: 5

PostPosted: Mon Apr 11, 2011 3:16 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 11, 2011 3:35 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 11, 2011 3:47 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Apr 11, 2011 11:08 pm
Reply with quote

Homesh,

For more information on the SUBSET operator of DFSORT's ICETOOL, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA50/7.17?DT=20100630155256

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top