GETMAIN command
Obtains main storage. In Smalltalk, the parameters of the GETMAIN command are contained in two classes: CICSGetmain and CICSGetmainResult.
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 CICSGetmain
 
Parameter
Instance method
Mode
Type
Notes/exceptions
FLENGTH(data-value)
flength:
Input
Binary 32
 
INITIMG(data-value)
initimg:
Input
Fixed(1)
 
LENGTH(data-value)
length:
Input
Binary 32
LENGTH is an alias of FLENGTH
NOSUSPEND
nosuspend
Input
Switch
 
SHARED
shared
Input
Switch
 
Parameters returned by CICS in CICSGetmainResult
 
Parameter
Instance method
Mode
Type
Notes/exceptions
RESP
resp
Output
Fixed(2)
Inherited from CICSResult.
RESP2
resp2
Output
Fixed(2)
Inherited from CICSResult.
SET(ptr-ref)
set
Output
Variable
 
Example
Obtains CICS main storage.
| resultfromGetmain obtainedStorage |
resultfromGetmain := CICS getmain
length: 81;
initimg: 0;
shared;
exec.
obtainedStorage := resultfromGetmain set.
Last modified date: 07/09/2019