FREEMAIN command
Releases main storage obtained using the GETMAIN command. In Smalltalk, the parameters of the FREEMAIN command are contained in two classes: CICSFreemain and CICSFreemainResult.
See CICS Application Programming Reference for the syntax of the command and a description of its parameters.
Defined instance methods
Parameters supplied to CICS in CICSFreemain
| | | | |
DATA(data-value) | data: | Input | Variable | |
DATAPOINTER(data-value) | datapointer: | Input | Variable | DATAPOINTER is an alias of DATA |
Parameters returned by CICS in CICSFreemainResult
| | | | |
RESP | resp | Output | Fixed(2) | Inherited from CICSResult. |
RESP2 | resp2 | Output | Fixed(2) | Inherited from CICSResult. |
Example
Frees storage using the DATA parameter.
| resultfromGetmain resultfromFreemain obtainedStorage |
resultfromGetmain := CICS getmain
flength: 81;
initimg: 0;
exec.
obtainedStorage := resultfromGetmain set.
resultfromFreemain := CICS freemain
data: obtainedStorage;
exec.
Last modified date: 07/09/2019