Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
Posted: Mon Mar 20, 2006 9:51 am Post subject: Dynamically copy VSAM to PS file
Hi ,
My requirement is to accept a VSAM dataset name from user in REXX & create a new PS file with attributes same as VSAM file ( like LRECL , RECFM) dynamically in rexx & laso to copy the contents of the VSAM file into the newly created PS file.
Please let me know , can this be done in REXX _________________ Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
Posted: Mon Mar 20, 2006 10:26 am Post subject:
Hi Kolusu ,
May be , my question was not proper...
A job can be created to be submitted by the REXX to copy the VSAM file to PS file.
But my problem , is how to get the RECFM , LRECL of the VSAM file , so that we can create a similar PS file dynamically.
Please let me know , how to extract those attributes of VSAM file from REXX to create a similar PS file. Once PS file is in place , copying the content will not be a problem.. _________________ Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Mon Mar 20, 2006 11:40 am Post subject:
Quote:
But my problem , is how to get the RECFM , LRECL of the VSAM file , so that we can create a similar PS file dynamically.
Please let me know , how to extract those attributes of VSAM file from REXX to create a similar PS file. Once PS file is in place , copying the content will not be a problem..
pzmohanty,
*Sigh* with SORT utility you don't have to code DCB parameters. The output dataset will have the same DCB properties as the input dataset.
Here is a sample code. I also used the sort parm VSAMEMT so that you can even copy Empty vsam clusters
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum