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
Explain the different ways of initiating transaction in cics?
Differentiate between PCT and FCT.
Explain how do you set the mdt option to on status, even if data is not entered?
Define RCT.
what is the most common way of building queue-id of a tsq?
Explain the function of the cics translator?
How is Telon(CA-Telon) used to build map?
What does the 'cedf:cics' transactions do?
Explain the difference between pseudo-conversational and conversational?
Name the command used for terminating a browse operation?
Explain the uses that are associated to tsq and tdq ?
Explain the difference between using the read command with into option and set option?
What is a transid?
What is mainframe cics?
How vsam files are read in cics pgms?