Skip to main content

Operation overview

What is it?

The Operation section covers the scripts that OpCon uses to start, monitor, and interact with XP2 jobs. Each script is run as an OpCon job on the AIX platform where XP2 is installed. Most scripts require the [[SMAXPSetup]] property on the command line to initialize the correct Perl environment before running.

  • Use these scripts to build automated workflows that submit and track XP2 jobs through OpCon
  • Combine scripts — for example, run SMACaptureDatestamp before a job, then use SMAFetchControlNumber after it completes — to capture output values for downstream processing

Scripts in this section

ScriptDescription
Run XP JobStarts and monitors an XP2 job. The core script for all XP2 job automation.
ExecuteConsSubmits a console command to the XP2 console and prints the output to the STDOUT log.
Maintain LogfilesDeletes XP2 Connector log files older than a configured number of days.
SMACaptureDatestampCaptures the current date and time as an OpCon property to use as a boundary for control number lookups.
SMACheckConsoleLogTriggers an OpCon event when a specified key is found in the XP2 console log.
SMAFetchControlNumberRetrieves a batch control number from the XP2 console log and stores it in an OpCon property.
SMAFetchDocNumberRetrieves the document number of an XP2 job output file and stores it in an OpCon property.
SMAFetchQueuedDocNumberRetrieves the document number of a queue entry matching specified parameters and stores it in an OpCon property.
SMAListRptNumbersFinds the first and last report numbers in the DSX List and stores them in OpCon properties.
WaitForXPJobPauses an OpCon workflow until a specified XP2 child job completes.