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

Creating Member In a PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Mon Mar 06, 2006 7:34 pm
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: 2358
Location: Israel

PostPosted: Mon Mar 06, 2006 8:10 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
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
Search our Forums:

Back to Top