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

Concatenation of a PDS to SYSEXEC or SYSUEXEC permanently


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
craig2020

New User


Joined: 30 Jan 2007
Posts: 7
Location: Chennai

PostPosted: Fri Apr 30, 2010 4:09 pm
Reply with quote

Hi,

I am using the below TSO script to allocate my REXX PDS to SYSEXEC library.

Code:
EXECUTIL SEARCHDD(YES)
ALLOC FILE(SYSEXEC) DATASET('USER.REXX.EXEC') SHR REUSE


The problem I am facing is that all the existing PDS associated to SYSEXEC is freed and then only "USER.REXX.EXEC' is allocated to SYSEXEC.

Please advise on the following
1. How to concatenate my PDS to the existing SYSEXEC library.

2. How to concatenate my PDS to the existing SYSEXEC library permanently. i.e when I login to a new session, my PDS should be part of the SYSEXEC library.

3. I have added one of my REXX PDS to SYSUEXEC library, and used the
below ALTLIB command.

Code:
TSO ALTLIB ACTIVATE USER(EXEC).

But when I displayed the ALTLIB details using

TSO ALTLIB DISPLAY

I can only see
Code:
IKJ79322I Current search order (by DDNAME) is:
IKJ79327I System-level EXEC       DDNAME=SYSEXEC
IKJ79328I System-level CLIST      DDNAME=SYSPROC


But I can execute my REXX EXEC in the SYSUEXEC library.

Please let me know whether "ALTLIB DISPLAY" will display SYSUEXEC in the details?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Apr 30, 2010 5:14 pm
Reply with quote

Why can't you just use the libraries already provided at your site? Or, does your site provide some way for you to automatically include a private library to your TSO/ISPF concatenations?

craig2020 wrote:

1. How to concatenate my PDS to the existing SYSEXEC library.


I've found two methods that I prefer:

Use the QBASELIB ISPF Service for SYSEXEC. QBASELIB will return to a variable all of the libraries allocated to that DD. Then all you need to do is add yours to that list and use the TSO ALLOCATE command for all of the datasets in the list.

Use the BPXWDYN command to concatenate a new dataset to an existing DD.

craig2020 wrote:

2. How to concatenate my PDS to the existing SYSEXEC library permanently. i.e when I login to a new session, my PDS should be part of the SYSEXEC library.


You'd have to modify your TSO startup JCL and change the library allocations. This is something you most likely won't be able to do. What have your Sysprogs said about this?
Back to top
View user's profile Send private message
craig2020

New User


Joined: 30 Jan 2007
Posts: 7
Location: Chennai

PostPosted: Wed May 05, 2010 6:05 pm
Reply with quote

Hi Superk,
Thanks for your help. By using QBASELIB ISPF service I could able to concatenate my library to SYSEXEC.

Code:
ADDRESS ISPEXEC "QBASELIB SYSEXEC ID(VAR1)"
VAR3 = VAR1||","||"'"||VAR2||"'"
"ALLOC FILE(SYSEXEC) DATASET("VAR3") SHR REUSE"
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Difference between sysexec and sysproc CLIST & REXX 6
No new posts INVALID RECFM FOR DDNAME SYSLIN AND C... All Other Mainframe Topics 7
No new posts Can we limit length in concatenation ... DB2 7
No new posts Utility to extract dsn info from conc... PL/I & Assembler 12
No new posts How to concatenate a dataset with SYS... CLIST & REXX 8
Search our Forums:


Back to Top