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

What does ?Pseudo Conversational? mean?

3 Answers   IBM,


if i have 3 fields and i declare IC for all of them .. Then where will the cursor after sending map? pls give explanation (it will be so kind)

5 Answers   CICS,


Can you define multiple maps in a BMS mapset?

3 Answers   Cap Gemini, IBM,


What are the terms cics generally means?

0 Answers  


Given below code, find the value of 'x'. Perform s001-x thru s001-y. s001-x. add 1 to x . s001-1x. ------- . s001-y. perform s001-1y 10 times . s001-1y. perform s001-2y 10 times . s001-2y. perform s001-x 10 times .

1 Answers  






How do you rollback data written to an ESDS file?

1 Answers   IBM, Infosys,


What is task control and what are the CICS commands associated with it?

2 Answers   IBM,


interview type questions like basics&deep

0 Answers   TetraSoft,


What is the kcp in the cics?

0 Answers  


What does the 'cebr:cics' transactions do?

0 Answers  


Can you explain cics translator?

0 Answers  


What are the cics tables?

0 Answers  


Categories