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

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

New User


Joined: 15 Jun 2007
Posts: 92
Location: bangalore

PostPosted: Fri Dec 07, 2012 2:56 pm    Post subject: CICS commarea usage
Reply with quote

Hi All,

i am new to CICS programs in real time.

In my shop most of the CICS programs are using/sharing the same commarea. its length is PIC X(4096) and there are multiple record layouts in this commarea.now my question is while linking the program
like below how can i find which record is being used??

Code:
EXEC CICS LINK             
     PROGRAM('ABCD1234')   
     COMMAREA(DFHCOMMAREA) 
     LENGTH(COMMAREA-LENGTH)
END-EXEC
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1542
Location: Andromeda Galaxy

PostPosted: Fri Dec 07, 2012 3:16 pm    Post subject:
Reply with quote

Quote:
CICS programs are using/sharing the same commarea


What is that could you please explain?? icon_question.gificon_rolleyes.gif
Back to top
View user's profile Send private message
chandracdac

New User


Joined: 15 Jun 2007
Posts: 92
Location: bangalore

PostPosted: Fri Dec 07, 2012 3:20 pm    Post subject: Reply to: CICS commarea usage
Reply with quote

well i know using the commarea programs will exchange the data in CICS region. But in my case commarea defined has multiple record structures and i want to know which record structure is used while calling the other programs.

Hope i am clear
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Dec 07, 2012 3:26 pm    Post subject: Reply to: CICS commarea usage
Reply with quote

You may be clear or not, but you have not understood how it works, or, by implication, how "linkage" between programs occurs in Cobol or in any other mainframe language.

Do some research on that, it is necessary for you. There is stuff here, probably stuff "out there" on the web, but I'd guess lots there would be wrong.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 07, 2012 8:34 pm    Post subject:
Reply with quote

Hello,

Quote:
i want to know which record structure is used while calling the other programs.
I suspect the entire commarea is named in the call and in the called module.

The calling module has to put the data in the record structure that the called module is coded to reference.
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Sat Dec 08, 2012 1:45 pm    Post subject:
Reply with quote

Finding out which layout is used, is purely programming logic.
I suggest you look more closely to the layout of the commarea and I assume you find some redefines, to cater for different layouts. In front of the redefines ther should(could) be a common indicator to tell you the type of record in the commarea.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sun Dec 09, 2012 6:00 am    Post subject: Reply to: CICS commarea usage
Reply with quote

If the LINKed-to program is an existing, working, program, it will be using the correct record-layout for that program.

If it is a new program, the spec will say which record-layout to use.

CICS knows nothing about the record-layouts as it is executing the LINK, or at any time. All CICS is doing is passing an address to the LINKed program from the LINKing program.

Items referenced immeadiately before the LINK will likely be from the record-layout the LINKed-to program uses, as Dick has said.

As Peter indicates, there should be "something" somewhere in the record-layout which indicates the data that is in the commarea at the time, and therefore the record-layout which correctly maps that data (not to CICS, but to humans). CICS does not know about this, and it is not mandatory to have, just very, very sensible.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm

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