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
 

 

Split Flat file into members of a PDS.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Wed Apr 21, 2010 1:45 pm    Post subject: Split Flat file into members of a PDS.
Reply with quote

I had taken a backup of all members of a PDS into a flat file with the help of File-Aid.
Now I want to reconvert it to original structure of PDS and its members.

Input is in the following form,
Code:
********************************MEMBER  MEM1    ************************
contents of MEM1                                                       
********************************MEMBER  MEM2    ************************
contents of MEM2                                                       
********************************MEMBER  MEM3    ************************
contents of MEM3                                                       


Expected Output:
A PDS with following members,
MEM1 with contents as "contents of MEM1"
MEM2 with contents as "contents of MEM2"
MEM3 with contents as "contents of MEM3"

Probably a REXX code could do the needful using the member line (********************************MEMBER ) to know the member name and following lines as the data into the member.

Can anyone please help with some related info.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 21, 2010 1:55 pm    Post subject:
Reply with quote

Had you have used IEBCOPY to perform the backup then a restore / rebuild would have been so much easier.

Take a look at IEBUPDTE as a utility to rebuild from the source, or IEBGENER. Both can be invoked from within a REXX code, or the correct batch job built and submitted.

As for related info, there is a sticky in the CLIST & REXX forum which has links to all of the manuals you will possibly need.

If you need help on specific subjects, please feel free to ask.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1027
Location: Oostende, Belgium

PostPosted: Wed Apr 21, 2010 2:27 pm    Post subject:
Reply with quote

You should have put it into an XMIT file, which may not be flat, but there two good tools to work with such files on the PC, should the need ever arise, bot can be found somewhere on the cbttape.org website.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Wed Apr 21, 2010 5:54 pm    Post subject:
Reply with quote

Below thread has the same requirement with complete REXX code on 2nd page,

http://ibmmainframes.com/viewtopic.php?t=46531&postdays=0&postorder=asc&start=0
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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