View previous topic :: View next topic |
Author |
Message |
naveen_summary Beginner
Joined: 12 Feb 2007 Posts: 26 Topics: 13
|
Posted: Tue Feb 13, 2007 5:33 am Post subject: Cobol - S9(2) |
|
|
Hello Gurus,
Cobol variable declared as S9(2) has value '0A'.
When I display this it is shown as '0A'.
I then moved this to a variable X(2).
The same X(2) is now displayed as '01' (Instead of '0A'.
Why is this happening?
Please let me know.
Quote: | Declarations:
15 PAGE-HOW-MANY PIC S9(2).
01 WS-PAGE-HOW-MANY PIC X(02) VALUE SPACES.
MOVE PAGE-HOW-MANY TO WS-PAGE-HOW-MANY.
|
Quote: | Display in spool:
PAGE-HOW-MANY = 0A
WS-PAGE-HOW-MANY = 01 |
|
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
|
Back to top |
|
 |
|
|