In CICS, there are two types of storages – Temporary and Permanent. However, GETMAIN command acquires temporary storage during execution of the program and releases (Temporary). On the other hand, the permanent storage is fixed.
You can issue this command to store data within transaction. User storage acquired by EXEC CICS GETMAIN without SHARED option
The areas where you need storage are:
- Transaction Work Area (TWA)
- COMMAREA in an EXEC CICS LINK or EXEC CICS XCTL
- TIOA in an EXEC CICS LINK or EXEC CICS XCTL with INPUTMSG
- Program storage
Sharing data across transactions:
- Temporary Storage
- Common Work Area (CWA)
- Terminal user area (TUA)
- COMMAREA in a RETURN
- TIOA in a RETURN with INPUTMSG
- Display screen
- Intra-partition transient data
- Your own files
- User storage acquired by GETMAIN with SHARED option
Load command is used to load a program of independently compiled and has an entry in PPT. Load makes a copy of an application program, table, or map available to the invoking task. If the program is defined with RELOAD=NO, it is fetched from the LIBRARY concatenation where it resides only if there is not a copy already in main storage.
If the program is defined with RELOAD=YES, a new copy is always fetched from the LIBRARY concatenation.
You must be logged in to post a comment.