Page 1 of 1

Convert Signed integer into alphanumeric

PostPosted: Sat Nov 15, 2008 5:51 am
by tavisha
Hi

I need to convert a PIC S9(16)V9(2) COMP-3 variable into Alphanumeric one.
Please suggest how to go about it.

Thanks
Tavisha

Re: Convert Signed integer into alphanumeric

PostPosted: Sat Nov 15, 2008 9:11 am
by dick scherrer
Hello,

If you explain what you want as output, we will be able to help.

"Alphanumeric" is everything.

Show a few "input" values and how you want the alphanumeric value to be stored for those values.

Re: Convert Signed integer into alphanumeric

PostPosted: Sat Nov 15, 2008 11:17 am
by tavisha
I want PIC S9(16)V9(2) COMP-3 variable to be moved to a variable with PIC(X).
I want to know how can they be converted since I am getting SOC4 when I am trying to move it .

I also tried moving PIC S9(16)V9(2) COMP-3 to PIC 9(16)V9(2) and then to PIC(X) but it didn't work that way as well.

Re: Convert Signed integer into alphanumeric

PostPosted: Sat Nov 15, 2008 11:02 pm
by dick scherrer
Hello,

To repeat:
Show a few "input" values and how you want the alphanumeric value to be stored for those values.

You have not done this. . .

I also tried moving PIC S9(16)V9(2) COMP-3 to PIC 9(16)V9(2)
This will work on every IBM mainframe. If it dd not work for you, it is because of invalid data.

then to PIC(X) but it didn't work that way
Comp-3 should not be moved to pic x fields.

To expand on my original request for data - show a few the comp-3 "input" values in hex. Also show how you want these stored after the move.

Re: Convert Signed integer into alphanumeric

PostPosted: Thu Sep 13, 2012 12:07 am
by raj_mfd
u can move any value to x(somthing), but u should move a valid value 9(somevalue)for always numeric or s9(some value)v9(some value) comp-3 for always computational values or else u need to intialiaze the value if it a wrong.

Please let me know if i'm wrong..

Re: Convert Signed integer into alphanumeric

PostPosted: Thu Sep 13, 2012 12:10 am
by raj_mfd
but u should maintain the length, if not it will truncate the value...

Re: Convert Signed integer into alphanumeric

PostPosted: Thu Sep 13, 2012 12:14 am
by BillyBoyo
Can you give a few examples illustrating what you are trying to say, please?

What do you feel you may need to INITIALIZE?

Re: Convert Signed integer into alphanumeric

PostPosted: Thu Sep 13, 2012 2:56 am
by NicC
nothing like resurrecting the dead!

Re: Convert Signed integer into alphanumeric

PostPosted: Thu Sep 13, 2012 11:22 pm
by dick scherrer
"Out to the graveyard" - Addams Family