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

can all users have the privilage to use the sql statement select * (dml)?

634


What is plan in cobol db2?

582


What language is db2 written in?

591


What is runstats utility in db2?

565


What are the bind parameters ibm db2?

618






What is the clustering index in the db2 database?

578


What is the difference between nvl and coalesce?

598


What are the rules for db2 programming?

638


Which components manage deadlocks in db2?

602


Mention the downsides of page level lock.

701


How to check last update on table in db2?

624


What is explain plan in db2?

584


Where do you specify them?

673


Can we delete records from view?

553


Is db2 free?

678