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

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

2027


which is the cics control program that provides communication services between user written application programs and terminals?

756


Explain the difference between and exec cics xctl and an exec cics link command?

766


What are the terms cics generally means?

771


Can you explain primary aspect of cics?

890


What is the meaning of the enq command?

801


What is the pic clause for the data type of length option field type of data fields?

731


Define floating maps with illustration?

752


Explain processing program table(ppt)?

848


What is a cics task?

804


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

822


Specify cics transaction initiation process?

784


Receive consists of buffer option in it. What is the significance of this option?

787


Define an asra abend?

815


Can you use occurs in bms map?

797