PSC PT Program Generator User Manual page 164

Psc pt program generator user's manual
Table of Contents

Advertisement

Example Frames
Figure 122. Splitting Records into Two Files
Display: WAIT
Copy: END
Copy: 1ST REC
Verify: END
Copy: 1ST FIL
Modify: DEL 1ST Deletes the first record in the original (default) file; what was the second
Copy: 1ST FIL
Modify: DEL
TEMP
152
Instructs the user to wait while the PSC portable completes this
process.
Places the constant "end" at the end of the file to mark the last record.
Copies the first record in the file into the default register.
Checks to see whether the default register contains the constant "end".
If the default register doesn't contain "end",
first part of the record to a different file (1st file), and
copies the other part of the record into another file (2nd file).
record in the file is now the first.
The program loops back to
into two different files.
This loop continues until the program reaches the final record (contain-
ing "end"). At that point, the program knows it has reached the end of
the file, and
Modify: DEL TEMP
it is clear for the next time it is used. The program then returns to the
Main frame.
PT Program Generator (PPG) v5.0
Copy: 1ST FIL
, and the next record is split
Copy: 1ST FIL
deletes the default file to make sure
copies the
Copy: 2ND FIL

Advertisement

Table of Contents
loading

Table of Contents