file

Note: Always enclose arguments containing spaces in quotes, or the command will not execute successfully.

Example: If the Program Files folder is included in a path statement as an argument, the entire path must be enclosed by quotes.

The file command lets you pipe an input ascii text file containing TA commands for batch processing.

SACmd file file_name

Specify the full, absolute directory path to your file.

Operation

The file should contain a list of individual commands, with each command separated by a carriage return (one command per line).

Example: # this is just a test script
listrule
jobmon +iaE
jobadd -a payroll

To add comments to the text file, precede the comment with two forward slashes ( // ) or with the sharp ( # ) sign. The file command ignores any line beginning with two forward slashes or the sharp sign. Any line composed entirely of spaces or tabs is also ignored.

If a command in the list produces an error, that command is skipped, but the remaining lines are processed.

Example

This example inputs the file cmdlist.txt to the file command. cmdlist.txt contains a list of TA commands to process.

SACmd file cmdlist.txt