Resource associations part in COBOL generation
An EGL serial, indexed, WebSphere® MQ , or relative record that accesses an external file, printer, or queue has a logical file or queue name. In the case of a printer, the logical file name is printer for most COBOL runtime systems. The name can be no more than 8 characters and is meaningful only as a way of relating the record to a system name, which the target system uses to access a physical file, printer, or queue.
In relation to files or queues, the file or queue name (or a substring derived from that name) is a default for the system name. In relation to printers, a default exists only for COBOL output.
Instead of accepting a default, you can take one or both of these
actions:
- At generation time, you can control the generation process by using the resourceAssociations build descriptor option that references a specific resource associations part. The resource associations part relates the logical file or queue name to a system name on the target platform where you intend to deploy the generated code.
- At run time, depending on the file type you specify in the resource associations part, you can change the value in the record-specific variable recordName.resourceAssociation (for files or queues) or in the ConverseVar.printerAssociation system variable (for print output). This enables you to override the system name that you specified, either by default or by specifying a resource associations part.