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 

How to append allocation of private libraries to ISPF DDs

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Mon Dec 02, 2002 11:03 pm    Post subject: How to append allocation of private libraries to ISPF DDs Reply with quote

... temporarily in a Rexx application?

Use LIBDEF with STKADD option.
Example:
Code:

Address ISPEXEC                                     
"LIBDEF ISPSLIB DATASET ID('FDR5618.SKELLIB') STKADD"
Back to top
View user's profile Send private message Send e-mail
arindam
Beginner


Joined: 08 Jan 2003
Posts: 5
Topics: 1
Location: India, Kolkata

PostPosted: Wed Jan 08, 2003 1:14 am    Post subject: Reply with quote

I guess that your requirement is to concatenate any personal dataset to any ISPF DD. You can use the CLIST example given below. Here, it concatenates your dataset with DD SYSPROC (this DD name you can change Smile ). Your dataset will be the first one of all datasets concatenated to the DD (verify with ISRDDN). But, everytime you log on, you have to run this CLIST to concatenate. To avoid this, you can include it at the startup.
cheers Very Happy .

************************ Top of Data *************************

PROC 0 UNEXTEND
CONTROL NOMSG NOPROMPT NOFLUSH

IF &SYSDSN('USER.DEF.LIB') = DATASET NOT FOUND +
THEN +
DO
LISTDSI 'SYS1.TSOCLIST'
ALLOC DA('USER.DEF.LIB') NEW TR SP(30,10) LRECL(80) +
RECFM(F B) BLKSIZE(&SYSBLKSIZE) DIR(5) REL
END

FREE DA('USER.DEF.LIB')

%GPDDCAT SYSPROC 'USER.DEF.LIB' &UNEXTEND

EXIT CODE(&LASTCC)

*********************** Bottom of Data ***********************
_________________
Thanks and Regards,
Arindam
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Jan 08, 2003 1:19 am    Post subject: Reply with quote

LIBDEF is the way to go for ISPF ddnames (sysproc is not an ISPF ddname) because ISPF keeps those files open. An interesting addition to the use of LIBDEF is that by creating a temporary PDS from within your program, and then LIBDEFing to it as needed, you can actually imbed ISPF panels, messages and skeletons directly within your program. See the exec ISRSETLN as an example. It has a panel and message member within it.
Back to top
View user's profile Send private message Visit poster's website
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
Page 1 of 1

 
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