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 Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

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