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

To Omit the 75th record alone in inputfile of 100 records


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

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Mon Nov 05, 2007 3:39 pm
Reply with quote

Hi,

If i have 100 Records in my input File. During sort operation is it possible to omit 75th record alone(input file record format is FB)

pls give me the information about this.


Regard's
Vasanth
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Nov 05, 2007 3:43 pm
Reply with quote

Add a sequence number while inputting and omit the 75th record while removing the sequence number on output....
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Nov 05, 2007 5:03 pm
Reply with quote

vasanthkumarhb
Need any help?
Then provide the i/p and o/p RECFM and LRECL!
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Mon Nov 05, 2007 5:31 pm
Reply with quote

Hi Prem,

LRECL = 1284 and RECFM = FB, I need to ignore the 75th record pls help me prem,

not aligned pls look in to it.

regard's
Vasanth......... icon_smile.gif
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Nov 05, 2007 5:38 pm
Reply with quote

vasanthkumarhb
This SORT JCL, omit's the 75th record and copies the remaing records as it is.
Code:
//*******************************************************               
//STEP1    EXEC PGM=SORT                                               
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD DSN=i/p file (FB/1284)                                   
//SORTOUT  DD DSN=o/p file (FB/1284)                                   
//SYSIN    DD *                                                         
  INREC OVERLAY=(1285:SEQNUM,8,PD)                             
  SORT FIELDS=COPY                                             
  OMIT COND=(1285,8,PD,EQ,+75)                                 
  OUTREC BUILD=(1,1284)                                       
/*                                                                     
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Tue Nov 06, 2007 12:13 pm
Reply with quote

Hi Prem and CICS guy,


Thank you very much for your valuable reply,


Thank you prem...




Regard's
Vasanth.......... icon_smile.gif
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Nov 06, 2007 12:34 pm
Reply with quote

Quote:
Thank you prem...

You are welcome...
But did you try the SORT JCL that i gave you? It wont work icon_evil.gif

icon_lol.gif Here the right one..
Code:
//*******************************************************               
//STEP1    EXEC PGM=SORT                                               
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD DSN=i/p file (FB/1284)                                   
//SORTOUT  DD DSN=o/p file (FB/1284)                                   
//SYSIN    DD *                                                         
  INREC OVERLAY=(1285:SEQNUM,8,PD)                             
  SORT FIELDS=COPY                                             
  OUTFIL OMIT=(1285,8,PD,EQ,+75),OUTREC=(1,1284)                                       
/*     
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Tue Nov 06, 2007 5:30 pm
Reply with quote

Hi Prem,


I correct it,and i got the answer, thank you very much.....


Regard's
Vasanth.......... icon_smile.gif
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 Aug 04, 2008 10:44 pm
Reply with quote

You can do this kind of thing quite easily with the new SUBSET operator of DFSORT's ICETOOL available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008). Here's an example:

Code:

//S1   EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=...  output file
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) INPUT REMOVE RRN(75)
/*


For complete details on the new SUBSET function and the other new functions available with PTF UK90013, see:

Use [URL] BBCode for External Links
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top