CRITICAL
Rule Definition
This command can have effect on files which have been opened incorrectly. In this situation, it is better to open and close files correctly.
Moreover, RCLRSC should only be used against files opened in the default activation group. If a file is opened out of one library from the library list which is used and if the library list is changed, then going back to files to be processed while references may need to be resolved to a library that is no longer available can lead to errors.
Remediation
Check if files are opened and closed correctly.
Violation Code Sample
Please refer the below link for proper usage about the RCLRSC command
https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/cl/rclrsc.htm
Fixed Code Sample
Please refer the below link for proper usage about the RCLRSC command
https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/cl/rclrsc.htm
Related Technologies
Technical Criterion
Efficiency - Memory, Network and Disk Space Management
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.