Using recordName.resourceAssociation

You can dynamically change the physical file associated with a record at run time.

Move the system resource name of the new file to recordName.resourceAssociation. The new system resource is used in the next I/O statement associated with the record. If another resource is already open for the record, that file is closed before the new file is accessed. The new resource must have the same file type as the file type specified for the record file when the program was generated.

Related information:
Developing EGL programs for the CICS environment
File techniques in CICS programs
Using temporary storage
Using transient data queues
Using spool files in z/OS CICS
Using spool files in VSE CICS
Using VSAM files
Resource associations part

Feedback