Running Global Calc from the command line

Running Global Calc from the command line requires Integrated Windows Authentication to be used to log into Optiva. This is only available for On-Premise customers.

You must change the Windows ID for the Optiva user who is running Global Calc to the domain user who is running the scheduled job. For example, set the Windows ID field for Optiva user FSI to INFOR\psmith.

Use the FsGlobalCalcStartProcess.exe program to run Global Calc from a command prompt. Because this program connects to the Optiva server, the FsGlobalCalcStartProcess.exe.config file is associated with this program. Both files are located in the inetpub\wwwroot\FsSvcCore\bin directory.

You can program the calculation process to begin at a scheduled time from a standard scheduler application.

By default, this config file has entries that reference the web methods on the localhost.

You can run the FsGlobalCalcStartProcess.exe program from a machine that is not the Optiva server machine. You must modify the FsGlobalCalcStartProcess.exe config file. Change localhost to the name of the Optiva server machine.

You can start using the command line process for new Global Calc objects where no formulas have been loaded into the job list.

Syntax


FsGlobalCalcStartProcess.exe  -dbname –lab –group –calccode – runtime

Parameters

Parameters can be used in any order.

Parameter Description
-? or -h Displays the FsGlobalCalcStartProcess.exe usage.
-dbname <dbname> Required: Optiva database that is used to log into Optiva. Enclose values that contain embedded spaces in double quotes.

Example:-dbname "Prod Optiva".

-lab <lab code> Optional. Use if the user configured for Integrated Windows Authentication does not have a lab and group configured in the User form. If left blank, then the user’s default lab is used.

When you specify a lab, you must also specify the user group.

-group <group code> Optional unless -lab is specified. Group to run the Global Calc process for if not specified for the user. When left blank, it is the user’s default group.
-calccode <Global Calc code> Required. The Global Calc object code (jobID) that is specified in the web client and is used to run the calc process. This is tracked in the results in the Reports tab.
-runtime <minutes> Optional. Duration in minutes before the calc process stops. If this value is not provided, then the time from the Global Calc form is used.
-stoptime <YYYY:MM:DD:HH:mm:SS> Optional. As an alternative to the –runtime argument, you can use the -stoptime argument to designate a completion date and time (24-hour format).
-forcestart Optional. When this parameter is passed, the Global Calc process starts from the beginning instead of restarting where the process left off.

When the parameter is not passed, the Global Calc process restarts where it left off.