Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to skip a particular record in sort copy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to skip a particular record in sort copy
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    Post subject: Re: How to skip a particular record in sort copy
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    Post subject:
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 Moderator


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

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

Homesh,

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

http://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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 0 Tue Jan 16, 2018 10:49 pm
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us