Page 1 of 1

Movement of X(19) to COMP-3 (Packed Decimal)

PostPosted: Thu Aug 13, 2009 4:53 pm
by gurvinder23
Hi,

I have an input file with length x(19) and want to convert the data in the output file as COMP-3 (Packed Decimal).

I tried using FUNCTION NUMVAL but its not working .

Can you please let me know how to do the conversion? Example with Code would be highly appreciated.

Re: Movement of X(19) to COMP-3 (Packed Decimal)

PostPosted: Fri Aug 14, 2009 2:10 am
by dick scherrer
Hello and welcome to the forum,

Posting "it is not working" provides nothing for us to use to help you.

You need to post any diagnostic info or explain the undesired results.

In addition to mentioning what the actual problem is, posting your variables and the statement with the NUMVAl will also help us help you. When posting program code, jcl, data, etc., use the "Code" tag to preserve slignment and improve readability. Use Preview to see your post as it will appear to the forum then Submit when the post is as you want it.

Re: Movement of X(19) to COMP-3 (Packed Decimal)

PostPosted: Mon Aug 17, 2009 3:25 pm
by Anuj Dhawan
I agree with Dick, but with the information in hand suggest you look here: Converting to numbers (NUMVAL, NUMVAL-C).