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 the difference between tsq and tdq

605


What is frset?

581


For protecting a transaction using the transaction security function, the two things that must be done are?

1813


What is the meaning of the enq command?

597


Specify cics transaction initiation process?

578






Highlight the difference between a symbolic map and physical map?

614


Can you define ppt and what are its uses?

635


What are the terms cics generally means?

581


How to get the cursor position when we receive a map?

587


Explain the primary significance of intra-partition and extra-partition tdqs ?

587


What is DEQ?

614


Explain the different ways of initiating transaction in cics?

518


What is ENQ?

663


Explain the difference between link xctl?

554


Name the three ways available for a program to position the cursor on the screen?

600