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

Explain the difference between a package and a plan. How does one bind 2 versions of a cics transaction with the same module name in two different cics regions that share the same db2 subsystem?

530


Explain how to build up lu 6.2 communication?

608


Explain the difference between getting the system time with eibtime and asktime command?

553


Explain how do you terminate an already issued delay command?

536


Explain how do you handle errors in cics programs?

540






Define TCT.

701


What is the type of ppt in the cics?

569


Mention the content that is present inside a PPT ?

549


What are the classifications of the cics program?

622


What are the cics tables?

647


Name some translator and compile options and explain their meaning?

2365


Explain the thress bms options?

562


How to handle exceptional conditions in cics?

641


Code the related portions of cics/cobol-i programs to gain addressability to twa area assigned to a particular task. Assme that the size of twa area is 300bytes. What are the advantages if cobol-ii is used in the place of cobol?

672


Explain how do you control cursor positioning?

557