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

How does coalesce work?

764


What is the maximum No of rows per page?

832


List down the data types in the db2 database.

821


What is declare cursor?

833


How does db2 sample database connect?

791


What is explain in db2?

794


What is the use of db2?

808


How to find schema of a table in db2?

763


What is a collection in db2?

785


What are the rules for db2 programming?

876


How to check sequence on a table in db2?

822


What is table space in db2?

796


Is schema the same as database?

841


What is the use of reorg in db2?

835


What is consistency token in db2?

877