F
frank.meulblok
Guest
Syntax when dealing with codepage conversions is currently inconsistent. COPY-LOB requires the use of the keyword "CODEPAGE": COPY-LOB FROM myLongchar TO FILE "myfile.txt" CONVERT TARGET CODEPAGE "UTF-8". -> works COPY-LOB FROM myLongchar TO FILE "myfile.txt" CONVERT TARGET "UTF-8". -> compiler error "** Unable to understand after -- "CONVERT TARGET". (247)" INPUT, OUTPUT and INPUT-OUTPUT stream commands do not allow the keyword "CODEPAGE": OUTPUT STREAM mystream TO "myfile.txt" CONVERT TARGET "UTF-8". -> works. OUTPUT STREAM mystream TO "myfile.txt" CONVERT TARGET CODEPAGE "UTF-8". -> compiler error "** Unknown Field or Variable name - CODEPAGE. (201)" Would be more intuitive if these phrases were consistent throughout the language. I'd suggest making the keyword "CODEPAGE" allowed as optional in all cases, then people can use whatever they prefer and risk to backward compatibility should be minimal. (The r-code would stay the same, so only the OE version you compile with would matter.)
Continue reading...
Continue reading...