Joined: 10 May 2007 Posts: 2188 Location: Hampshire, UK
Have you read the PL/I Language Reference manual for your compiler level? I have looked at the manual for version 5.2.4 and there is a complete chapter (chapter 4) on data conversion. It is not up to me to read it to help you.
then it fails due to :
The CONVERSION condition was raised because a conversion error occurred when converting a character string to an arithmetic with IBM0032S ONCODE=612.
I agree with Nic Clouston: the conversion between character strings, and various numeric formats is usually very tricky. It may depend not only on the used language, but also on the version of the language/compiler. You must read carefully the manual on your specific version of PL/I syntax/compiler. I don't have any PL/I manual on hand, and the last time I used PL/I was about 12-15 years ago.
I mentioned one of possible theoretical conversion problems; this may be true or not.
I suggest you to perform multiple stand-alone tests on CONVERSION-ONLY between various data formats you're interested in, to find out how the actual conversion rules do work? The description from a manual is often very messy; I prefer to try the required options in my own minor tests.
This is your own major task, before asking such questions in the forum, without your own investigation
I do not see if you really tried to think about the origins of your problem, did you?