I create a file with the folowing parameters:
o device:(TRUNCATE:NOREADONLY:VARIABLE:NOWRAP)
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.
Lucberna.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Ed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Luc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, all,
I create a file with the folowing parameters:
o device:(TRUNCATE:NOREADONLY:VARIABLE:NOWRAP)
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.
Lucberna.
Lucberna,
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.
Ed
Thanks Edwin,
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.
Luc.