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 Usergroups Profile Log in to check your private messages Log in
 

 

What is CBL RENT Statement?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: What is CBL RENT Statement?
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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