IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to create a member in a pds


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SHANMUGAPRIYAPALANISAMY

New User


Joined: 18 Apr 2007
Posts: 1
Location: CHENNAI

PostPosted: Wed Apr 18, 2007 2:16 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Apr 18, 2007 2:36 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Apr 19, 2007 5:29 am
Reply with quote

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. icon_smile.gif

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 19, 2007 12:30 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top