How to get the actual value from a COMP variable?



IBM's Command List programming language & Restructured Extended Executor

How to get the actual value from a COMP variable?

Postby naveenkvetrivel » Mon Nov 28, 2011 3:06 pm

Hi,

Can someone please tell me how to get the actual value from a COMP variable in REXX? Can this be done using C2X built-in function? My requirement is, I need to read an input file which contains data in various format like COMP-3, COMP, ALPHANUMERIC. I need to change the actual values in the input file to someother values and then write it to an output file in the original format. I've read COMP-3 variable but don't know how to read a COMP variable and get the original value?

Thanks
Naveen
naveenkvetrivel
 
Posts: 2
Joined: Thu Aug 11, 2011 2:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the actual value from a COMP variable?

Postby enrico-sorichetti » Mon Nov 28, 2011 4:06 pm

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to get the actual value from a COMP variable?

Postby naveenkvetrivel » Wed Dec 07, 2011 2:52 pm

Enrico,

Sorry for this very very late reply. Thank you so much for sharing all the link, it was useful and I got the expected result.

Thanks
Naveen
naveenkvetrivel
 
Posts: 2
Joined: Thu Aug 11, 2011 2:55 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post