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
 

 

Copy detailied records from input

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
dharmarao.katkuri
Currently Banned

New User


Joined: 11 Dec 2006
Posts: 5
Location: chennai

PostPosted: Thu Nov 20, 2008 6:49 pm    Post subject: Copy detailied records from input
Reply with quote

I have input file as

input file:-
header
1111
2222
3333
4444.

ouput file:
1111
2222
3333
4444.

I want to copy only the records starting from 1111 to 4444 to the ouput file. I have to skip the header record. I dont know how the header record will be.
Back to top
View user's profile Send private message

Skolusu

Senior Member


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

PostPosted: Thu Nov 20, 2008 10:31 pm    Post subject:
Reply with quote

dharmarao.katkuri,

Assuming that your first record is the header record , the following DFSORT JCL will give you the desired results

Code:

//STEP0100 EXEC PGM=ICEMAN   
//SYSOUT   DD SYSOUT=*       
//SORTIN   DD *             
HEADER                       
1111                         
2222                         
3333                         
4444.                       
//SORTOUT  DD SYSOUT=*       
//SYSIN    DD *             
  OPTION COPY,SKIPREC=1     
//*
Back to top
View user's profile Send private message
dharmarao.katkuri
Currently Banned

New User


Joined: 11 Dec 2006
Posts: 5
Location: chennai

PostPosted: Fri Nov 21, 2008 5:12 pm    Post subject: Reply to: Copy detailied records from input
Reply with quote

Thanks !!!! Kolusu icon_smile.gif
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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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