SetInputFile

Top  Previous  Next

S

A

W

WS

ü

ü

Syntax -

SetInputFile <FilePathAndName>

       Where:

               <FilePathAndName> is a valid path and file name or a variable that contains a valid path and file name that is accessible from the workstation on which EMUE is running.

 

Description:

This command instructs EMUE to immediately close the file defined by the SetStartup InputFile command and defines the path and file name for the InputFile to be used by EMUE as it continues processing the script.  This command is often used when manipulating a file using a 3rd party utility executed from EMUE using the RunCommand command.

For example, if a script executes a Monarch model on a report after it becomes available, this command allows EMUE to use the output file from Monarch without having to start another script.

 

 

Notes: As of Version 3.0.1, Wildcards are permitted in the name of the input file.  If there are multiple files that meet the pattern specified in the input file name, then the order in which the files are processed will be determined by the value of InputFileSortOrder.

If the file defined in this command is not available for processing, EMUE will stop processing the script and exit with an error.

This command resets all file progress and time to complete information displayed by EMUE.  As a result, the elapsed time will not be correct.  However, the estimated completion time will still be accurate.

If the file defined in the SetInputFile command is the same as the file defined in the SetStartup InputFile command, the current InputFile that is in use will be closed and re-opened from the beginning of the file.

The input file can be cleared altogether if the file path and name is defined by empty quotes (SetInputFile "").

SetInputFile cannot be used directly with files on FTP servers, but FTP files can be moved or copied to a local directory using MoveFile or CopyFile.  Then the local file can be used with SetInputFile.

 

Sample:

       The following statement defines a new InputFile as Report.txt.

SetInputFile "C:\monarch\Report.txt"