PSC PT Program Generator Portable Generator User Manual


 
Managing Data
84 PT Program Generator (PPG) v5.0
Write Type
To indicate where the new information is stored in the selected file, select one
of the following options:
.
Templates
A template is a structure that you can define and use to alter the way in which
collected data is stored. Templates can be used only in registers, not in file
records.
Template Uses
The most common use of templates is to parse data in a register. This allows
you to collect and store more than one type of information. For example, your
program could ask the user to first enter a location code for an item and then
the item number. The template would combine each set of values in a register,
and the value pair could then be copied to a file as fields in a single record.
Data in the file would be arranged either in fields of a fixed size, as in the fol-
lowing:
2348493848
48 393948
8 293832
9 832928
185 392038
28 282930
Insert Places the data before a given record. When this option is selected, addi-
tional options allow you to choose a specific record in the file. (These options
are described in the preceding section, “Using a File as a Source.”)
Overwrite Replaces a given record. When this option is selected, additional options
allow you to choose a specific record in the file. (These options are
described in the preceding section, “Using a File as a Source.”)
Append Adds the data to the end of the existing file.
Sorted Inserts the record into the file based on ascending ASCII value. Use this
option to insert records into a specified file that has already been sorted to
maintain the proper order of the records in the file.
2342.book Page 84 Thursday, July 22, 2004 8:35 AM