INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to convert cin REXX

How to convert cin REXX

(OP)
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

RE: How to convert cin REXX

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

RE: How to convert cin REXX

(OP)
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.

RE: How to convert cin REXX

I stuck "rexx packed decimal conversion" into Google and the very first hit did the trick.


Nic

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close