Qualified Host Variables [ COBOL/HP-UX Language Reference for the Series 700 and 800 ] MPE/iX 5.0 Documentation
COBOL/HP-UX Language Reference for the Series 700 and 800
Qualified Host Variables
Host variables can be qualified using DB2 compatible syntax.
Example
Suppose you have defined some host variables as follows:
01 block-1.
03 hostvar pic s9(4) comp-5.
01 block-2.
03 hostvar pic s9(4) comp-5.
You can qualify which instance of hostvar to use with syntax of the form:
exec sql fetch s2 into :block-1.hostvar
end-exec
MPE/iX 5.0 Documentation