View previous topic :: View next topic |
Author |
Message |
Harvey Beginner
Joined: 10 Nov 2004 Posts: 3 Topics: 1 Location: Chicago
|
Posted: Wed Nov 10, 2004 12:46 pm Post subject: How to dynamiclly create a VSAM RRDS file |
|
|
I'm writing a tcp/ip application to upload weekly files from Windows to MVS VSAM RRDS files. I want to dynamically delete/create the VSAM RRDS file in my MVS client. According to the documentation, SVC99 can only be used to dynamically allocate an existing VSAM dataset. Is it possible to dynamically delete/create a VSAM file? If so how? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Nov 10, 2004 1:18 pm Post subject: |
|
|
harvey,
Can't you just generate the IDCAMS control cards dynamically which will delete and re-create the vsam clusters?
If you let us know the requirement , may be we can suggest an alternative approach
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Harvey Beginner
Joined: 10 Nov 2004 Posts: 3 Topics: 1 Location: Chicago
|
Posted: Wed Nov 10, 2004 2:01 pm Post subject: |
|
|
I need to upload a large number of big files each week to MVS. The current method is to FTP the files to sequential files and then run IDCAMS to delete and deifne the VSAM RRDS files and then REPRO the sequential files to VSAM RRDS. Due to the large number and size of these files I don't want to have both a sequential and VSAM version of the same file. The time required for this is also significant. The size of the files can also very from week to week. So I'd like to simplify the creation of the VSAM RRDS files in a tcp/ip client that I have. I already have the client/server code for uploading my files, I now need to know how to create the VSAM RRDS file dynamically. After that I just have to load the VSAM file which is simple. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Nov 10, 2004 2:11 pm Post subject: |
|
|
Harvey,
I am confused with the usage "dynamically create VSAM Clusters". Do you want to create the vsam clusters with a different name every week? or is the vsam cluster name the same every week?
Quote: |
I don't want to have both a sequential and VSAM version of the same file.
|
The load step can also delete the file. code
Code: |
//SORTIN DD DSN=YOUR SEQ FILE,
// DISP=(OLD,DELETE,KEEP)
|
After the successful completion of the step , the seq file is deleted.
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Harvey Beginner
Joined: 10 Nov 2004 Posts: 3 Topics: 1 Location: Chicago
|
Posted: Wed Nov 10, 2004 2:21 pm Post subject: |
|
|
The dataset names will not change from week to week. The size of the files may change so the VSAM RRDS file must be deleted and redefinesd. There can be up to 300 files, so I don't want to have to define these through JCL. Also I might only be uploading a subset of files so I need to automate which ones to delete and redefine. I want to do this through code, not JCl so I have full control. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|