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
Define an aey9 abend?
Can you explain enq and deq used in cics?
Explain the thress bms options?
What are the main uses of the transaction in the cics?
Particular area has been affected in cics screen, what is the process to find?
Is length = 0 sufficient to ascertain that the field has been modified?
Define floating maps with illustration?
Explain ceci transaction commands?
In case if the user inputs the characters which turn out to be uppercase, then what is the procedure to close that condition?
What is the pic clause for the hhmmss type of data fields?
We can allocate memory dynamically by using GET MAIN command my question is at what scenario we can't release this memory and reuse this same memory??
How to handle exceptional conditions in cics?
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?
How to get the cursor position when we receive a map?
Explain what is the massinsert option?