- Field Name (Required)
Identifies the field in the batch file to be written
to the output file. The field name must identify an existing field
in one of the forms specified in the preceding input sequence.
The field name need not be unique to the output definition.
But, if it is not unique, a different output field name must be
entered for each identical input field name.
- Substring Strt (Optional)
If you want to retrieve a portion of an input field
that is not at the beginning of the field, specify the first character
position that you want written to the output field as the Subst
Strt value. Character positions in a field are numbered from 1.
For example, suppose you want only the last five characters of a
20-character field written to the output file, enter 16 under Subst
Strt. Used in combination with the Len parameter, you can specify
any group of consecutive characters in an input field.
Default = First character in field
(1).
- Substring Len (Optional)
Allows you to retrieve only a portion of an input
field. For example, if you want only the first five characters in
a field, leave the Subst Strt field blank and enter 5 under Len.
By combining the Len specification with the Subst Strt specification,
you can select any consecutive group of characters in the input
field. For example, to select characters 5 through 14 of the input
field, set Subst Strt to 5 and Len to 10.
Default = length of input field - Subst
Strt + 1
- Form Name (Optional)
Identifies the form in which the input field appears.
This parameter can be included when a field with the same name appears
in more than one form in the forms file. If omitted, and the field
name is not unique, the first form in the input forms sequence in
which the field appears is assumed.
Default = First form in which field
appears.
- Field Name (Optional)
In case the input field name is not unique, you
can give the field (or portion of the field) a unique identifier
in this position. Any legal 15-character identifier can be specified.
(Note that any lowercase letters are shifted to all uppercase by
REFSPEC.)
Default = Input field name.
- Strt Col (Optional)
If you want the field to start in a particular column
in the output record rather than immediately after the preceding
field, you can specify a starting column. Column numbers in this
case correspond to character (byte) positions in the output record.
Columns are numbered starting with 1.
When you specify a new starting column, REFSPEC checks to
make sure the starting column does not overwrite a previous field
in the output record. If the starting column is not correctly specified,
REFSPEC issues an error message.
One reason for changing the starting column is to ensure that
a field starts on a word boundary. For example, suppose the first
field to be written is five characters long. You can either increase
the length of this field in the "Len" position to an even number
of characters, or you can specify a new starting column for the
next field.
Default = Consecutive fields with no
intervening spaces.
- Len (Optional)
You can specify the number of characters for the
output field in this position. If you specify a length shorter than
the input field, character type data is truncated when it is written
to the output field; numeric data may not be converted if the field
is too short.
If you plan to add a check digit to the field, you must specify
the output field length as at least one character longer than the
input field length.
Default = Input field length (or substring
length).
- Strt Rec (Optional)
In order to separate the output into records, you
must specify the beginning of each record. Any character entered
in the Strt Rec position of the Output Record Menu marks the associated
field or constant as the beginning of a new record. For consistency,
you should select a standard character, such as an asterisk.
If a starting record is not marked in the output record definition,
the fields in the current definition follow the fields in the previous
definition as part of the same record.
Default = Field is not first field.
- Constant (Optional)
You can specify a constant instead of a field name.
The constant can be any of the following:
a character string (literal) enclosed
within single or double quotes;
the numeric equivalent of a USASCII character preceded
by a dollar sign ($);
one of the system-defined constants:
The following are acceptable constants:
"Part No." 'ABC' $65 $34"NAME"$34 $RS
|
Constants may not be specified on the same line as a field
name. More than one constant can be specified on a line. When multiple
constants are specified, they are concatenated into a single literal
value. For example: "Part No."
$GS $65.
Blanks are not significant except within quoted strings, where
they must be included.
A constant or group of concatenated constants must not extend
past column 75 of the screen. Apart from this restriction, they
can appear anywhere on the line.
Default = No constant.