Page 1 of 1

Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 3:38 pm
by jaggz
Hello,

I have created a system load module and placed in a seperate PDS. I am expecting to keep my newly created dataset ahead of SYS1.LINKLIB under PROGxx(LNKLST). Could someone please shed some light changing the search order so that my dataset gets read first followed by LINKLIB,CSSLIB and MIGLIB.

Please provide me some pointers on the above.

Jags

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 3:53 pm
by enrico-sorichetti
I have created a system load module and placed in a seperate PDS. I am expecting to keep my newly created dataset ahead of SYS1.LINKLIB under PROGxx(LNKLST). Could someone please shed some light changing the search order so that my dataset gets read first followed by LINKLIB,CSSLIB and MIGLIB.


on a professional forum nobody with a bit of good sense will tell You how to endanger the integrity of Your system :geek:

and ... You AUDIT departement might get royally p***ed by You doing it !

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 3:55 pm
by jaggz
Hey,

i totally agree with your points. I am a playing around with my test system NOT PRODUCTION.

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 3:59 pm
by enrico-sorichetti
Hey,

hey to whom... I am not Your dog :evil:
learn the good manners please

You might be doing it on You sandbox... but somebody else might carry on the suggestion in more dangerous places.
why not look at the manuals Yourself ???

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 4:05 pm
by jaggz
Hello Encrico,

Apology for addressing by "Hey". Yes I will definetly look at the manuals but just thought of getting experts opinion from you and other mainframe gurus in our forum.

Jags

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 4:30 pm
by Robert Sample
I am expecting to keep my newly created dataset ahead of SYS1.LINKLIB under PROGxx(LNKLST).
You may be expecting this, but IBM tells you that this cannot be done in section 75.4 of the 1.13 MVS Initialization and Tuning Reference manual:
A LNKLST set consists of an ordered list of data sets for processing as the LNKLST concatenation. Every LNKLST set contains the LINKLIB, MIGLIB, CSSLIB, LINKLIBE, and MIGLIBE data sets as the first data sets in the LNKLST concatenation. Unless overridden by SYSLIB statements, every LNKLST set begins with:

SYS1.LINKLIB
SYS1.MIGLIB
SYS1.CSSLIB
SYS1.SIEALNKE
SYS1.SIEAMIGE

The system automatically adds these data sets to the beginning of the LNKLST set that you define
and in the same section:
You can add a data set to any LNKLST set that you define and specify the position of the data set in the list, however an alias cannot be added for the LNKLST created at IPL. You cannot add the data set before any of the system default data sets in the concatenation; that is, you can only concatenate the data set after the CSSLIB data set in the LNKLST set.

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 4:48 pm
by jaggz
Dear Robert,

I am using LNKLSTxx for the linklist datasets I have specified my own PDS at top position but still after IPL my Dataset is not read at first instead in the DISPLAY output it is listed at 6th order.

Jags

Re: Changing the lnklst Search order

PostPosted: Fri Mar 22, 2013 4:51 pm
by Robert Sample
You are seeing what IBM says in the manual: the first few (five under 1.13) data sets are the system libraries, and you CANNOT, under any circumstances, place your load library ahead of them in the linklist concatenation. If you try to do so, IBM will automatiically add the system libraries ahead of yours.

Re: Changing the lnklst Search order

PostPosted: Sun Mar 24, 2013 8:14 pm
by nevilh
You can achieve what you want by adding the following statement to the progxx member
SYSLIB LINKLIB(dsname).
This is a standard z/OS feature and has existed at least 10 years.