The @BIND REC statement establishes addressability for a record in variable storage. In most cases, you do not need to issue individual @BIND REC statements, since the necessary statements typically are generated as a group by the @COPY IDMS,SUBSCHEMA-BINDS statement see Assembler DML Coding Considerations. However, you can issue these statements separately as necessary.
For example, since the @COPY IDMS,SUBSCHEMA-BINDS statement does not verify that each record is bound successfully, you may wish to issue an @BIND REC statement for each record and to check the ERRSTAT field in the IDMS communications block after each @BIND REC statement. You can also issue separate @BIND REC statements to bind several records to the same storage location. In any case, you must establish addressability for each subschema record to be used by the program.
Note: If program registration is in effect, you should code a @COPY IDMS,SUBSCHEMA-BINDS statement to properly assign the programs to the subschema control block. Otherwise your program must explicitly initialize the PGNAME field in the IDMS communications block before the @BIND SUBSCHEMA and @BIND REC statements are executed.
|
Copyright © 2014 CA.
All rights reserved.
|
|