Top
Systemwalker Operation Manager V17.0.1 Reference Guide

14.2.8 file Statement

Synopsis

[Windows]

file [file name],ac (access name) [,prt({printer name | *})
    [,prtform([fontname=font name] [,fontsize=font size]
            [,orient={port | land}] [,form=paper size])]]

[UNIX]

file [file name],ac(access name) [,prt ({printer name | *})]

Description

This statement specifies the file information used by the total job.

By specifying the prt operand, the file can be printed.

Operands

file name

Specify the file name of an input/output file used in the executable program or batch file [Windows]/shell script [UNIX].

The specified file name is set to the same name as the environment variable of the access name. Even if the specified file name contains other environment variable "%character strings%" [Windows]/"$character strings" [UNIX], it is not set to the other environment variable name. The executable program or batch file [Windows] or shell script [UNIX] specified in the exec control statement can obtain the file name from the environment variable.

This operand can be omitted only when the prt operand is specified.

If this operand is omitted, Job Execution Control will create a temporary work file. A unique file name is set for this temporary work file on the system. Note that this temporary work file is deleted when the job is deleted from the job queue after the file contents have been output to the printer.

ac (access name)

Specify any access name. The file name is set in the environment variable with the same name as the specified access name.

Access names must meet the following conditions:

prt ({printer name|*})

After the job has completed, the contents of the file specified in the first argument of this statement are output to the printer. However, only the contents of text file can be output.

If the printer name is specified, it is output to the specified printer. The printer name must meet the following requirements:

If (*) is specified, the file is output to the printer that is specified in the prt operand of the jobstart statement.

When specifying the printer name, the name defined in the [Print Format] sheet of the [Define Operating Information] window can be used. [Windows]

prtform [Windows]

Specify the attributes related to print format. Make sure to specify one or more sub operands. For the specification value of the sub operand, specify values allowed in the Print Manager for Windows.

When the attributes related to print format are specified, the print format is determined as follows:

When this operand is omitted, the print format is determined as follows:

Examples

[Windows]

In the following example, the access name "out1" is assigned to the file called "d:\result\data1" (from job process, the file name can be obtained by referring to the environment variable "out1") and the file is set to be output to "prt1" after the job has completed. The output attributes are the font name "system," font size "10 points", and print orientation "landscape."

file d:\result\data1,ac(out1),prt(prt1),
prtform(fontname=system,fontsize=10,orient=port)

[UNIX]

In the following example, the access name "output1" is assigned to the file called "/result/data1" (from job process, the file name can be obtained by referring to the environment variable "output1") and the file is set to be output to "printer1" after the job has completed.

file /result/data1,ac(output1),prt(printer1)

The file name can be omitted as follows.

file ,ac(output1),prt(printer1)