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
 

 

How to copy multiple record length records ??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Sandy-is-here

New User


Joined: 16 Mar 2006
Posts: 6
Location: Bangalore

PostPosted: Thu Mar 16, 2006 2:49 pm    Post subject: How to copy multiple record length records ??
Reply with quote

Hi All,

I want to know, is it possible to copy/merg the data of three different record length files into one. For eg, I have file1 with 80 fixed block record length, file2 with 100 fixed block record length and file3 with 150 fixed block record length. How do I copy data from file1, file2 and file3 into file4 of 150 fixed block record length, in a single step ??

Is there any utility which supports this ??

Thanks,
Sandy-is-here
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Mar 16, 2006 9:30 pm    Post subject:
Reply with quote

You can use a DFSORT/ICETOOL job like the following to do what you asked for:

Code:

//S1    EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//IN1 DD DSN=...  input file (FB/80)
//IN2 DD DSN=...  input file (FB/100)
//IN3 DD DSN=...  input file (FB/150)
//**  USE MOD FOR OUT
//OUT DD DISP=(MOD,CATLG),DSN=...  output file (FB/150)
//TOOLIN DD *
COPY FROM(IN1) TO(OUT) USING(CTL1)
COPY FROM(IN2) TO(OUT) USING(CTL2)
COPY FROM(IN3) TO(OUT)
/*
//CTL1CNTL DD *
  OUTREC FIELDS=(1,80,150:X)
/*
//CTL2CNTL DD *
  OUTREC FIELDS=(1,100,150:X)
/*


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
Sandy-is-here

New User


Joined: 16 Mar 2006
Posts: 6
Location: Bangalore

PostPosted: Mon Mar 27, 2006 10:33 am    Post subject: Re: How to copy multiple record length records ??
Reply with quote

Thanks a lot Frank !!
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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