text file limited to 32k.

Help
2005-05-05
2012-12-29
  • 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.

     
    • Edwin Clubb
      Edwin Clubb
      2005-05-05

      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.