McIDAS-X User's Guide
Version 2023.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


DEV

This keyword specifies the destination device of text output generated by a command. The format of the DEV keyword is shown below.

DEV=device filename file_option
DEV=device 'print_command'

device

1-, 2- or 3-letter string indicating destination for each of the three output types (standard, error, and debug); the first letter directs standard (non-error) output, the second letter directs error output, the third letter directs debug output; do not specify both F and T together, for example, DEV=FTT; the letters below are valid options (default=CCN)

 

C

sends output to the text frame

 

F

sends output to an LW file

 

N

suppresses output

 

P

sends output to the default printer

 

T

sends output to a text file

filename

the name of the LW or text file for saving output; specify only when device includes F or T

file_option

A

appends the output to the specified file

 

R

replaces the output in the specified file (default)

'print_command'

Unix print command; valid only when device includes a P; if 'print_command' is not specified, then the value of the MCPRINT environment variable is used; if 'print_command' is not specified and MCPRINT is not set, then the default lpr command settings are used

See the FRMSAVE command for information about printing image and graphics output.

Below are six examples of using the DEV keyword.

IMGLIST MY/DATA.ALL DEV=NNN

This entry displays no output text.

IMGLIST MY/DATA.ALL DEV=CCC

This entry directs all text output (standard, error and debug) to the text frame.

IMGLIST MY/DATA.ALL DEV=FFF IMAGES

This entry directs all text output (standard, error, and debug) to the LW file IMAGES.

IMGLIST MY/DATA.ALL DEV=NC

This entry directs error messages to the text frame. Standard and debug messages are suppressed.

IMGLIST MY/DATA.ALL DEV=P 'lpr -Plp10ps'

This entry directs standard output text to the printer named lp10ps.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]