GDDM V3R2 Base Application Programming Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Attributes

GDDM V3R2 Base Application Programming Reference
SC33-0868-02



GDDM provides two forms of attribute order; these are:

  • Push And Set
  • Set.
    
    
GDDM maintains a stack of attributes, which can be removed from the stack by using the Pop order.

A Push And Set attribute order puts the current value of the attribute being set onto the attribute stack and sets the value of the attribute to the value in the order. The Pop order unstacks the most recently pushed attribute on the stack and sets the popped attribute to the value restored from the stack.

The difference between a Set attribute and a Push And Set attribute order is generally shown by the state of bit 1 of the order code, thus:

0
The order is a Set attribute.
1
The order is a Push And Set attribute.

There are three exceptions to this rule; they are:


   Order                      Set             Push And Set
   Pattern                    X'28'           X'09'
   Character Box              X'33'           X'03'
   Pick (Tag) Identifier      X'43'           X'23'


Both the Set and the Push And Set orders correspond to GDDM attribute setting functions, according to the current attribute mode; see the description of the GSAM call. For example, the GPSLT order corresponds to the GSLT call when the attribute mode is 0 (preserve attributes).

As with the equivalent call statements, attribute setting orders change the current values of the attributes. An attribute setting applies to all subsequent primitives (to which it is relevant) until a new setting is made.

Attribute-setting orders appearing in a GDF string argument to GSPUT affect the current attribute settings after the call. The effects are not purely local to primitives within the string, but may affect subsequent primitives.

Full information on the effects of the orders is not given. For more explanation, see the corresponding call statement descriptions in "The GDDM calls" in topic 3.0.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012