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
 

 

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: 1529
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: 7241

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: 7241

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 CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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