Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dynamically adding CLIST Library to existing TSO Lirbaries

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Sat Mar 14, 2020 4:33 pm    Post subject: Dynamically adding CLIST Library to existing TSO Lirbaries
Reply with quote

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
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2312
Location: Hampshire, UK

PostPosted: Sat Mar 14, 2020 4:55 pm    Post subject: Reply to: Dynamically adding CLIST Library to existing TSO Lirbaries
Reply with quote

Use a Rexx exec to do the allocation.
Back to top
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Sat Mar 14, 2020 5:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 147
Location: Germany

PostPosted: Sat Mar 14, 2020 6:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Sat Mar 14, 2020 7:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10662
Location: italy

PostPosted: Sat Mar 14, 2020 7:29 pm    Post subject: Reply to: Dynamically adding CLIST Library to existing TSO Lirbaries
Reply with quote

the forum is not for spoon feeding icon_evil.gif

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
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Sat Mar 14, 2020 7:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10662
Location: italy

PostPosted: Sat Mar 14, 2020 9:22 pm    Post subject: Reply to: Dynamically adding CLIST Library to existing TSO Lirbaries
Reply with quote

RTFM
returned by the google search I told You to use

since You are clearly too lazy to google here is the link returned as the first hit when I searched for You icon_evil.gif

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ikjc500/ikj2l2_ALTLIB_command_operands.htm
Back to top
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Sat Mar 14, 2020 9:51 pm    Post subject:
Reply with quote

Hi Enrico,

Thank you.
Am already in IBM link and working on ALTLIB Commands.



Thanks!
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 340
Location: Denmark

PostPosted: Sun Mar 15, 2020 3:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2172
Location: Silicon Valley

PostPosted: Mon Mar 16, 2020 2:41 am    Post subject: Reply to: Dynamically adding CLIST Library to existing TSO Lirbaries
Reply with quote

Quote:
but not SYSEXEC while in ISPF

Are you sure? That did not used to be true.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 340
Location: Denmark

PostPosted: Mon Mar 16, 2020 3:22 am    Post subject:
Reply with quote

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
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 99
Location: India

PostPosted: Mon Mar 16, 2020 8:13 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Rexx STRIP Equivalent function in CLIST upendrasri CLIST & REXX 5 Mon Mar 16, 2020 9:57 pm
No new posts OUTTRAP Equivalent function in CLIST upendrasri CLIST & REXX 5 Thu Mar 12, 2020 12:12 pm
No new posts IEBCOPY - Not replace a existing PDS ... Aks1988 JCL & VSAM 15 Mon Mar 09, 2020 7:06 pm
No new posts Adding FIND to ISPF Panel display of ... Harold Barnes TSO/ISPF 3 Mon Oct 07, 2019 5:46 pm
No new posts Dynamically split large DSN list into... Ghellar CLIST & REXX 14 Tue Sep 17, 2019 8:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us