ATTR

Description

Fields specified on panel definitions use special symbols to provide the field attributes. The ATTR parameter, which is applicable to the SYSTEM control statement (see SYSTEM statement), may be used to override the IBM Session Manager-supplied values, giving alternative values to apply globally throughout the panel definitions, although these in turn may be overridden for individual panels.

Format

ATTR attr-char OFF|field-attribute-parameters

Usage

IBM Session Manager itself supplies default attribute definitions for specific characters. These are:

Character

Attribute definition

#

UNPROT,NORM,IN

%

UNPROT,HIGH,IN

"

UNPROT,NOND,IN

?

PROT,NORM,OUT

&

PROT,HIGH,OUT

<

PROT,NORM,LIT

@

PROT,HIGH,LIT

Note: In this document, the 0x7C (that is, x'7C') character is always presented as the @ sign. It may be displayed as a different character in some non-English code pages. You should enter the appropriate 0x7C character symbol for the code page you are using.

The specified ATTR value, which should be enclosed in quotes, overrides the IBM Session Manager-supplied values. For example:

ATTR '?' PROT,NORM,OUT

OFF may be used to clear the setting for a character, if the character itself is to be displayed within text on a panel.

Acceptable field attribute parameters

For protection and content:

ASKIP

 

DETect|NODETect

UNPRotected|PROTected

NUMeric|ALPHanumeric

NONdisp

 

 

For color and effects:

RED|YELlow|WHIte|GREen|BLUe|PINk|TURquoise

 

HIgh|NORMal

REVerse|BLInking|UNDErscore

 

 

Special attributes:

ETMODE|DBCS

 

ICursor

BLANK|NOBLANK

IN|OUT|LITeral

Synonyms may be used. Valid synonyms are:

SKIP for ASKIP.

NODisp for NONdisp.

USCOre for UNDErscore.

For further details of these attributes, refer to the Panels, Scripts and Variables manual.

When ATTR is omitted for a field, the default attributes are:

PROTected
ALPHanumeric
NODETect
NORMal
SKIP
LITeral
Default color - usually green

Parent topic:

Related topics: