Be Careful Using the FREE Op Code

RPG
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

I had several users whose jobs would end abnormally after about three hours of work because the Process Access Group (PAG) would grow beyond the 4MG limit. I was finally able to track down the problem.

A programmer used the FREE op code to close down an RPG program, removing the program from memory but not closing the open data paths (ODPs) for the files. The program with the FREE op code was called many times; each time it opened new ODPs over the same files. After about three hours, the PAG was so full of ODPs that the job ended abnormally. Taking FREE out and setting on *INLR solved the problem.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$