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 is some of the information available in the EIB area?

2 Answers   IBM,


Can you explain multitasking and multithreading?

0 Answers  


cics command level is?

0 Answers   IBM,


Can you define attribute byte?

0 Answers  


Name three ways the Modified Data Tag can be set on?

6 Answers   IBM,






COMMIT & ROLLBACK WE WILL NOT USE IN CICS PROGRAMMING INSTEAD OF COMMIT WE USE SYNC POINT THEN WT WE USE FOR ROLL BACK?

3 Answers  


What will be the length of the eibcalen ,if the transaction is used to cics first time?

3 Answers   IBM,


How to import the cics code for updations? what are steps do we need follow for execution again after modification? plz any body help me to know

1 Answers   IBM,


Name the 3 common ways to create maps?

0 Answers  


Explain the difference between physical map and symbolic map?

0 Answers  


How do find length of the cursor in cics map ?

3 Answers   HCL,


Explain page up and page down logic along with coding logic in cics?

3 Answers   Wipro,


Categories