Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query on skipping only 1 record from input file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
harry07
Warnings : 1

New User


Joined: 15 Nov 2006
Posts: 7

PostPosted: Wed Apr 09, 2008 11:32 pm    Post subject: Query on skipping only 1 record from input file.
Reply with quote

Hi
I have some input file which can have any number of records.
The format of the file always is as follows :
Header 1 (only 1 record)
Data related to these header 1 ( Can be thousands of records)
Header 2 (only 1 record)
Data related to these header 2(Can be thousands of records)

Now my requirement is that before feeding these file as input to the next step i would need to delete the header 2(only 1 record) and use these same input file minus these header 2 in the next step.
Also in these header 2 the first 6 characters would always be 666666


Thanks
Ajay
Back to top
View user's profile Send private message

Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Apr 09, 2008 11:48 pm    Post subject: Reply to: Query on skipping only 1 record from input file.
Reply with quote

Harry07,

Try the following DFSORT JCL
Code:

//STEP0100 EXEC PGM=ICEMAN         
//SYSOUT   DD SYSOUT=*             
//SORTIN   DD *                     
HEADER 1                           
AAA                                 
BBB                                 
CCC                                 
DDD                                 
666666 2                           
EEE                                 
FFF                                 
GGG                                 
//SORTOUT  DD SYSOUT=*             
//SYSIN    DD *                     
  OMIT COND=(1,6,CH,EQ,C'666666')   
  SORT FIELDS=COPY                 
/*
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us