View previous topic :: View next topic
|
Author |
Message |
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi,
I have my personal CLIST with my own customization. I want this to be added to existing CLIST concatenations after I login to TSO session.
For ex:
My CLIST library : TEST.CLIST
Existing CLIST Concatenations as below:-
From ISRDDN
Code: |
SYSPROC ABCD.BASE.EXEC
TEST.BASE.EXEC
SYSTSO.BASE.CLIST
SYS1.SISPEXEC
|
Is there any way to dynamically add my CLIST datast TEST.CLIST as below
Code: |
SYSPROC ABCD.BASE.EXEC
TEST.BASE.EXEC
SYSTSO.BASE.CLIST
SYS1.SISPEXEC
TEST.CLIST
|
Thanks! |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Use a Rexx exec to do the allocation. |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi Nic,
I have used below CLIST
Code: |
ALLOCATE DA('TEST.CLIST') F(SYSPROC) SHR REUSE
|
But only my dataset is allocated and other libraries missing from SYSPROC Concatenation.
Thanks! |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1335 Location: Bamberg, Germany
|
|
|
|
Try something like this to activate and deactivate your CLIST.
Code: |
ALTLIB ACTIVATE APPLICATION(EXEC) DA('TEST.CLIST') |
Code: |
ALTLIB DEACTIVATE APPLICATION(EXEC) |
|
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi Joerg,
I have executed above code and it ran fine(RC=0) , But my library TEST.CLIST is not added.
Thanks! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
the forum is not for spoon feeding
why don't You do a bit of homework and find out by Yourself
Quote: |
Try something like this to activate and deactivate your CLIST. |
hinted that it might not have been the final solution
a simple google search with
Quote: |
altlib activate application(exec) |
would have given enough hints to fix the issue by Yourself
anyway the question has been asked so many times that the topic should
belong to the topics not allowed any longer for discussion category |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi Enrico,
I have another code as below and worked fine.
Code: |
/* REXX */
DSNAME = "'TEST.CLIST'"
DDNAME = "SYSPROC"
"ISPEXEC QBASELIB "DDNAME" ID(DSLIST)"
"ALLOC F("DDNAME") DA("DSNAME","DSLIST") SHR REU"
EXIT 0
|
But somehow ALTLIB is not working for me. Will try and post results..
Thanks!
Upendra. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi Enrico,
Thank you.
Am already in IBM link and working on ALTLIB Commands.
Thanks! |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
One method for reallocation is the CONCAT pgm found at cbttape.org file 183. Or write something yourself using the QBASELIB function mentioned above.
Be aware that you can reallocate SYSPROC, but not SYSEXEC while in ISPF.
ALTLIB does not concattenate to the DDname, it alllocates a new DDname and adds that to the search order. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Quote: |
but not SYSEXEC while in ISPF |
Are you sure? That did not used to be true. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
Just tried it to be sure, I get message 'KJ56861I FILE SYSEXEC NOT FREED, DATA SET IS OPEN' when I try to free or ALLOC .. REUSE. Actually I am pretty sure it always was so. |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 124 Location: India
|
|
|
|
Hi All,
I have used below code which worked fine.
Code: |
ALTLIB ACTIVATE APPLICATION(EXEC) DATASET(’TEST.CLIST')
|
But with ALTLIB we can't concatenate CLIST dataset to SYSPROC datasets but we can create a new DDNAME and we can add it to search order.
Thanks! |
|
Back to top |
|
|
|