Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Load Libraries - Any restriction to number of users?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Load Libraries - Any restriction to number of users?
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    Post subject: Re: Load Libraries - Any restriction to number of users?
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    Post subject: Re: Load Libraries - Any restriction to number of users?
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: 53
Location: India

PostPosted: Mon Aug 22, 2005 5:22 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us