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 package in cobol db2?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
Mention some fields that are a part of sqlca.
What is role in db2?
Give the name of some fields form sqlca.
How can you count the number of rows from a table tab?
What parameters are used to control the free space in DB2?
What are the various isolation levels possible?
what is diffrence b/w file-aid tool and file-aid utility???
What is buffer pool?
Explain dclgen.
Why do we need reorg in db2?
What is the difference between plan and package in db2?
Define declaration generator (dclgen).
How to resolve deadlock issue