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?

573


What is bind package and plan in db2?

585


When the like statement is used?

623


What is ibm db2 used for?

594


What does runstats do in db2?

598






What happens in bind step in a db2 program?

557


Mention the different locking levels that are available in db2.

631


What is query_cache_limit?

539


What is the syntax for seeing the columns and data types of a table in the db2 database?

571


What do you mean by between and in? Is between inclusive of specified range values?

652


What is syscat in db2?

566


Who uses db2?

565


When reorg is used?

661


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

694


What is the difference between bind and rebind in db2?

837