View previous topic :: View next topic
|
Author |
Message |
subramsa
New User
Joined: 15 Apr 2005 Posts: 16 Location: Bangalore, India
|
|
|
|
Hi,
I have see some COBOL programs with CBL RENT
CBL RENT
IDENTIFICATION DIVISION.
PROGRAM-ID. PXXXXXX.
AUTHOR. AAAA AAAAAAA.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-S-390.
OBJECT-COMPUTER. IBM-S-390.
Can someone please explain me whats CBL RENT ? why its being used?
Many thanks for your help
Regards
subramsa |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi subramsa,
RENT allows one copy of a program (typically a subpgm) to be used simultaneously by many other pgms executing in different addr spaces.
The idea is to save CPU memory - one pgm instead of 30. As I recall it's only the code that's shared. Each user has a dedicated data div that the system manages automatically. |
|
Back to top |
|
|
subramsa
New User
Joined: 15 Apr 2005 Posts: 16 Location: Bangalore, India
|
|
|
|
Hi Jack,
Many thanks for your reply. Do you have any sample code which explains CBL RENT? If so can you paste here(if it abides forum rules)
Regards
subramsa |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Sai,
The CBL RENT stmt you provided is all it takes to build a reentrant pgm. The system (compiler, OS, etc.) does the rest. You can also provide the RENT option via JCL when compiling.
One other thing I forgot to mention CICS requires all pgms to be Compiled/Linked using RENT. But the shop usually provides the PROC w/the proper options |
|
Back to top |
|
|
|