Why is GETMAIN command needed?? Will program not work if we
do not give GETMAIN?

Answer Posted / pradeep kumar

Getmain is a named memory for the Linkage Section variables
in the CICS program. The variables are passed to the memory
using SET command. The SET command can be used only for 01
and 77 level group items.

Program will work even if GETMAIN is not coded, because the
memory will be allocated automatically by the compiler, but
if the programmer needs memory space for the Linkage
Section Variables explicitly, then he/she can use GETMAIN
to allocate memory and FREEMAIN is used to freeout the
allocated memory.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you control cursor positioning?

639


what is the difference between a package and a plan. How does one bind 2 versions of a cics transaction with the same module name in two different cics regions that share the same db2 subsystem?

691


Specify cics transaction initiation process?

645


Explain how do you access storage outside your cics program?

610


Define the term transaction routing?

659






what is the cics command used to access current date and time?

711


If we wish to create bms executable, what are the basic steps that the user has to go through?

737


Can you explain dfheiblk?

742


when an apllication is invoked via the exec cics start command with the from option, how does the application gain access to the common area?

741


Explain how do you handle errors in cics programs?

630


what are the thress bms options?

778


Code the related portions of cics/cobol-i programs to gain addressability to twa area assigned to a particular task. Assme that the size of twa area is 300bytes. What are the advantages if cobol-ii is used in the place of cobol?

774


Explain how do you dynamically set the cursor position to a specific field?

705


Explain cebr transaction commands?

640


What is the use of the program list table?

714