The field attribute of digital separator is as follows:
|
Allow digit sep |
DS |
X |
|
|
Input Rules |
Extended Field Definition (numeric) |
Specifies whether the digit separator (comma in the United States, period in Europe) is allowed in the field. Digit separators are removed from the value before the value is passed to the application. The Panel Session option Decimal Character determines the value used as the digit separator. If the period is set as the decimal character, the comma is used as the digit separator. If the comma is used as the decimal character, the period is used as the digit separator.
Valid values are as follows:
For example, if you specify Y, an application user can enter the value 12345 as 12,345. If you specify N, the entry 12,345 results in a validation error.
Note: If the field entry is justified in a way that changes the value, the digit separator the user entered does not determine the value sent to the application. The justification determines the value sent to the application.
The field attribute of EOF is as follows:
|
Allow EOF |
AE |
X |
|
|
Input Rules |
Extended Field Definition |
Allows the application user the option of using the Erase EOF key when a minimum or maximum range check is specified for the field. If you press the Erase EOF key when the cursor is positioned in a field, the input fill character is inserted from the cursor position to the end of the field. If inserting the input fill character brings the value outside the range set by the maximum or minimum values, a validation error occurs unless Allow EOF was specified.
Valid values for this field are:
The field attribute of minus sign is as follows:
|
Allow minus sign |
MS |
X |
|
|
Input Rules |
Extended Field Definition (numeric) |
Specifies whether you can enter the minus sign n the field. Valid values are:
If you specify Y, you can enter values in any of the following forms to indicate a negative number: ‑nn, nn‑, (nn), nnCR, or CRnn.
|
Attribute |
Attr |
X |
|
|
Field Summary |
Extended Field Definition |
A combination of codes that set the display attributes of the field. You can use the following codes:
The codes P and PA have the same effect. The codes S, PS, and PN have the same effect. The codes U, A, and UA have the same effect. The codes N and UN have the same effect.
A protected (P) field is skipped if :
If a protection attribute (U, P, S, A, or N) is not specified, the default value UA is used.
If a highlight attribute (H, L, or I) is not specified, the default value L is used.
If a program executes a SET ATTRIBUTE statement that does not specify both a protection and a highlight attribute, the missing attribute is set to the default, no matter how it was previously set.
Ordinarily, a panel field is defined with a beginning field character and an end of field character, for example, a plus () and a semicolon (;). The end of field character is recognized as the beginning of a new field with an attribute of AUTOSKIP. If the layout of your panel definition includes:
+ ; + ;
Even though it looks like two fields with null characters between and after them, CA Ideal interprets it as four fields. The semicolon (end of field) says “start a new dummy field” with an attribute of AUTOSKIP,. when the user fills the first field, skip to the next field.
To define a “stopper” field (a protected field that is not skipped), do not end the affected field with an end of field symbol. Code a one‑byte field immediately following the affected field. Give this one‑byte field an attribute of PAI.
The panel layout now looks like this:
+ + ; + ;
Overtyping the first field stops the cursor in the one‑byte field and locks the terminal. To get to the next field, use the Tab key.
|
Case |
CS |
X |
|
|
Input Rules |
Extended Field Definition |
Indicates whether entries are converted to upper case or left unconverted when they pass to the application. If you do not enter a value for this attribute, the value specified on the Panel Parameter fill‑in is used as the default. An asterisk (*) next to this value on the Extended Field Definition fill‑in indicates that the value was set on the Panel Parameter fill‑in.
Valid values are as follows:
|
Check Digit |
CD |
X |
|
|
Input Rules |
Extended Field Definition (numeric) |
Specifies whether a check‑digit test is performed. Valid values are:
For more information about check‑digit tests, see Appendix B.
On the Input Rules Table, this field is located to the right of column 80. To display this field, enter the SCROLL RIGHT command.
|
Colon |
C |
X |
|
|
Output Rules |
Extended Field Definition |
The color of the characters displays in this field. You can select only one color for a field. The colors that you can select are:
N, neutral, is the default. Generally, you should define all text (caption) fields in neutral or cool colors, such as green, blue, or neutral. You can define data entry fields in brighter colors such as pink, turquoise, or yellow. Red is often used for error highlighting.
|
Comments |
X |
X |
|
|
Field Summary |
Extended Field Definition |
Explanatory comments that describe the field or its use. If you do not enter a value in this field, no default value is inserted.
On the Field Summary Table, this area contains the text that specifies the field on the panel layout until you enter a comment. Changes made in the comment area are not reflected in the text of the layout. You must make changes to the text displayed on the panel on the layout panel.
|
Edit Pattern |
X |
X |
|
|
Output Rules |
Extended Field Definition (numeric) |
For numeric fields, indicates the pattern or format in which the field value displays. The edit pattern is a sequence of any of the symbols shown in the first column of the following table. The maximum length of the edit pattern and of the generated display is 45 characters, allowing for 31 digits plus the edit characters.
If you omit the edit pattern, the field is right justified and no decimal point is shown. A negative number is shown in zoned decimal format (the sign is shown as the characters J‑R in place of 1‑9 in the rightmost position).
The following table shows the valid edit pattern symbols, some edit patterns built with those symbols, and the resulting display values.
Note: If the edit pattern includes the minus sign, debit symbol, credit symbol, or decimal point, you must set the Allow Minus Sign or Allow Digit Sep attribute to Y.
|
Symbols |
Meaning |
Data |
Edit Pattern |
Display on Screen |
|---|---|---|---|---|
|
L |
Left‑justify before output |
123 |
LZ(3),ZZ9 |
123 |
|
9 |
Unsuppressed numeric digit |
123 |
999 |
123f |
|
Z |
Zero suppression |
v12 |
ZZZ.99 |
.12 |
|
* |
Asterisk replacement |
1v23 |
**9.99 |
**1.23 |
|
, |
Comma |
002234v56 |
ZZZ,ZZZ.99 |
2,234.56 |
|
/ |
Slash |
123083 |
99/99/99 |
12/30/83 |
|
B |
Blank space |
123083 |
99B99B99 |
12 30 83 |
|
0 |
zero |
123 |
99900 |
12300 |
|
. |
decimal point |
030v99 |
ZZZ.99 |
30.99 |
|
‑ |
Minus sign, fixed right |
‑23v45 |
9(2).99 |
23.45 |
|
‑ |
Minus sign, fixed left |
‑23v45 |
‑9(2).99 |
‑23.45 |
|
‑ |
Minus sign, floating |
‑v23 |
‑‑.99 |
‑.23 |
|
+ |
Plus sign, fixed right |
67v89 |
9(2).99 |
67.89 |
|
+ |
Plus sign, fixed left |
67v89 |
9(2).99 |
67.89 |
|
+ |
Plus sign, floating |
00v67 |
.99 |
.67 |
|
CR |
Credit symbol, right |
‑25v00 |
9(2).99CR |
25.00CR |
|
DB |
Debit symbol, right |
‑13v00 |
9(2).99DB |
13.00DB |
|
$ |
Dollar sign, fixed |
004v00 |
$Z9.99 |
$ 4.00 |
|
$ |
Dollar sign, floating |
001v23 |
$$$.99 |
$1.23 |
|
<> |
Encloses negative numbers in parentheses, fixed |
‑23v45 |
<9,999.99> |
(0,023.45) |
|
<> |
Encloses negative numbers in parentheses, floating |
‑23v45 |
$<<<<.99> |
$ (23.45) |
Note: You can condense edit patterns by using multipliers. For example, you can specify the expanded pattern ZZZ,ZZZ.99 as Z(3),Z(3).9(2).
Lowercase v represents the position of an assumed decimal point.
For a complete explanation of the rules summarized in this table, see the CODASYL COBOL Journal of Development.
|
Error Handling |
EH |
X |
|
|
Input Rules |
Extended Field Definition |
Specifies how the field entry is highlighted when an error is detected during panel validation. If you do not specify a value for this attribute, the value specified in the Panel Parameter fill‑in appears on the Extended Field Definition fill‑in, with an asterisk next to the value to indicate that it is the default set in the Panel Parameter fill‑in.
Valid values are:
|
Extended Highlighting |
EH |
X |
|
|
Output Rules |
Extended Field Definition |
Indicates the type of extended highlighting used for the field. You can select only one of the following extended highlighting attributes for the field:
Note: To use the extended highlighting attributes, you must specify both EH (extended highlighting) and C (color) for the FEATURE parameter of the TCT.
|
Field Name |
All attribute definition panels |
The name that identifies the field to an application. The field name references data contained in the panel. If the field contains a caption rather than data he user entered, no name is required.
A group field name identifies the entire repeating group to an application. This name is a level‑2 name. The fields that are part of the repeating group are level‑3 fields. The field names that an application references most usually are the level‑3 field names, which must be indexed to access the desired occurrence of the data.
The Field Name field is 1 to 32 characters long, can be composed of any alphanumeric character (letters, numerals, national characters, embedded underlines and hyphens), and must begin with a letter (A through z) or national character ($, @, #). If the field name is longer than 18 characters, you must use the semicolon at the end of the field name on the first line to continue the field name on the next line. The semicolon is not considered part of the field name.
Field names, if specified, must be unique in the panel definition. If they are not unique in the application, you must qualify the name with the panel name when it is used in the application. To qualify the field name with the panel name, type the panel name, followed by a period and the field name, in the format panel.field.
|
Hardware insert |
|
X |
|
|
|
Extended Field Definition |
Specifies whether trailing blanks in a field are converted to nulls when the panel is transmitted. Valid values are:
|
Help Panel Name...Version |
X |
|
|
Extended Field Definition |
Identifies a panel that can display at runtime to explain the field. The help panel is identified by a one‑ to eight‑character name and an explicit version number. The help panel must exist in the same system as the panel for which it is defined. The application user displays this help panel by pressing the PF1 or PF13 function key or by entering the command HELP on the command line. The help panel does not become the current panel when it displays.
A help panel, like any panel, is defined using CA Ideal. However, the following additional rules apply to help panel definitions:
When more than one help panel exists, mention the existence of an additional help panel in the text of each help panel but the last.
For more information about creating help panels, see the Working in the Environment Guide.
|
Input Fill |
IF |
X |
|
|
Input Rules |
Extended Field Definition |
The character that pads unused positions after a value is entered and justified in an alphanumeric field, which occurs after you press the Enter key during data entry. Valid values for this parameter are:
L is the default for this parameter.
|
Integers.Decimal Places |
In.dp |
In.dp |
|
|
Field Summary |
Extended Field Definition (numeric) |
For numeric fields only, indicates the total number of digits that can be entered in the field, in the form integer.decimal‑places, where:
The maximum number of digits allowed (integer decimal‑places) is 31. If you specified a field length of less than 45, the maximum number of digits allowed is the specified length less the number of edit characters required.
For example, if a field is defined with an edit pattern of $9,999,999.99 and an In.dp value of 7.2, the length must be at least 13 to allow all the required characters to display:
Integers + Decimal Places + Edit Characters = Length
7 + 2 + 4 = 13
If the field is defined with a length of 12 and a total of 9 digits (7 integer digits and 2 decimal places), there is only room for 3 edit characters. If you try to define an edit pattern longer than the length of the field, an error message displays.
|
Justification |
JS |
Justify input |
|
|
Input Rules |
Extended Field Definition |
Establishes the justification for entries in the field before they are presented to the application procedure. When a justified value does not fill all positions of the field, the input fill character fills the remaining positions.
Valid values are:
The following chart shows how data is passed to the application based on justification specifications. The input field length is eight characters with 4 integer and 2 decimal places. A v indicates the decimal position assumed by the application.
|
Value entered as |
____62.7 |
627_____ |
_62700__ |
_____627 |
|
Justify Input - R |
Error |
000006v27 |
000006v27 |
000006v27 |
|
Justify Input - L |
Error |
627000v00 |
627000v00 |
627000v00 |
|
Justify Input - N |
Error |
627000v00 |
062700v00 |
000006v27 |
|
Justify Input - A |
000062v70 |
000627v00 |
062700v00 |
000627v00 |
Note: The validation errors received for the value 62.7 occur because the decimal point is not a numeric digit and is not removed before alignment when Justify is set to R, L, or N.
|
Length |
Len |
|
|
|
Field Summary |
|
The length of the field as CA Ideal calculates it based on how the field was defined in the layout. The maximum alphanumeric field length is the length of the line. The maximum numeric field length is 45 characters, which allows for a number with a maximum of 31 digits. The remaining length specifies an edit pattern.
You can modify the length of a field if the new length:
|
Level |
Lv |
|
|
|
Field Summary |
|
The level number of the field in the hierarchy of names in a panel. Valid values are:
Note: You cannot change the field level while a copy or move operation is pending.
|
Maximum Value |
X |
X |
|
|
Input Rules |
Extended Field Definition |
A numeric or alphabetic value that specifies the highest acceptable value that the application user can enter for this field. This value can be up to 20 characters long.
|
Minimum Decimal Places |
Mn DP |
Min req decimals |
|
|
Input Rules |
Extended Field Definition (numeric) |
Specifies the number of digits that must be entered after the decimal point. If any value is specified for this attribute, the Type must be N and the Justify Input attribute must be set to A (align by decimal). The minimum number of required decimal places must be less than or equal to the number of decimal places specified in the In.dp attribute.
The chart below shows how data is passed to the application based on the Min Req Decimal specification. The input field length is eight characters with 4 integer and 2 decimal places. Justify input is set to A, align by decimal. The decimal position assumed by the application is indicated by a v.
|
Value entered as |
______23 |
____23.4 |
___23.45 |
__23.456 |
|
Min req decimals |
|
|
|
|
|
0 |
000023v00 |
000023v40 |
00023v45 |
Error |
|
1 |
Error |
000023v40 |
00023v45 |
Error |
|
2 |
Error |
Error |
00023v45 |
Error |
|
Minimum Value |
X |
X |
|
|
Input Rules |
Extended Field Definition |
A numeric or alphabetic value that specifies the lowest acceptable value that can be entered for this field by the application user. This value can be up to 20 characters long.
|
Must Fill |
MF |
X |
|
|
Input Rules |
Extended Field Definition |
Specifies whether the field entry must fill every character of the field. Valid values are:
On the Input Rules Table, this field is located to the right of column 80. To display this field, enter the SCROLL RIGHT command.
|
Nullable Field |
N |
X |
|
|
Field Summary |
Extended Field Definition |
Determines whether the field can accept or return the null value. Valid values are:
Panel fields with null values are treated as empty ($EMPTY is true). Null values in panel fields display as questions marks (?)
|
Occurrences |
Occ |
X |
|
|
Input Rules |
Extended Field Definition (group) |
The number of times a repeating group field occurs. You can only change this entry on group field entries (Type G). Valid values are:
Note: A group field is considered a repeating group, even if it occurs only one time. You cannot modify the value in this field while operations are pending in the panel layout.
|
Output Fill |
OF |
X |
|
|
Output Rules |
Extended Field Definition |
The character fills blank data entry fields when the panel displays (with a TRANSMIT or REFRESH statement). The output fill character is removed when the panel is transmitted to the application.
The output fill character also fills the field when the application moves low values into the field or when the application user presses the Erase EOF key to clear a field. (The function $LOW moves low values into a field.)
Valid values for the output fill character are:
|
Required |
RQ |
X |
|
|
Input Rules |
Extended Field Definition |
Specifies whether the application user must supply a value or can omit it. If you do not enter a value for this attribute, the value set on the Panel Parameter fill‑in appears, with an asterisk next to the value on the Extended Field Definition fill‑in to indicate that it was set on the Panel Parameter fill‑in.
Valid values are:
|
Sequence Number |
Fld |
Seq |
Seq |
|
|
Field Summary |
Input Rules |
Output Rules |
A sequence number assigned by CA Ideal. These numbers appear in the first column of the Field Summary, Input Rules, and Output Rules Tables, and below the start field symbol for each corresponding field in the panel layout. You cannot change the value in the Seq field.
The Field Summary, Input Rules, and Output Rules Tables only show the fields displayed in the layout area of the screen. However, all the fields are numbered regardless of whether they are currently displayed.
|
Type |
T |
X |
|
|
Field Summary |
Extended Field Definition |
The field type. Valid values are:
You can change an X field to an N field or an N field to an X field, but you cannot change a G field to either an X or an N field or change an X or an N field to a G field. See the section titled Defining Repeating Fields and Groups for information on defining G type fields.
If the Extended Field Definition fill‑in contains settings that require a field to be a specific type, you cannot change those settings on the Field Summary Table. You must use the Extended Field Definition, Input Rules, or Output Rules Table to change both the type and the type‑dependent settings. Field attributes affected by a change in the type include Edit Pattern, In.dp, Min Req Decimals, Allow Digit Sep, Allow Minus Sign, Allow Currency, and Check Digit.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|