Save variable container
| Component: | SDF-P-BASYS | 
| Functional area: | Procedures | 
| Domain: | PROCEDURE | 
| Privileges: | STD-PROCESSING | 
Function
The SAVE-VARIABLE-CONTAINER command is used to save variable containers.
Format
| SAVE-VARIABLE-CONTAINER | ||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||
Operands
CONTAINER-NAME =
Name of the variable container.
CONTAINER-NAME = <composed-name 1..64 with-wild(80)>(...)
Variable container with name matching the specified pattern string.
ELEMENT-VERSION =
Designates the version of the library element (member).
ELEMENT-VERSION = *SAME
The element version remains unchanged. If the element does not yet exist, it is assigned the version *UPPER-LIMIT.
ELEMENT-VERSION = *INCREMENT
The element version is incremented. If the element does not yet exist, it is assigned the version 001. 
LOCK-ELEMENT = *NO must have been specified in OPEN-VARIABLE-CONTAINER and the element version must end with a digit.
CONTAINER-NAME = list-poss(2000): <composed-name 1..64>(...)
Name of the variable container. A (large) number of variable containers can be named in a list.
ELEMENT-VERSION =
Designates the version of the library element (member).
ELEMENT-VERSION = *SAME
The element version remains unchanged. If the element does not yet exist, it is assigned the version *UPPER-LIMIT.
ELEMENT-VERSION = *INCREMENT
The element version is incremented. If the element does not yet exist, it is assigned the version 001. 
LOCK-ELEMENT = *NO must have been specified in OPEN-VARIABLE-CONTAINER and the element version must end with a digit.
Return codes
| (SC2) | SC1 | Maincode | Meaning | 
|---|---|---|---|
| 0 | CMD0001 | No error | |
| 1 | CMD0202 | Syntax error | |
| 3 | CMD2203 | Incorrect syntax file | |
| 32 | CMD0221 | System error (internal error) | |
| 64 | CMD0216 | Do not have required privilege | |
| 64 | SDP0091 | Semantic error | |
| 130 | SDP0099 | No more address space available | 
Example
See the DECLARE-VARIABLE command.