Page 1 of 1

How to create a "N" number of members in a PDS

PostPosted: Tue Mar 10, 2009 4:35 pm
by anandkumarrn
Hi all,
Can any help me in creating "N" number of Members in a single PDS?
The name of the Members in the PDS can be a value(increment Value)...


Thanks in advance,
Regards,
Anand

Re: How to create a "N" number of members in a PDS

PostPosted: Tue Mar 10, 2009 5:27 pm
by MrSpock
You'll want to use the IEBUPDTE program if your data requirements meets its specifications.

Otherwise, you'll need a job with N job steps: one job step per member.

Re: How to create a "N" number of members in a PDS

PostPosted: Tue Mar 10, 2009 5:47 pm
by anandkumarrn
Thanks MrSpock,
But my requirement is "I have a PS file which contains 20 records(say for example), then i need a JCL which should create 20 members in a single PDS".

Re: How to create a "N" number of members in a PDS

PostPosted: Tue Mar 10, 2009 11:58 pm
by dick scherrer
Hello,

Then create a process that reads that file and generates the necessary jcl and control statements to create 'n' members. The generated jcl and control statements would be written to the internal reader and executed. If you wanted to retain a copy of the generated jcl, write it to a file, then copy that file to the internal reader. Which ever of these methods you use, you will need to start the output with a proper JOB statement.

We will help you learn how to do "things" but we won't write them for you.

Re: How to create a "N" number of members in a PDS

PostPosted: Wed Mar 11, 2009 10:15 am
by anandkumarrn
Thanks d for your reply

Re: How to create a "N" number of members in a PDS

PostPosted: Wed Mar 11, 2009 1:33 pm
by dick scherrer
You're welcome - good luck :)

Someone will be here if there are any questions as the work proceeds.

d