CHGPFR - Change access paths of all logical views over a physical from one command


This command is used to affect the access path attributes of all Logical files over a specified Physical file.

This is particularly useful when performing a full data rebuild of a physical file with many logical files: If all access paths are left at *IMMED, the AS/400 will automatically spend time updating the logical file access paths for EVERY RECORD written to the file. If you are reloading a large file this can be a noticeable overhead.

The command can be used to switch all Logical files to *REBLD before the data is loaded, and switched back to *IMMED (or *DLY) after completion.

For example, when the file is returned to *IMMED after reloading all the data. The AS/400 will then recreate the logical file access paths - saving a lot of unnecessary machine work.

Projex dot com is the cyber home of Nick Litten an AS400 IBMi developer, RPG programmer, Web2.0 advocate, Drupal nut, early adopter and all round IT addict.

Nick Litten looking dazed while refactoring some RPG2 code to kick it into this century

Born and raised in England, now enjoying programming on the beach in Sunny Southern USA. Founder of SOFTWARE PROJEX.

Author Location

Javascript is required to view this map.