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 how do you control cursor positioning?
what is 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?
Specify cics transaction initiation process?
Explain how do you access storage outside your cics program?
Define the term transaction routing?
what is the cics command used to access current date and time?
If we wish to create bms executable, what are the basic steps that the user has to go through?
Can you explain dfheiblk?
when an apllication is invoked via the exec cics start command with the from option, how does the application gain access to the common area?
Explain how do you handle errors in cics programs?
what are the thress bms options?
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 dynamically set the cursor position to a specific field?
Explain cebr transaction commands?
What is the use of the program list table?