View previous topic :: View next topic
|
Author |
Message |
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Hi ,
Just gor the question on whats the right order to search particluar CLIST BBBB if using ALTLIB?
Suppose we have CLIST AAAA in Date set AAAA.CLISTLIB also in the same dataset have CLIST BBBB
In CLIST AAAA got following code:
Code: |
ALTLIB ACTIVATE APPLICATION(CLIST) +
DSNAME('BBBB.CLISTLIB')
ISPEXEC SELECT CMD(BBBB PRODID(&PRODID)) |
So if the program call CLIST AAAA , whats the right order to load CLIST BBBB?
Searching AAAA.CLISTLIB first then if not found go to BBBB.CLISTLIB ???
Thanks!!!! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
I think if it was:
Code: |
clist calling clist |
then it would likely search in the same PDS first.
But your example is:
Code: |
clist calling ISPF calling clist |
so I think it will be the standard search order:
Code: |
job pack area
tasklib
ISPLUSR
LIBDEF
ISPLLIB
TSOLIB
STEPLIB
LPA
LINKLIB
SYSUPROC
SYSUEXEC
ALTLIB
SYSPROC
SYSEXEC |
I might have missed some. yeah, its complicated.
| I updated the list after Terry's question. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
Is SYSUPROC in that list somewhere? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
You can simplify the search by including a percent sign:
Code: |
ISPEXEC SELECT CMD(%BBBB PRODID(&PRODID)) |
In which case, it will skip searching in load module data sets, only searching in SYSUPROC, SYSUEXEC, ALTLIB, SYSPROC, and SYSEXEC. |
|
Back to top |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Hi Pedro,
Thanks for your answer.
I did the testing, i place CLIST BBBB in both my ALTLIB and SYSPROC data set . then I do the DDLIST command --> Member BBBB
and shows found CLIST BBBB in sysproc data set first and then ALTLIB. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
why not run a simple test
put a write telling which is which.
faster than waiting for a forum reply" |
|
Back to top |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Hi enrico-sorichetti,
Thanks for your answer. I am not doing CLIST alot. can you tell me how to use wirte to get that ?
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
for the umpteen time...
ALTLIB works at the logical search level
TSO,REXX,CLIST KNOW that there is an ALTLIB in place
and they will do a directed search in the ALTLIB stack
and if nothing is found it will search SYSEXEC/SYSPROC
ALTLIB alloates the altlibbed dataset using a SYSxxxxxx ( xxxx is a NUMBER )
and using isrddn You will see it after SYSPROC
giving the impression that it will come after. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
no need to write a clist
a simple rexx 2liner will do ( the alt lib logic is the same )
Code: |
/* REXX */
say "NAME OF THE DATASET WHERE I AM STORED" |
store it in two libraries
one in the SYSPROC/SYSEXEC concatenation
the other one anywhere You want
from ISPF option 6
run it without the ALTLIB
issue the ALTLIB
run it again
issue an ALTLIB DEACTIVATE
and everything will be back as it was |
|
Back to top |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Hi enrico-sorichetti
Thanks for your answer. it helped a lot!
For second part of your answer "
ALTLIB alloates the altlibbed dataset using a SYSxxxxxx ( xxxx is a NUMBER )
and using isrddn You will see it after SYSPROC
giving the impression that it will come after.
"
that means when you use DDLIST --> Member CLIST BBBB. The displayed order is not acutlly searching order ?
Thanks |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
Quote: |
when you use DDLIST --> Member CLIST BBBB. The displayed order is not acutlly searching order ? |
As far as I know, it only displays in order of DD name. It does not display in order of the standard search order.
When you search the DD name list, the list remains in the original order. |
|
Back to top |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Thank you for the answer ! Now it much clear ! |
|
Back to top |
|
|
|