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 rebind in db2?
How to take backup of table in db2?
How does coalesce work?
What is the difference between drop table and delete table?
Define check constraint.
When reorg is used?
What is a buffer in memory?
What is access path in db2?
What is cursor stability in db2?
What is concurrency?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
Why cursor is used in db2?
Which command is used to connect to a database in DB2 ? Give the Syntax.
How can we read records for specific member in CL? AND rpg?
Why do we bind in db2?