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 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?
Explain how to build up lu 6.2 communication?
Explain the difference between getting the system time with eibtime and asktime command?
Explain how do you terminate an already issued delay command?
Explain how do you handle errors in cics programs?
Define TCT.
What is the type of ppt in the cics?
Mention the content that is present inside a PPT ?
What are the classifications of the cics program?
What are the cics tables?
Name some translator and compile options and explain their meaning?
Explain the thress bms options?
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?
Explain how do you control cursor positioning?