Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert cin REXX

Status
Not open for further replies.

MFUSERVDC

Programmer
Jan 16, 2016
2
US
Hi All,

I am new to this forum. I am working on REXX first time. I am facing some problem while converting Whole number to packed decimal format. Below are details for same.

As part of one assignment, I developed one panel where user can enter whole number (e.g. : 1234567891111). One REXX program accepting the value and moved to output file, but while moving number REXX program moving it as whole number. However as per requirement this number should be converted to packed decimal and moved to output file.
I tried to convert this whole number using built in function like D2P or P2D but those are not working (Its probably because of some infrastructure setup is not in place).
I would like to write some procedure or some logic which would help me to convert 'whole number to Packed decimal'.

Your quick response would be greatly appreciated.

Thanks,
Vdc

 
If you read the manual yoy will find that such functions do not exist. You have to "roll your own". Lucjily some other people have already done that for you but you will have to search the internet - especially mainframe forums but other mainframers have their own sites which have such conversion functions available.


Nic
 
Thanks Nic for reply. Would it be possible for you to provide those internet link. I was searching on different Mainframe forum and sites but I didn't get it. Probably it was there but I missed some how.
 
I stuck "rexx packed decimal conversion" into Google and the very first hit did the trick.


Nic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top