What are the parameters defined for a load module dataset?

All sort of Mainframes Interview Questions.

Topic author
DannyG
New Member
Posts: 7
Joined: Tue Dec 30, 2014 11:09 am

What are the parameters defined for a load module dataset?

Postby DannyG » Mon Nov 09, 2015 1:54 am

hi,

What are the parameters usually defined for a load module dataset? I have not noticed it and did not answer this in the interview. Later I found that we use the following parameters:

Code: Select all

Organization  . . . : PO        
 Record format . . . : U        
 Record length . . . : 0        
 Block size  . . . . : 32760  


Are these the only parameters we use for a load module or there can be other combinations? Thanks for any help.



Tags:

Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1219
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 86 times

Re: What are the parameters defined for a load module dataset?

Postby Robert Sample » Mon Nov 09, 2015 4:13 am

A load library is partitioned (either PDS or PDSE), with record format U, no record length, and some block size. The block size should be large for efficiency but older utility programs sometimes create load modules with smaller block sizes. The IEBCOPY COPYMOD utility control statement allows load modules to be copied and reblocked when the block size of the input and output data sets are different.




Topic author
DannyG
New Member
Posts: 7
Joined: Tue Dec 30, 2014 11:09 am

Re: What are the parameters defined for a load module dataset?

Postby DannyG » Mon Nov 09, 2015 11:01 am

Thanks. So I was also correct? Or you mean to say that 32760 is not always the case?




nicc
Global Moderator
Global Moderator
Posts: 529
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

Re: What are the parameters defined for a load module dataset?

Postby nicc » Mon Nov 09, 2015 3:06 pm

The block size should be large for efficiency but older utility programs sometimes create load modules with smaller block sizes.

What is unclear about that? Note the words 'should', 'large', 'but' and 'smaller'.


Regards
Nic


enrico-sorichetti
Global Moderator
Global Moderator
Posts: 813
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 68 times

Re: What are the parameters defined for a load module dataset?

Postby enrico-sorichetti » Mon Nov 09, 2015 3:27 pm

32760 is the right value for a PDSE ( library ) load module dataset

for NON PDSE datasets 27998 ( 3390 geometry ) will be more appropriate


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)


Gerhard_Adam
Registered Member
Posts: 14
Joined: Thu Nov 26, 2015 10:51 am
Been thanked: 3 times

Re: What are the parameters defined for a load module dataset?

Postby Gerhard_Adam » Sat Jun 25, 2016 7:50 am

The blocksize is largely irrelevant. You will find it ranging from 6144 to 13030 to 19069 to 32760. It has little to do with anything in a load library. It doesn't really do anything for efficiency, because only the TXT records in a load module are subject to blocking. Since these records are only read during program load, it has virtually no effect on performance.

The average size of a record in a load library is less than 256 bytes, which is why the RECFM=U. This is undefined because there is no concept of a logical record and therefore the LRECL=0.

While the attributes will be the same for a PDS and a PDSE, do not confuse these two as being interchangeable. They are not.

A PDS contains a load module, while a PDSE contains a program object. They are both created by the Linkage Editor/Binder, but they are not the same thing. Do not attempt to use a PDSE [for program objects] unless it is specifically supported and the same applies in reverse.




Topic author
DannyG
New Member
Posts: 7
Joined: Tue Dec 30, 2014 11:09 am

Re: What are the parameters defined for a load module dataset?

Postby DannyG » Mon Jun 27, 2016 5:03 pm

Gerhard_Adam wrote: It doesn't really do anything for efficiency, because only the TXT records in a load module are subject to blocking.  Since these records are only read during program load, it has virtually no effect on performance.

What is a TXT record and what is their purpose for a load module?


The average size of a record in a load library is less than 256 bytes, which is why the RECFM=U.  This is undefined because there is no concept of a logical record and therefore the LRECL=0.

Sorry I did not understand it. If "the average size of a record in a load library is less than 256 bytes" why it needs to be undefined, it could be VB?
And again
A PDS contains a load module, while a PDSE contains a program object.

 But Robert said:
A load library is partitioned (either PDS or PDSE), with record format U, no record length, and some block size.

So what PDS can have load or object? :?



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1219
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 86 times

Re: What are the parameters defined for a load module dataset?

Postby Robert Sample » Mon Jun 27, 2016 7:03 pm

A PDS can only store a load module while a PDSE stores program objects.  They are both typically called load libraries.  The differences are that a load module limits external references to 8 characters while program objects can have external references up to 32767 bytes long and a load module can only have 32767 external references while program objects external references are only limited by memory available.  Program objects are the "new" (as of 1995) way of creating executable code on a system z machine, but IBM continues to support load modules for backwards compatibility.  Program objects can also be stored in a Unix directory.  There are a few data sets that must still be a PDS (since the PDSE code is not loaded when the system IPL starts), but generally all other load modules can be converted to program objects.




Return to “Interview Questions.”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests