Amit,
You want error messages in the &COMO& but not on the screen, right?
Use DIVERT.OUT TTY.OFF/TTY.ON
DIVERT.OUT is the more general command. In fast, the COMO verb is
actually a basic program that executes DIVERT.OUT (source in
$UVHOME/uv/BP/COMO_VERB).
Example:
>CT CDS.BP BHUTANI
BHUTANI
0001 CRT 'CRT 1 to screen & como.'
0002 PRINT 'PRINT 1 to screen & como.'
0003 PERFORM 'DIVERT.OUT TTY.OFF' <------ what you want
0004 CRT 'CRT 2 only to como'
0005 PRINT 'PRINT 2 only to como'
0006 PERFORM 'DIVERT.OUT TTY.ON' <------ what you want
0007 CRT 'CRT 3 to both screen & como.'
0008 PRINT 'PRINT 3 to both screen & como.'
0009 STOPM 'Stopm to both screen & como.'
>COMO ON BHUTANI <----- turn como on
COMO BHUTANI established 11:10:06 17 FEB 2004
>RUN CDS.BP BHUTANI
CRT 1 to screen & como.
PRINT 1 to screen & como.
CRT 3 to both screen & como. <------ what you want
PRINT 3 to both screen & como.
Stopm to both screen & como.
>COMO OFF <------ turn como off
COMO completed. 11:10:16 17 FEB 2004
>CT &COMO& BHUTANI
BHUTANI
0001 COMO BHUTANI established 11:10:06 17 FEB 2004
0002 >RUN CDS.BP BHUTANI
0003 CRT 1 to screen & como.
0004 PRINT 1 to screen & como.
0005 CRT 2 only to como <------ what you want
0006 PRINT 2 only to como <------ what you want
0007 CRT 3 to both screen & como.
0008 PRINT 3 to both screen & como.
0009 Stopm to both screen & como.
0010 >COMO OFF
0011 COMO completed. 11:10:16 17 FEB 2004
>
Another way more similar to the unix idea of redirecting stdout is to
use a different print channel directed to &HOLD& for some messages.
(PRINT ON n), but that file would contain ONLY the redirected messages.
Chuck Stevenson
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users