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

Explain the purpose of the program list table?

0 Answers  


What is the cics command that is used to access current date and time?

0 Answers  


Specify cics transaction initiation process?

0 Answers  


list the sequence of steps used to achieve modiication in skip sequential mode?

0 Answers   IBM,


How can you start a CICS transaction other than by keying the Transaction ID at the terminal?

5 Answers   IBM,






what is an MDT in cics

4 Answers   Syntel,


Can we define an alternate index on VSAM/RRDS ?

2 Answers   IBM,


Hai I have a VSAM file and there are two CICS pgms A and B both intends to update the file. How to code the program so that it does not under go a dead lock situation.

4 Answers  


How ENQ and DEQ used in CICS?

0 Answers  


Explain how pa key is different from pf key?

0 Answers  


Which option of the PCT entry is used to specify the PF key to be pressed for initiating a transaction?

2 Answers   IBM,


What is temporary storage?

1 Answers   IBM,


Categories