JBC_CRREQ

Man Page Index


Description
This environment variable controls whether or not line feeds and form feeds are followed by a carriage return when printing to the spooler.

 

Values

0 No translation is performed
linefeed -> linefeed (unchanged)
formfeed -> formfeed (unchanged)
1 specifies that a carriage return is required after each and every line feed when printing to the spooler
linefeed -> linefeed + carriage return
formfeed -> formfeed (unchanged)
2 Specifies that a carriage return is required after each and every form feed when printing to the spooler.
linefeed -> linefeed (unchanged)
formfeed -> formfeed + carriage return
3 specifies that a carriage return is required after each and every line feed and form feed when printing to the spooler.
linefeed -> linefeed + carriage return
formfeed -> formfeed + carriage return

 

Default
0

Notes
When printing to a Printronix printer on Unix (which converts 'linefeeds' to 'linefeed + carriage return' but does not append 'carriage return' to 'form feeds') you should set JBC_CRREQ=2.

When printing binary data to a laser (or similar printer) on Windows you should set JBC_CRREQ=3

Also the device definition for the appropriate form queue should specify the -l and -n options to 'lp' e.g.
fqfred PROG lp -l -n -d \\printername

Alternatively use the default Windows printer e.g.
STANDARD NT

 

Setting
As per normal environment variable. It must be setup before connecting to jBASE.

Unix
JBC_CRREQ=2
export JBC_CRREQ

Windows
SET JBC_CRREQ=3


ENV