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
 

 

Creating Member In a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
lokesh_try8

New User


Joined: 30 Dec 2005
Posts: 14
Location: Chennai

PostPosted: Mon Mar 06, 2006 7:21 pm    Post subject: Creating Member In a PDS
Reply with quote

Hi,
I've Created a PDS using the TSO "ALLOC" command in REXX, but I don't know how to create a Member in that PDS ? Can anyone Help me out in this regard !! Please specify with a sample example or any URL to refer to !

Thanks & Regards,
Lokesh R icon_biggrin.gif
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Mon Mar 06, 2006 7:34 pm    Post subject: Re: Creating Member In a PDS
Reply with quote

You would do it the same way in TSO that you would in JCL, in that you can't create a new member until you write some data into it:

Code:

//STEP0001 EXEC PGM=IEBGENER
//SYSUT1   DD   *
A DUMMY RECORD
/*
//SYSUT2   DD   DSN=MY.NEW.PDS(MEMBER1),DISP=(,CATLG,DELETE),
//         UNIT=SYSDA,SPACE=(TRACKS,(10,10,80),RLSE)
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   DUMMY

Code:

/* REXX */
"DELETE 'MY.NEW.PDS'"
"ALLOC DD(PDS) DA('MY.NEW.PDS(MEMBER1)') NEW REU CATALOG",
"RECFM(F B) LRECL(80) DIR(80) SPACE(10,10) TRACKS"
Queue "A DUMMY RECORD"
Queue ""
"EXECIO *DISKW PDS (FINIS"
"FREE DD(PDS)"
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Mar 06, 2006 8:10 pm    Post subject:
Reply with quote

Another method is to use ISPF services, like LMMADD & LMMPUT.

O.
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 -> CLIST & REXX 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 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
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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