Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
NOLINKAGE option in COBOL CICS program

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

New User

Joined: 27 Dec 2005
Posts: 21
Location: Bangalore

PostPosted: Wed Apr 14, 2010 3:09 pm    Post subject: NOLINKAGE option in COBOL CICS program
Reply with quote


I understand that XOPTS NOLINKAGE and LINKAGE can be used alrenatively in a COBOL CICS program. However, I dont understand the exact difference between these two. The only difference I can understand is: usage of XOPTS NOLINKAGE (DFHEIBLK is to be included explicitely in the linkage section) will save program from having unnecessory DFHCOMMAREA block to be included in the procedure division.

Please correct me if I am wrong.

Back to top
View user's profile Send private message


Active Member

Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Fri Apr 16, 2010 2:13 am    Post subject:
Reply with quote

unnecessory DFHCOMMAREA block

IMHO 'unncessaary' will be is too harsh verbiage in this situation.

I will rather say that NOLINKAGE will transfer the responsibility of declaring commarea structure to the programmer.

If option is LINKAGE-
CICS translator will find if program has a linkage section or not.
If not, it will insert a linkage section definition.
If programmer has just declared linkage section and nothing is defined inside it then, translator will add the definition of DFHEIBLK and DFHCOMMAREA structures in it.
And it will modify the procedure divison statement to PROCEDURE DIVISION USING DFHEIBLK DFHCOMMAREA.

When NOLINKAGE, it won't bother to check if programmer has declared it or not. This transfers the responsibility to the programmer.

Think about this hypothetical scenario-
If there is program B which is translated with NOLINKAGE option and user hasn't declared DFHCOMMAREA.
Now program A wants to LINK this program B using COMMAREA(some-variables), how will program B receive these variables?
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 CICS-MQ connection setup issue kaushikv CICS 3 Wed Mar 21, 2018 8:10 pm
No new posts batch cobol/db2 paragraph fall thru a... alois eisshofer COBOL Programming 5 Wed Mar 14, 2018 12:21 am
No new posts Need Help!!CEE library issue while br... kaushikv CICS 9 Fri Mar 09, 2018 6:06 pm
No new posts CICS RETRIEVE pshongal CICS 2 Thu Mar 08, 2018 9:15 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us