View previous topic :: View next topic
|
Author |
Message |
harnyun
New User
Joined: 18 Sep 2008 Posts: 2 Location: Malaysia
|
|
|
|
Hi guys, this is my first post here. Hope that I can get some help from you all.
I have a field defined as below...
05 MC1COUNT-SEGMENT-COUNT PIC X(1).
This field is storing a counter which defines the number of occurences of 40 segments. And I want to convert this field to decimal or packed decimal in QUIKJOB.
For example, this field contains a value of X'21'. I would like it to be converted into numeric value of P'33'. I just could not get this solved. Please help.
A million thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Define the field as a 1-byte binary field instead of an X field. |
|
Back to top |
|
|
harnyun
New User
Joined: 18 Sep 2008 Posts: 2 Location: Malaysia
|
|
|
|
dick scherrer wrote: |
Hello,
Define the field as a 1-byte binary field instead of an X field. |
Yes! It works! Thanks! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - thanks for letting us know it is working
d |
|
Back to top |
|
|
|