Thanks Alan. I'll code it that way. If it turns out not to be the case,
I'll let you know.
--Dave
----- Original Message -----
From: "Starr, Alan" <[email protected]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Thursday, July 14, 2011 12:58 PM
Subject: Re: TASKLIB search order question
I believe that this may address your question:
1) STEPLIB may always be searched for all program fetch done by the "job
step" TCB and all its subtasks.
2) TASKLIB, if specified for the active task (or propagated from the
parent task), is searched before STEPLIB.
Caveat: I didn't look this up; the above is from my memory of how it
works.
Alan
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Dave Day
Sent: Thursday, July 14, 2011 10:48 AM
To: [email protected]
Subject: TASKLIB search order question
I know this is probably already answered in the manuals, but I did not
find it.
,TASKLIB=dcb addr
Specifies the address of the DCB for the library to be used as the
attached task's library. Otherwise, the task library is propagated from
the originating task. (Note: The DCB must be opened before the ATTACH
macro is executed.) SYS1.LINKLIB is the last library searched. If the DCB
address specifies SYS1.LINKLIB, the search begins with SYS1.LINKLIB, goes
through other libraries, and ends with SYS1.LINKLIB. The system abnormally
terminates the attached task with a completion code of X'806' if the
requested module is not in the task library and is not in the other
libraries searched.
The above from the description of parameters for ATTACH. The load
module for TASKB is in the steplib. If task TASKA allocates a library as a
tasklib for an attach, where the library does not contain the load module
for TASKB, opens a DCB, and then does the ATTACH for TASKB with the
TASKLIB pointing to the library that does not contain load module TASKB,
does ATTACH find it in the steplib, or 806?
--Dave
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [email protected] with the message: GET IBM-MAIN INFO Search the
archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html