The following subsections explain the interface that is required for using CGI subroutines. Each processing rule is explained under the following titles:
Format: Explains the format required to call a specific CGI subroutine.
Data setting at calling: Explains the information (Call parameters) that must be set before the CGI subroutine is called.
When a condition-name was written, a value must be set using the SET statement.
When a condition-name is underlined, the value is an initial value.
Calling a CGI subroutine does not change a data value that was set at calling time.
Processing result data: Explains the processing results that are accomplished by executing the specific CGI subroutine.
When a condition-name is written, the condition must be checked using the condition-name condition.
The contents of an error or warning detected in the CGI subroutines can be referenced by using COBW3-STATUS.
Value | Explanation |
---|---|
0 | Normal end |
Other than 0 | Error number |
For an explanation of the error number, see Appendix B, "Error Handling."
Note
If an area other than the data area that was opened at data setting for the subroutine calling is changed before the subroutine was called, the operation or data contents are not assured.
Before COBW3_INIT is called, COBW3 in the interface area must be initialized using LOW-VALUE.