LogFile

Top  Previous  Next

S

A

W

WS

ü

ü

Valid for: SetStartup

 

Syntax -

       SetStartup LogFile <FilePathAndName>

               Where:

                       <FilePathAndName> is a literal string.

 

Description:

This option specifies the full path and file name where EMUE records the data from the processing of LOG, LogLine and LOGF commands.  This must consist of a path and file name that is accessible to the workstation on which EMUE is running.  If the path does not exist, EMUE will create it.  This option values the Log File textbox on the Main tab on the main EMUE window.  If no value is provided for this option, EMUE will create a log file that is named using the InputFile<Name> defined in the SetStartup InputFile command or in the OPTIONS statement, followed with an extension of “.LOG”.  This value is optional.

 

Note: If #INPUTFILENAME# is used and there is no input file specified, the text will not be replaced.  The following key terms may be used in the name of this file.  These terms will be valued when the processing of the script begins and the values will be used in the name of the file:

Term

Will be replaced by

#TODAY#

The current  date in the format MMDDYY

#DATE#

The current date in the format MMDDYY

#NOW#

The current time in the format hhmmss

#TIME#

The current time in the format hhmmss

#INPUTFILENAME#

The current input file name without the extension

#SCRIPTFILENAME#

The name of the script file without extension

#SCRIPTFOLDER#

The name of the folder path where the current script file is located

#COMPUTERNAME#

The name of the computer where the script is running

 

 

Sample 1:

       The following statement instructs EMUE to log to file "C:\EMUE\OutputLog.Log"

SetStartup LogFile "C:\EMUE\OutputLog_#TODAY#_#TIME#.Log"

 

Sample 2:

       Using a csv file as a log file

The following statement instructs EMUE to log to file "C:\EMUE\OutputLog.csv." By default .csv files will open in Excel.  In order for fields to be separated into columns, they should be separated by commas when they are logged.

SetStartup LogFile "C:\EMUE\OutputLog_#TODAY#_#TIME#.csv"

LogLine AcctNo "," DOS "," Bal "," InsPlan

 

See Also:

LOG

LogLine

LOGF