View previous topic :: View next topic
|
Author |
Message |
SHANMUGAPRIYAPALANISAMY
New User
Joined: 18 Apr 2007 Posts: 1 Location: CHENNAI
|
|
|
|
how to create a member in a pds using iebgener?and also how to create a member in already exixting pds using jcl? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
ShanmugaPriya,
Quote: |
how to create a member in a pds using iebgener? |
Code: |
//CRETMEMB EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD DSN=YOUR.EXISTING.PDS.NAME(MEMBER),DISP=SHR
//SYSUT1 DD *
SAMPLEDATA
/* |
Quote: |
and also how to create a member in already exixting pds using jcl? |
I guess this is same as first part. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Setc.,
Quote: |
how to create a member in a pds using iebgener? |
First - you can't use your user name as the member name.
Murali's example shows how to create a new member in an existing PDS. The example below shows how to create the new PDS at the same time you create a member:
Code: |
//CRETMEMB EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD DSN=YOUR.EXISTING.PDS.NAME(MEMBER),DISP=(,CATLG,DELETE),
// SPACE=(CYL(120,10,100)),DCB=(your params),UNIT=SYSDA
//SYSUT1 DD *
SAMPLEDATA |
The 100 in the SPACE param will allocate 100 directory blocks to the PDS. Enough for approx 600 members. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
First - you can't use your user name as the member name. |
Why not ?
Quote: |
The 100 in the SPACE param will allocate 100 directory blocks to the PDS. Enough for approx 600 members. |
Something to remember about allocating directory blocks. Each track will hold 45 directory blocks, except for the last track in the directory which will only hold 44. I usually switch this around and say the first track has 44 blocks and all others have 45.
So, for space efficiency, I would have used either 89 for two tracks of directory, or 134 for three tracks of directory.
The number of members each block holds depends on whether you have ISPF statistics on or off. With ISPF stats on, there will be 6 members per block, but more with ISPF stats off. I usually use 6 as a guidline whether ISPF stats are on or off in my PDS. |
|
Back to top |
|
|
|