Menu

print - end of line <cr><lf>

Help
Jens Wulf
2004-02-02
2004-02-23
  • Jens Wulf

    Jens Wulf - 2004-02-02

    Hi,
    is it possible to make GT.M output a

    "abcdef<CR><LF>"
    instead of "abcdef<LF>"

    when executing a WRITE "abcdef",!

    Greetings

    Jens

     
    • Mir Layek Ali

      Mir Layek Ali - 2004-02-09

      Hi Jens

      We do not thinks there is a simple way. Could you tell us for what device is your question for? Why you want <CR><LF>? If the file is destined for Windows, a ftp ascii transfer to windows would do the correct translation. Or you can do your own translation.

      Regards.

      Layek

       
    • Jens Wulf

      Jens Wulf - 2004-02-09

      Hi Layek,
      thanks for your answer.
      I have several programs running under DSM in a VMS enivronment. They are printing via (reverse)-LAT on Line-Printers.
      In LINUX i use the latd -Daemon (other sourceforge project) and try to print in that way :

      S DEV="/dev/lat/printer" O DEV U DEV
      W "abcdef",!,"ghijkl"
      C DEV
      The output is then :
      --------------------------
      abcdef
               ghjkl
      --------------------------

      An option like U DEV:CRLF=ON would be very helpful even for file-transfer to other systems.

      Greets

      Jens

       
    • Sam Weiner

      Sam Weiner - 2004-02-10

      Jens,

      Would you please do a "stat /dev/lat/printer" and
      send us the output?  This will help us determine
      what type of device GT.M will think it is.  GT.M
      on UNIX does not have the concept of a printer so
      it will likely be considered either a terminal or
      a disk file.

      One solution might be to set up a fifo process
      which changes the LF to CRLF in its input before
      sending it on to the printer.

      Our general recommendation is to write to
      a file and send the completed file to the
      printer via the UNIX lpr command, typically
      using ZSYSTEM to issue the lpr.

      Sam

       
    • Jens Wulf

      Jens Wulf - 2004-02-23

      Thanks for your help - all
      I prefer to use the lpr-variant with a lpf-filter.
      This works good in combination with reverse telnet.
      i found that this works fine with my Decserver 700's

      Greetings Jens

       

Log in to post a comment.