Why is GETMAIN command needed?? Will program not work if we
do not give GETMAIN?
Answers were Sorted based on User's Feedback
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 |
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 |
Can you define multiple maps in a BMS mapset?
Is it possible start a transaction CICS from job Batch? How do it?
Explain how do you set the mdt option to on status, even if data is not entered?
What is journal recovery?
What is the tcp in the cisc?
What are the classifications of the cics program?
How do you enter into cics region and how many regions available?
Highlight the difference between a symbolic map and physical map?
What is the difference between using the READ command with INTO option and SET option?
I just want to ask why does the variable I passed in a dclgen of sql that has a data type of varchar which has a maximum length is 250 is truncated,, Here is the code.. DCLGEN of rsauud01 table 01 dataarea 43 data-area-len pic s9(4). 43 data-area-text pic x(250). MYVARIABLE. 01 DATAAREA1 pic x(250). move 250 to data-area-len of dataarea of rsauud01 MOVE DATA-AREA1 TO data-area-text of dataarea of rsauud01 --- but it is always trucated everytime I insert it in the table by the way it is a cobol-cics program
Name and explain some common CICS abend codes?
What is the meaning and use of the EIBAID field?