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 |
Explain how would you resolve an asra abend?
Into what fields will the date and time values be moved after execution of the above command?
How would you release control of the record in a READ for UPDATE?
list the sequence of steps used to achieve modiication in skip sequential mode?
What are the attribute values of Skipper and Stopper fields?
An XCTL uses more CPU time than LINK (True or False)
Which CICS system program is responsible for handling automatic task initialization?
If -1 is moved to length for more than one field on a map, where will the cursor be positioned?
Explain the maps in cics?
Explain the difference between exec cics handle condtion and an exec cics ignore command?
What is the common systems area (CSA)?
What CICS command do you need to obtain the user logon-id?