TERMINATE AND RESUME ENTRY IN MID-ORDER [ USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide ] MPE/iX 5.0 Documentation
USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide
TERMINATE AND RESUME ENTRY IN MID-ORDER
Action
After entering the data on the first form of the order number 100002,
press EXIT to terminate ENTRY.
You return to MPE control, as signaled by the colon prompt (:). Now, run
ENTRY again with the same files you specified at the start of this
exercise.
Action
Run ENTRY. Then, when ENTRY asks for the forms file and batch file names,
enter the files you have been using; ORDFORM1 and DATA6.
ENTRY resumes operation where you left off exactly as if you had not
terminated the program. That is, it issues the next sequential form in
Collect mode. Note that the order number and the total net price have
both been saved through the program termination and now are displayed on
the TOTALS form, as shown in Figure 6-18.
Action
Press ENTER to calculate the totals for the order entered in the previous
session.
Figure 6-19. Browse Mode, Record No. 4
Action
Press BROWSE.
The TOTAL form you just entered is displayed with all the values
calculated. The total net price and the customer name were transferred
from the form on which they were entered before you pressed EXIT to
terminate.
Similarly, if you terminate between orders, the order number is
incremented and displayed on the next form when you resume execution with
the same batch file.
Figure 6-20. Browse Mode, Corrected Record No. 1
MPE/iX 5.0 Documentation