Use of the MPE RESET Command: [ HP RPG/XL Utilities-Part 1 XSORT ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 1 XSORT
Use of the MPE RESET Command:
To ensure that succeeding executions of XSORT use the correct files, it
is recommended that you use MPE RESET commands after each use of XSORT to
reset all the MPE FILE equations issued for your input, output, and text
files.
For example, in a job stream:
.....
!FILE XSORTIN=TESTFILE
!FILE XSORTOUT=TESTFILE
!FILE XSORTEXT=TESTSPEC
!RUN XSORT.PUB.SYS
!RESET XSORTIN
!RESET XSORTOUT
!RESET XSORTEXT
....
Without the RESETs, the next sort could accidentally use the file
TESTFILE for input (if the new sort is a multiple-file sort, naming
XSORTIN1 instead of XSORTIN) or TESTSPEC for the sort specifications (if
an overriding file equation for XSORTEXT is not issued).
MPE/iX 5.0 Documentation