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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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