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's the use of NODYNAM and RENT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sameena

New User


Joined: 27 Nov 2006
Posts: 6
Location: india

PostPosted: Tue Nov 28, 2006 3:42 pm    Post subject: What's the use of NODYNAM and RENT
Reply with quote

Hi,

In each every stored procedure i can see two statements CBL NODYNAM and CBL RENT.Can anybody explain me the usage of these two statements
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Tue Nov 28, 2006 4:29 pm    Post subject:
Reply with quote

Hi !

I guess you're talking about cobol programms having EXEC SQL statements and the compiler option DYNAM/NODYNAM.

When you run under:

TSO or IMS: You can use either the DYNAM or NODYNAM compiler option.
Note that IMS and DB2 share a common alias name, DSNHLI, for the language interface module. You must concatenate your libraries as follows: If you use IMS with the DYNAM option, concatenate the IMS library first. If you run your application only under DB2, concatenate the DB2 library first. CICS or the DB2 call attach facility (CAF): You must use the NODYNAM compiler option. Because stored procedures use CAF, you must also compile COBOL stored procedures with the NODYNAM option.

A program compiled as RENT is generated as a reentrant object program. A program compiled as NORENT is generated as a nonreentrant object program. Either can be invoked as a main program or subprogram.

DATA and RMODE settings: The RENT option interacts with other compiler options that affect storage and its addressability. When a reentrant program is to be run with extended addressing, you can use the DATA(24|31) option to control whether dynamic data areas are allocated in unrestricted storage or in storage obtained from below 16 MB. Compile programs with RENT or RMODE(ANY) if they will be run with extended addressing in virtual storage addresses above 16 MB.

RENT also affects the RMODE (residency mode) of your generated object program. All Enterprise COBOL programs are AMODE ANY.

DATA: The setting of the DATA option does not affect programs compiled with NORENT.

CICS: You must use RENT for programs to be run under CICS.

UNIX: You must use RENT for programs to be run in the UNIX environment.

DB2: RENT is recommended for DB2 stored procedures, especially programs designated as main.

Regards, Umeysan
Back to top
View user's profile Send private message
sameena

New User


Joined: 27 Nov 2006
Posts: 6
Location: india

PostPosted: Tue Nov 28, 2006 6:16 pm    Post subject: Re: What's the use of NODYNAM and RENT
Reply with quote

hi
Thanks for the information.
Now clear about RENT.
for NODYNAM i want simple description.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Tue Nov 28, 2006 8:51 pm    Post subject: Re: What's the use of NODYNAM and RENT
Reply with quote

Refer to manual for details:

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol4.doc/tpdb207.htm

Also see DYNAM in above link.
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 DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts Suggestions needed - Rent a house or ... vasanthz General Talk & Fun Stuff 6 Mon Jan 31, 2011 4:07 pm
No new posts CICS programs - NODYNAM compiler opti... venktv CICS 9 Mon Jul 19, 2010 7:22 pm
No new posts Why we should compile CICS with NODYN... Himanshu Khatri CICS 3 Mon Sep 14, 2009 8:56 am
No new posts Mainframe Time on Rent sekhar_sinha All Other Mainframe Topics 10 Tue Aug 04, 2009 5:18 pm


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