MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating a New Member via REXX
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12401
Topics: 75
Location: San Jose

PostPosted: Mon May 10, 2004 4:24 am    Post subject: Reply with quote

Modak,

Check this documentation for LMMADD - Add a Member to a Data Set

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon May 10, 2004 3:43 pm    Post subject: Reply with quote

Modak, your second solution worked fine for me. I would appear that you must write something out to the DD before the member is created. This is what I did:

/* REXX */
"ALLOC FI(PDS) DA(MY.PDS(DDNAMES)) OLD"
PUSH ""
"EXECIO 1 DISKW PDS (FINIS"
"FREE FI(PDS)"
Back to top
View user's profile Send private message
Maton_Man
Beginner


Joined: 30 Jan 2004
Posts: 123
Topics: 0

PostPosted: Mon May 10, 2004 10:08 pm    Post subject: Reply with quote

Your code is wrong in the second example. Your execio statement is trying to write to a DD name of LVERR but you alloc statement has allocated your new member to a DD name of NEWMEM.

...and yes, in order to create the member you must write something to it.
_________________
My opinions are exactly that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group