View previous topic :: View next topic
|
Author |
Message |
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
The following is a small table which shows the NUMBER
that the LETTER represents when a Zoned Decimal is displayed without an edit mask.
example. 90m is -904
The letters are the same Upper and lower case.
0 {
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I
-0 }
-1 J
-2 K
-3 L
-4 M
-5 N
-6 O
-7 P
-8 Q
-9 R |
|
Back to top |
|
|
baichunli2010
New User
Joined: 26 Aug 2010 Posts: 3 Location: China
|
|
|
|
what did you mean ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
mnnarayankar
New User
Joined: 21 Jan 2008 Posts: 23 Location: bangalore
|
|
|
|
Hi dbzTHEdinosauer,
I am not sure what are you looking for. If you want to show the value of last character by separating the '-' or some special character then you can defined them as.
The above table issue can be resolved by us SIGN clause used in COBOL
you can use below syntax -
SIGN IS (LEADING) SEPARATE CHARACTER(TRAILING)
The default is SING IS TRAILING WITH NO SEPARATE CHARACTER
It is applicable only when the picture clause contain 'S' and 'S' does not take any space. It is stored with last digit.
Supose Number is = -125
Trailing Size(Defalut) = 12N
Leading sign = J25
Leading separate = -125.
Whenever you use 'S' in your picture clause the above your mentioned table come in picture. The above is the appropriate method to split last character.
Thanks & Regards,
Mohan Nagnath Narayankar |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
mnnarayankar,
You have joined way back in 2008. I am surprised still you are unable to distinguish between a "question" and a "useful information". (Also that you are not familiar with dbz ) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
And at least look at the date-of-the-post, why to answer in a year old thread..
So Dick, what do you want - state clearly. . |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Knowing Dick he will find something terrible for the commenter. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
I am not sure what are you looking for. |
Dick has no need to look for anything.
He was just trying to avoid the beginner question ...
I have a <thing> when I print it it comes out as ...12345} what does that mean ? |
|
Back to top |
|
|
|