What is the use of COMMAREA ?Minimum how much data we can
pass from it?

Answer Posted / david staudacher

The COMMAREA is used to pass data between programs, and to
the next program in a pseudo-conversational sequence. The
COMMAREA may originate in either Working Storage or Linkage
Sections, but best practice is to avoid having identical
layouts in each. The best technique is to code the
following, just after the PROCEDURE DIVISION statement:

IF EIBCALEN = 0
EXEC CICS GETMAIN SET (ADDRESS OF DFHCOMMAREA)
LENGTH (LENGTH OF DFHCOMMAREA) END-EXEC
END-IF

Now you have just ONE copy of the Commarea - always in
Linkage. You don't to move it or worry over whether the
most current data is in Working Storage or Linkage. It's
ALWAYS in Linkage.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlca?

845


What is db2 purescale?

789


What is dbrm?

885


What is meant by explain?

886


Explain in brief how does db2 determine what lock-size to use?

813


When reorg is used?

891


What is reorg and runstats in db2?

984


Which components manage deadlocks in db2?

840


How do I change the column size in db2?

894


What is collection in db2 bind?

800


How do I delete a table in db2?

852


What is db2 plan table?

840


When the like statement is used?

929


What is cursor stability in db2?

1082


Explain in detail about buffer manager and its functionalities?

811