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 Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Getting Mutiple input from Panels vidyaa CLIST & REXX 12 Mon Aug 14, 2017 1:28 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm


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