IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Load Libraries - Any restriction to number of users?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pep

New User


Joined: 10 Jul 2005
Posts: 1

PostPosted: Sun Jul 10, 2005 10:17 am
Reply with quote

Hi,

The load library is a library where your load modules are stored. And when you run a JCL/number of programs against it - the system loads the program you have called from this library and executes.

So, here are a couple of questions.
a. Where does this program run, considering batch only? (Region/Memory)
b. How does it work with multiple users? Does it make copies for each execution? or Qs the request? or multithreads it?
c. unless it makes copies - wouldn't there be a limit to the number of ppl acessing a Load library?

Hope someone can help me with there queries. Thanks!
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Mon Jul 18, 2005 5:58 pm
Reply with quote

Hi,

Unless RESIDIENT option is specified in the program,

Load module is loaded in to the main memory seperately for each copy of concurent runs.

However, for RESIDIENT programs the DATA section (mostly your working storage and linkage veriables,) will not be shared.

For different concurrent execution of the same programs, generally they are loaded into the different address spaces.

I think, expert elaboration is required for this post. icon_cool.gif
Back to top
View user's profile Send private message
mikeym

New User


Joined: 18 Aug 2005
Posts: 7

PostPosted: Thu Aug 18, 2005 8:33 pm
Reply with quote

I can elaborate...

The fact that the load modules sit on a Disk (DASD) in a PDS is only a
storage matter. Anyone (who has access) can read this load module,
and then LINK/ATTACH... it into their address space. This copies the
load module into the Address Spaces memory and depending on the
command, allows you to run the code.
All this means is that if you have a job, and you have the following step:
//STEP1 EXEC MYLOADMOD
The load module is searched for and found in a PDS and loaded to the jobs memory.
Seeing as MVS uses virtual memory, each job runs it's own copy of the
load module in it's own region.
If the module has been loaded into shared memory (CSA, ECSA or LPA and more), the module must be one that does not change itself (REUSABLE), and then all address spaces can use the version in the same memory area (and no one disturbs anyone else).

Now back to your questions:
1) The program is read from the pds just like any other file, and run in the memory of the address space that loaded it. Region is the maximum memory that the Address Space has.
2) There is no problem with multiple users, because each user reads the module from the pds into their own memory (and you can have many users/jobs doing that, at the same time as long as they are all sharing the PDS and not holding it exclusivly).
3) There is no limit to the number of Address Spaces running the same module, or Q. (there is a limit to the number of address spaces that can run at the same time, but thats beside the point).
Back to top
View user's profile Send private message
ideas

New User


Joined: 25 May 2005
Posts: 52
Location: India

PostPosted: Mon Aug 22, 2005 5:22 pm
Reply with quote

Nice Info mikeym!! thank you.
Back to top
View user's profile Send private message
michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Fri Sep 02, 2005 11:31 am
Reply with quote

mikeym Excellent!!

Regards,
MIKE.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top