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
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