beautypg.com

Referencing two different files – PSC PT Program Generator User Manual

Page 165

background image

Referencing Two Different Files

User’s Guide

153

Referencing Two Different Files

Tip10.scr, illustrated in

Figure 123 on page 153

, uses two data files: one that

contains item numbers and one that contains item descriptions. Records in
both are sorted identically. By referencing data in both files, this example dis-
plays the description of an item whose number is entered by the user.

Figure 123. Tip10.scr References Two Different Files

Display: SCAN

Prompts the user to enter an item number or press

to quit.

Input: ITEM

Stores the input entry in the default register.

Verify:

Checks to see whether the user pressed

. If so, the program

returns to the main frame.

Verify: IN FILE

Checks the contents of the default register against the file with the items
in it.

Figure 124 on page 154

shows the settings in the dialog box for the

node.

2342.book Page 153 Thursday, July 22, 2004 8:35 AM