Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)
Data Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual—426750-003
5-16
SIGN Clause
The following example illustrates the RENAMES clause:
05 card-codes.
10 store-code PIC 9.
10 state-code PIC 9(4).
05 account-number PIC 9(6).
05 check-digit PIC 9.
66 card-number RENAMES card-codes THRU check-digit.
SIGN Clause
The SIGN clause specifies the position and mode of an operational sign for a numeric
data item. The clause can only be used for items that are described as DISPLAY in a
USAGE clause and have an S symbol in the PICTURE string.
LEADING
indicates the sign is at the beginning of the item.
TRAILING
indicates the sign is at the end of the item.
SEPARATE [ CHARACTER ]
specifies the sign becomes a separate character and is counted in the size of the
item. A + for positive and a – for negative is placed at the beginning or end of the
item value.
If this phrase is omitted, the sign is not counted in the size of the item. Depending
on whether you specify LEADING or TRAILING, the sign is at the beginning or end
of the item.
The following example illustrates the SIGN clause:
05 WS-subtotal-value PIC S9(02) SIGN IS TRAILING SEPARATE.
SYNCHRONIZED Clause
The SYNCHRONIZED clause forces alignment of an elementary item on the most
natural computer storage boundary.
RIGHT and LEFT
have no effect in SCREEN COBOL.
SIGN [ IS ] { LEADING } [ SEPARATE [ CHARACTER ] ]
{ TRAILING }
{ SYNC } [ RIGHT ]
{ SYNCHRONIZED } [ LEFT ]










