View previous topic :: View next topic |
Author |
Message |
Vish Beginner
Joined: 17 Sep 2003 Posts: 21 Topics: 9 Location: Mumbai India
|
Posted: Mon Dec 22, 2003 6:20 am Post subject: Sign trailing seperate |
|
|
Hi Friends,
I have two variables defined as follows.
WS-A ------> PIC S9(5)v99 SIGN TRAILING SEPERATE.
WS-B ------> PIC S9(5)v99.
Can somebody tell me how these variables are internally represented ?
Is MOVE WS-A to WS-B be a valid move ?
I also think it might be valid . Please confirm. _________________ Vish |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Dec 22, 2003 6:41 am Post subject: |
|
|
vish,
PIC S9(5)v99 SIGN TRAILING SEPERATE is stored internally in 8 bytes and the move is valid.
If the SEPARATE CHARACTER phrase is specified, then:
- 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.
- 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).
- + is the character used for the positive operational sign.
- - is the character used for the negative operational sign.
If the SEPARATE CHARACTER phrase is not specified, then:
- The operational sign is presumed to be associated with the LEADING or TRAILING digit position, whichever is specified, of the elementary numeric data item. (In this instance, specification of SIGN IS TRAILING is the equivalent of the standard action of the compiler.)
- The character S in the PICTURE character string is not counted in determining the size of the item (in terms of standard data format characters).
Hope this helps..
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Vish Beginner
Joined: 17 Sep 2003 Posts: 21 Topics: 9 Location: Mumbai India
|
Posted: Mon Dec 22, 2003 7:35 am Post subject: |
|
|
Kolusu,
Thanks a lot for your help _________________ Vish |
|
Back to top |
|
|
|
|