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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is fset?

583


What is the difference between a return with transid and xctl?

581


What are the uses of ppt in cics?

545


Explain the difference between a return with transid and xctl? For example program. A is issuing return with transid to program b. Program a. Is isssuing xctl to program b?

616


Define task work area?

882






Explain the thress bms options?

578


What is the procedure to read a statement from tsq?

649


kindly specify the pic clause for the following:any bll cell, data type of length option field, hhmmss type of data fields?

681


when a task suspends all the handle conditions via the push command, how does the task reactivate all the handle conditions?

697


What is ENQ?

656


Differentiate between PCT and FCT.

649


what are the differences between and exec cics xctl and an exec cics link command?

713


What is program reentrance?

624


what is an mdt (modified data tag)? Its menaing and use?

631


what are the thress bms options?

697