Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to create a member in a pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to create a member in a pds
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: 1439
Location: Bangalore,India

PostPosted: Wed Apr 18, 2007 2:36 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 19, 2007 12:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us