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
 
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

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