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
 
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 Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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