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

What is CBL RENT Statement?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subramsa

New User


Joined: 15 Apr 2005
Posts: 16
Location: Bangalore, India

PostPosted: Tue Jun 28, 2005 9:11 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jun 28, 2005 10:51 pm
Reply with quote

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
View user's profile Send private message
subramsa

New User


Joined: 15 Apr 2005
Posts: 16
Location: Bangalore, India

PostPosted: Wed Jun 29, 2005 7:06 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jun 30, 2005 7:50 am
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
No new posts DFDSS COPY using Filter REFDT statement JCL & VSAM 2
Search our Forums:

Back to Top