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

How would you release control of the record in a READ for UPDATE?

2 Answers   IBM,


What is the function of the Terminal Control Table(TCT)?

1 Answers  


How to execute a cics program from a paticular date and time .or specified date and time.

3 Answers   CSC,


Mention the content that is present inside a PPT ?

0 Answers  


CICS provides an interface through which the all the DL/I services can be used under CICS(True or False).

1 Answers  






What are the databases that CICS can access?

1 Answers  


How would you resolve an ASRA abend?

2 Answers   IBM,


What is the term bms in cics?

0 Answers  


What is DFHEIBLK?

3 Answers   IBM,


Explain how to build up lu 6.2 communication?

0 Answers  


Can you explain dfheiblk?

0 Answers  


What is the meaning of the ENQ and DEQ commands?

1 Answers   IBM,


Categories