[Progress Communities] [Progress OpenEdge ABL] Forum Post: How to use PUT statement to write numbers as characters?

Status
Not open for further replies.
U

untipet

Guest
Hi folks, I supose this is a very simple question, but I haven't found an answer. I'm using the PUT statement to write into a file a collection of numbers. The problem is that I need them to be a character but when using the PUT UNFORMATTED it writes it as number instead. There is an example of code and the result. OUTPUT TO VALUE(cFilePath) APPEND. PUT UNFORMATTED cId. If I print the value of cId it's '0123', but the value written in the file is '123'. Any idea about how to use PUT to write it correctly? Thanks in advance.

Continue reading...
 
Status
Not open for further replies.
Top