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



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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

Postby anandkumarrn » Tue Mar 10, 2009 4:35 pm

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
anandkumarrn
 
Posts: 3
Joined: Thu Feb 19, 2009 7:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby MrSpock » Tue Mar 10, 2009 5:27 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

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

Postby anandkumarrn » Tue Mar 10, 2009 5:47 pm

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".
anandkumarrn
 
Posts: 3
Joined: Thu Feb 19, 2009 7:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Tue Mar 10, 2009 11:58 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby anandkumarrn » Wed Mar 11, 2009 10:15 am

Thanks d for your reply
anandkumarrn
 
Posts: 3
Joined: Thu Feb 19, 2009 7:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Wed Mar 11, 2009 1:33 pm

You're welcome - good luck :)

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

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post