whip
Member²
Let's see if I can explain this. What I do nowadays is generate data using PL/SQL and then process it with external programs. Therefore I need a method to extract my generated data (which is text only) to a file. My idea is to use a Command window which would start the generator program and then do the extraction.
The generator creates strings which usually contain a single line of text but this string can also be empty which needs to be output as an empty line. The string can also contain multiple lines (ie. LF characters).
What I tried is insert these strings in the generator program into a table then spool the table data to a file in a Command window. This method has problems with both empty lines and multi-line strings. Empty lines do not appear in the output and multi-line strings have an extra LF character appended.
Does anyone have an idea on how to solve these problems?
Tom
The generator creates strings which usually contain a single line of text but this string can also be empty which needs to be output as an empty line. The string can also contain multiple lines (ie. LF characters).
What I tried is insert these strings in the generator program into a table then spool the table data to a file in a Command window. This method has problems with both empty lines and multi-line strings. Empty lines do not appear in the output and multi-line strings have an extra LF character appended.
Does anyone have an idea on how to solve these problems?
Tom