There are three macros supplied with CA IDMS/DB that can be used in Assembler:
#GETSTG
#GETSTG acquires variable storage from a storage pool or obtains the address of a previously acquired storage area. Syntax is shown below:
{label} #GETSTG TYPE=(USER,SHORT),PLIST=*,
LEN=stg-len,INIT=init-val,
ADDR=(R1),ERROR=error-label
Note: If the user exit is acquiring storage, a #FREESTG must be done before the end of the program.
#FREESTG
#FREESTG requests CA IDMS/DC to release a block of variable storage. Syntax is shown below:
{label} #FREESTG ADDR=(R1)
ADDR=(R1) specifies the address of the storage area to be released.
#MOPT
#MOPT sets up the options for the issuing module. The only code that should appear prior to the #MOPT is 'TITLE', COMMENTS, or source macro definitions. Syntax is shown below:
#MOPT ENV=USER
ENV=USER specifies that this is a DC/UCF user module.
Note: The #MOPT macro also equates register 0 through register 15 to R0 through R15.
For a complete definition of these macros see CA IDMS DML Reference Guide for Assembler.
|
Copyright © 2014 CA.
All rights reserved.
|
|