Why is GETMAIN command needed?? Will program not work if we
do not give GETMAIN?

Answers were Sorted based on User's Feedback



Why is GETMAIN command needed?? Will program not work if we do not give GETMAIN?..

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

Why is GETMAIN command needed?? Will program not work if we do not give GETMAIN?..

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

Post New Answer

More CICS Interview Questions

Which of the following statements correctly describe the syntax of CICS command language?

1 Answers  


Which is the AID that will not be identified in the ANYKEY option of the HANDLE AID command?

1 Answers  


Are sequential files supported by CICS?

1 Answers  


how can we differentiate between conventional and pseudo-conventional coding just by seeing cobol code?

2 Answers   Patni,


Explain the difference between dfhcommarea and tsq?

0 Answers  






What is DEQ?

0 Answers  


Can you tell recent requirement(s) you handled with your project? Requirements based on Banking Application.

2 Answers   ITC Infotech,


What does the 'ceci:cics' transactions do?

0 Answers  


What are the advantage of Model Data Set Table: it will be help to which among this DCB; LRECL; DISP; SPACE?

1 Answers  


How is dynamic memory allocated within a CICS application program?

1 Answers   IBM,


What is MDT? What are FSET, FRSET ?

3 Answers   IBM,


What is the function of the EXEC CICS HANDLE CONDITION command?

3 Answers  


Categories