Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts How do you create Eclipse based dialogs jasorn IBM Tools 0 Thu Aug 03, 2017 5:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us