I create a file with the folowing parameters:
The data is greater than 32k but the file is create with only 32k, i have looked at documentation but, i dont find the adequated parameter, if anyone remember, please help me.
For unstructured text files use "o file:(truncate:stream:nowrap)". GTM uses a linefeed character as a write terminator (w !), or you can explicitly write a CR/LF (w $c(13,10) ) at the end of each line. Also be aware that "w #" will produce a linefeed if $x>0, followed by a formfeed ($c(12)) and another linefeed. You should also set $x=0 before closing the file, otherwise a linefeed is automatically appended to the file.
I follows the recommendation in manual that sugest to use VARIABLE other than STREAM, i will use STREAM. Very thanks for $x=0, the problem was ocorred but i dont understand why, regards.
Log in to post a comment.