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
What is difference between alias and synonym in db2?
On which levels locks can be applied?
Comment whether the cursor is closed during commit or not.
What is the advantage in De-normalizing tables in DB2?
How to retrieve rows from a db2 table in embedded sql?
What are concurrency issues?
What is sqlca?
What is release/acquire in bind?
Mention the various locks that are available in db2.
What are the contents of a dclmgen?
What is iseries database?
What's The Error Code For Unique Index Voilation?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?
what is db2 restart?
What is dclgen in db2?