View previous topic :: View next topic
|
Author |
Message |
jassi123
New User
Joined: 27 Mar 2007 Posts: 2 Location: India
|
|
|
|
How to convert an alphanumeric value to packed decimal. The alphanumeric variable is holding number only and no alphabets.
For eg. alphanumeric varible has '12345' as the value. Now the requirement is just to change the type to packed decimal. |
|
Back to top |
|
|
jassi123
New User
Joined: 27 Mar 2007 Posts: 2 Location: India
|
|
|
|
Forgot to mention earlier... this is to be done in a eztrieve program... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello jassi and welcome to the forums,
If you are completely sure the field will always contain numerics only, you could redefine it as a zoned decimal number and move the zd field to the comp-3 field.
If the field ever contained an invalid value, you would have to deal with an abend. |
|
Back to top |
|
|
|