Please consider these two declarations:
Code: Select all
01 VARIABLE-1 PIC S9(4) SIGN LEADING SEPARATE.
01 VARIABLE-2 PIC S9(4).
Code: Select all
01 VARIABLE-1 PIC S9(4) SIGN LEADING SEPARATE.
01 VARIABLE-2 PIC S9(4).
Fine Manual wrote:If the SEPARATE CHARACTER phrase is specified, then:
v The operational sign is presumed to be the LEADING or TRAILING character
position, whichever is specified, of the elementary numeric data item. This
character position is not a digit position.
v The character S in the PICTURE character string is counted in determining the
size of the data item (in terms of standard data format characters).
v + is the character used for the positive operational sign.
v - is the character used for the negative operational sign.
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute