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

What's the use of NODYNAM and RENT


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 771
Location: Germany

PostPosted: Tue Nov 28, 2006 4:29 pm
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
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
Reply with quote

Refer to manual for details:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts DIrect link of dynam/nodynam COBOL Programming 2
No new posts Suggestions needed - Rent a house or ... General Talk & Fun Stuff 6
No new posts CICS programs - NODYNAM compiler opti... CICS 9
No new posts Why we should compile CICS with NODYN... CICS 3
No new posts Mainframe Time on Rent All Other Mainframe Topics 10
Search our Forums:

Back to Top