Until a file is opened (using an &FILE OPEN statement) by an NCL procedure, no RPLs are created and no work buffers allocated.
Before a UDB can be referenced by a procedure, the UDBCTL command must be used to assign a logical file ID to the physical data set. This command can be included in the NMINIT procedure or entered from OCS.
To open a file, an NCL procedure uses an &FILE OPEN statement. This statement references the logical file ID previously assigned by the UDBCTL command, and in doing so completes the link between the NCL procedure and the actual data set.
It is at this time that a VSAM RPL is created for use by the NCL procedure. This RPL is used in all subsequent requests for this data set by the procedure. The RPL remains in existence until either explicitly freed by the &FILE CLOSE statement, or termination of the NCL procedure. When processing with multiple files, one RPL is created for each new file ID the first time that the file is opened.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |