ExecuteCommand function for IBM Planning Analytics (TM1)
ExecuteCommand executes a command line.
In this video, ExecuteCommand is used to archive a file and rename it with the current timestamp.
Where can the ExecuteCommand function be used?
TurboIntegrator
Which TM1 Server version is the ExecuteCommand function available for?
Version 11
What is the syntax for ExecuteCommand?
ExecuteCommand(CommandLine, Wait)
CommandLine = The command line that is to be executed.
Wait = takes value 1 or 0, which indicates whether the process should wait for the command to finish execution and continue to the next statement in the process or continue without respectively.
If = Uses a conditional expression to check if an expression is true or false
ItemReject = Skips the current source data transaction like ItemSkip
ItemSkip = Skips the current transaction in the process
MetadataMinorErrorCount = A global variable that counts minor errors that occur in the Metadata portion in a process
ProcessBreak = Stops processing any data and moves straight to the Epilog
ProcessError = Immediately terminates the process and produces an error
ProcessExists = Checks if a process exists. 1 is returned if the process exist, 0 if it does not exist
ProcessExitByChoreRollback = triggers a chore rollback and exits with an error code that discards all pending edits and stops further processing in a TurboIntegrator process.
ProcessExitByProcessRollback = triggers a process rollback and exits with an error code that discards all pending edits and stops further processing in a TurboIntegrator process.
ProcessQuit = Immediately terminates the process and returns a Process Quit message
ProcessReturnCode = A global variable that stores the exist status of the most recently executed process
ProcessRollback = Terminates the process and begins a rollback
PrologMinorErrorCount = A global variable that counts minor errors that occur in the Prolog
RunProcess = Run multiple processes in parallel. This function can speed up data loads and other processes by dividing work into multiple parts