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 |
COMMIT & ROLLBACK WE WILL NOT USE IN CICS PROGRAMMING INSTEAD OF COMMIT WE USE SYNC POINT THEN WT WE USE FOR ROLL BACK?
Explain how to handle exceptional conditions in CICS.
Explain the difference between start and xctl?
name the command that is used to dump the main storage areas related to a task?
list the sequence of steps used to achieve modiication in skip sequential mode?
How do you access the records randomly in TSQ ?
Can we use both FSET n FRSET together in BMS? And if yes then what will happen?
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
How do you dynamically set the CURSOR position to a specific field?
How can the fact that EIBCALEN is equal to zeros be of use to an application programmer?
What is MDT ? How it is related FSEAT & FRESET? what is the meaning of MDT on.. pls ans With explanation is will be more helpfull thank you
Have you entered any program names in PPT or PCT? If so How?