Why is GETMAIN command needed?? Will program not work if we
do not give GETMAIN?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kingmanish
Hi Pradeep. What will happen if the GETMAIN command is issued and memory is not available.
Will the program abend or it will keep trying until it gets memory.
also if the memory is not available for a long time Will it get time out??
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use both FSET n FRSET together in BMS? And if yes then what will happen?
Can you explain communication area?
Which is the EIB field that gives the date when a task was started?
what is the deadlock?
what is mapfail and when we get this error? during send map or receive map?
What is fset?
Give the definition of COMMAREA ?
How errors are handled in CICS programs?
What is the cics command that is used to access current date and time?
What is meant by an AICA ABEND?
Which of the following commands, when issued by 2 different programs running at the same time, will prevent simultaneous use of resource 'SINGLE'?
What are the differences between an EXEC CICS XCTL and an EXEC CICS LINK command.