Hi everyone. I'm a new beginner in this Progress thing, and i am a little bit lost with a problem that is easy for sure, but turn out to be difficult for me due my level of expertise in 4gl.
I want to export a db of QAD that contain a lot of fields, and I want it to be a text file with delimiters ";", so I can import it on Excel or OpenOffice like if it were a simple CSV file. The problem is that I made a program that do exactly that, exporting all the data without any problems, but when I open the file in Excel turns out that the fields that are numbers (DECIMAL's for example) have been turned into CHARACTER, so, when I tried to do some math's operations to that fields (sum all for example), it only takes some of the values, but not all of them.
I try to do something like EXPORTing the values in this way:
But that doesn't seem to work.
I noted that if I take the CSV (or .txt) generated by the program, and change the . (dots) corresponding to the numeric values to "," (comas), Excel recognize them like numbers, and can work with them. Is there any way that I can EXPORT to the file using comas instead of dots for the numeric values?
Thanks a lot, for reading this and for your replys.
Greetings from Chile,
Nacho
PS: is not that simple to take the file and "find and replace" all the dots to comas, cause the names and descriptions involved into the others fields have info that contain that kind of punctuation.
I want to export a db of QAD that contain a lot of fields, and I want it to be a text file with delimiters ";", so I can import it on Excel or OpenOffice like if it were a simple CSV file. The problem is that I made a program that do exactly that, exporting all the data without any problems, but when I open the file in Excel turns out that the fields that are numbers (DECIMAL's for example) have been turned into CHARACTER, so, when I tried to do some math's operations to that fields (sum all for example), it only takes some of the values, but not all of them.
I try to do something like EXPORTing the values in this way:
Code:
EXPORT STREAM output DELIMITER ";"[INDENT]field1
field2
...
DECIMAL(fieldN-1)
DECIMAL(fieldN)
[/INDENT]END.
I noted that if I take the CSV (or .txt) generated by the program, and change the . (dots) corresponding to the numeric values to "," (comas), Excel recognize them like numbers, and can work with them. Is there any way that I can EXPORT to the file using comas instead of dots for the numeric values?
Thanks a lot, for reading this and for your replys.
Greetings from Chile,
Nacho
PS: is not that simple to take the file and "find and replace" all the dots to comas, cause the names and descriptions involved into the others fields have info that contain that kind of punctuation.