Skip to main content
Version: OpCon 26.0 (On-Prem)

Properties

Theme: Configure
Who Is It For? Automation Engineer, Application Owner

What Is It?

Properties are attributes of OpCon objects. Retrieve property values by tokenizing the property name and using that token in OpCon events or job definition details.

Property Types

There are three types of properties in OpCon:

System Properties

System Properties are default OpCon variables. Properties beginning with a dollar sign ($) have non-configurable values. Other system properties provide access to values of OpCon objects.

All system properties below can be resolved through Tokens in schedule completion events, job definitions, job events, and Notification Manager notifications. Only the $OPCONVER property can be used in external OpCon events.

Dollar-sign ($) system properties are:

  • Automatically provided
  • Case-sensitive
  • Read-only
System PropertyDescription
JI.$ACTUAL RUN TIMERun time of the job calculated from End Time minus Start Time. Format: hh:mm:ss. Returns N/A if the job has not finished.
JI.$ARRIVED BASE FILE NAMEFile name returned by a File Arrival job.

Example: "File20180506"
JI.$ARRIVED FILE EXTENSIONFile extension returned by a File Arrival job.

Example: ".txt"
JI.$ARRIVED FILE NAMEFull path and file name returned by a File Arrival job.

Example: "D:\NewFiles\File20180506.txt"
JI.$ARRIVED FILE PATHDirectory path returned by a File Arrival job.

Example: "D:\NewFiles"
JI.$ARRIVED SHORT FILE NAMEFile name and extension returned by a File Arrival job.

Example: "File20180506.txt"
JI.$DEPARTMENT NAMEName of the department associated with the job in the Daily tables.
JI.$EST RUN TIMEEstimated run time of the job. Format: hh:mm:ss.
$FREQUENCY NAMEName of the frequency of the job.
$JOB NAMEFull name of the job from the Daily tables.
$JOB STATUSStatus of the job from the Daily tables.
$JOB STATUS CATEGORYStatus category of the job from the Daily tables.
$JOB TERMINATIONFull exit condition of the job.
$JOBID10-digit unique number of the job.

Example: 0000049895.
$JOBID CMPFull job name and unique number, compressed with no spaces.

Example: Backup0000049895.
$JOBID LONGFirst 12 characters of the job name and unique number in a 27-character format:
  • 12 characters of the job name
  • 5 spaces
  • 10-digit unique number
Example: Backup 0000049895
$MACHINE NAMEName of the machine assigned to the job. Returns N/A if no machine is assigned.
MI.$MACHINE OPER STATUSOperator Status of the machine assigned to the job, as set by an OpCon administrator.
MI.$MACHINE NET STATUSNetwork Status of the machine assigned to the job, as reported by SMA Network Communications (SMA NetCom).
MI.$MACHINE RUNNING JOBSNumber of jobs currently running on the machine, as a string value.
$MASTER JOB NAMEOriginal master name of the job as it was when built or added to the Daily.
$MASTER SCHEDULE NAMEOriginal master name of the schedule as it was when built into the Daily.
JI.$MAX RUN TIMEMaximum run time of the job from the Daily tables. Format: hh:mm:ss.
$NOTIFYIDNotification ID of the event that triggered the current notification.

NOTE: Only resolvable by SMA Notify Handler.
$OPCONVERCD Build Version of the OpCon Instance as defined in the OpCon database.
JI.$RESTART STEPAlphanumeric value defined for the job's restart step.
RM.ResourceNameMaximum number of available resources for the named resource. Always returns as an integer.
RU.ResourceNameNumber of resources in use for the named resource. Always returns as an integer.
$SCHEDULE NAMEFull name of the schedule from the Daily tables.
$SCHEDULE IDID number of the schedule.
$SCHEDULE INSTInstance number of the schedule.
JI.$SKD STATUSStatus of the schedule from the Daily tables (job context).
SI.$SKD STATUSStatus of the schedule from the Daily tables (schedule context).
JI.$SKD STATUS CATEGORYStatus category of the schedule from the Daily tables (job context).
SI.$SKD STATUS CATEGORYStatus category of the schedule from the Daily tables (schedule context).
JI.$START COMMANDStart command the agent attempted when the job was submitted. Only populated after the job starts, and only if the agent version supports it.

Supported platforms:
  • Microsoft LSAM - Version 16.01.00
  • z/OS LSAM - Version 15.07.01 (refer to Start Command for more information)
  • MCP LSAM - Version 16.0
  • UNIX LSAM - Version 17.1.0
TH.ThresholdNameCurrent value of the named threshold. Always returns as an integer.

Managed System Properties

Managed System Properties are default date- and time-related variables with configurable values. Each property requires a format definition in its value field.

All managed system properties can be resolved through Tokens in Schedule Completion Events, Job Definitions, Job Events, and Notification Manager notifications. Only $DATE, $TIME, and $NOW may be used with external OpCon events. All Managed System Properties are case-sensitive.

Managed System PropertyDescriptionDefault Format
$DATEResolves to the current date.Short Date
$JOB STARTTIMEResolves to the start time of the associated job. Returns N/A if not yet started.yyyy/MM/dd hh:mm:ss
$JOB ENDTIMEResolves to the end time of the associated job. Returns N/A if not yet ended.yyyy/MM/dd hh:mm:ss
$NOWResolves to the current date and time.General Date
$SCHEDULE DATEResolves to the schedule date of the associated schedule.dd-mmm-yyyy
$SCHEDULE DATEMSResolves to the Microsoft formatted date for the associated schedule.#####
$TIMEResolves to the current time.Long Time

To change the value of a Managed System Property, use a predefined format (by name) or a user-defined format using characters from the User-defined Date and Time Format Characters table. User-defined formats must use syntax recognized by the regional settings of the user running SMA Service Manager.

caution

The date calculation is incorrect if the two formats are in opposition. For example, if the Regional Settings have a format of mm/dd/yyyy and the property has a format of dd/mm/yyyy, the calculation would be imprecise.

CharacterMeaning
#####Substitute the date as a Microsoft formatted numeric date (Number of days since January 1, 1900).
a/p12-hour clock; lowercase 'a' before noon, lowercase 'p' from noon to midnight.
A/P12-hour clock; uppercase 'A' before noon, uppercase 'P' from noon to midnight.
am/pm12-hour clock; lowercase a.m. before noon, lowercase p.m. from noon to midnight.
AM/PM12-hour clock; uppercase A.M. before noon, uppercase P.M. from noon to midnight.
cSubstitutes date as ddddd and time as ttttt. Omits date if no fractional part; omits time if no integer portion.
dDay as a number without a leading zero (1 – 31).

Examples
6/1/2009 1:45:30 PM --> 1
6/15/2009 1:45:30 PM --> 15
ddDay as a number with a leading zero (01 – 31).

Examples
6/1/2009 1:45:30 PM --> 01
6/15/2009 1:45:30 PM --> 15
dddDay as an abbreviation (Sun-Sat).

Examples
6/15/2009 1:45:30 PM --> Mon (en-US)
6/15/2009 1:45:30 PM --> Пн (ru-RU)
6/15/2009 1:45:30 PM --> lun. (fr-FR)
ddddDay as a full name (Sunday-Saturday).

Examples
6/15/2009 1:45:30 PM -> Monday (en-US)
6/15/2009 1:45:30 PM -> понедельник (ru-RU)
6/15/2009 1:45:30 PM -> lundi (fr-FR)
dddddShort date pattern (day, month, year).

Example
6/15/2009 (en-US)
ddddddLong date pattern (day, month, year).

Example
Monday, June 15, 2009 (en-US)
fFull date/time pattern with short time.

Examples
6/15/2009 1:45:30 PM -> Monday, June 15, 2009 1:45 PM (en-US)
6/15/2009 1:45:30 PM -> den 15 juni 2009 13:45 (sv-SE)
6/15/2009 1:45:30 PM -> Δευτέρα, 15 Ιουνίου 2009 1:45 μμ (el-GR)
FFull date/time pattern with long time.

Examples
6/15/2009 1:45:30 PM -> Monday, June 15, 2009 1:45:30 PM (en-US)
6/15/2009 1:45:30 PM -> den 15 juni 2009 13:45:30 (sv-SE)
6/15/2009 1:45:30 PM -> Δευτέρα, 15 Ιουνίου 2009 1:45:30 μμ (el-GR)
gGeneral date/time pattern with short time.

Examples
6/15/2009 1:45:30 PM -> 6/15/2009 1:45 PM (en-US)
6/15/2009 1:45:30 PM -> 15/06/2009 13:45 (es-ES)
6/15/2009 1:45:30 PM -> 2009/6/15 13:45 (zh-CN)
GGeneral date/time pattern with long time.

Examples
6/15/2009 1:45:30 PM -> 6/15/2009 1:45:30 PM (en-US)
6/15/2009 1:45:30 PM -> 15/06/2009 13:45:30 (es-ES)
6/15/2009 1:45:30 PM -> 2009/6/15 13:45:30 (zh-CN)
h/HHour without leading zeros (0 – 23).

Examples
6/15/2009 1:45:30 AM -> 1
6/15/2009 1:45:30 PM -> 13
hh/HHHour with leading zeros (00 – 23).

Examples
6/15/2009 1:45:30 AM -> 01
6/15/2009 1:45:30 PM -> 13
jDay of the year as a Julian date with leading zeros (001 – 366).
mMonth as a number without a leading zero (1 – 12). If immediately following h or hh, displays minute instead.
mmMonth as a number with a leading zero (01 – 12). If immediately following h or hh, displays minute instead.
mmmMonth as an abbreviation (Jan-Dec).

Examples
6/15/2009 1:45:30 PM -> Jun (en-US)
6/15/2009 1:45:30 PM -> juin (fr-FR)
6/15/2009 1:45:30 PM -> Jun (zu-ZA)
mmmmMonth as a full name (January-December).

Examples
6/15/2009 1:45:30 PM -> June (en-US)
6/15/2009 1:45:30 PM -> juni (da-DK)
6/15/2009 1:45:30 PM -> uJuni (zu-ZA)
nMinute without leading zeros (0 – 59).

Examples
6/15/2009 1:09:30 AM -> 9
6/15/2009 1:09:30 PM -> 9
nnMinute with leading zeros (00 – 59).

Examples
6/15/2009 1:09:30 AM -> 09
6/15/2009 1:09:30 PM -> 09
qQuarter of the year (1 – 4).

Examples
3/15/2009 1:09:30 AM -> 1
6/15/2009 1:09:30 PM -> 2
9/15/2009 1:09:30 PM -> 3
12/15/2009 1:09:30 PM -> 4
R, rRFC1123 pattern.

Example
6/15/2009 1:45:30 PM -> Mon, 15 Jun 2009 20:45:30 GMT
sSecond without leading zeros (0 – 59).

Example
6/15/2009 1:45:09 PM -> 9
ssSecond with leading zeros (00 – 59).

Example
6/15/2009 1:45:09 PM -> 09
tShort time pattern.

Examples
6/15/2009 1:45:30 PM -> 1:45 PM (en-US)
6/15/2009 1:45:30 PM -> 13:45 (hr-HR)
6/15/2009 1:45:30 PM -> 01:45 م (ar-EG)
TLong time pattern.

Examples
6/15/2009 1:45:30 PM -> 1:45:30 PM (en-US)
6/15/2009 1:45:30 PM -> 13:45:30 (hr-HR)
6/15/2009 1:45:30 PM -> 01:45:30 م (ar-EG)
ttttTime in long time format (hour, minute, second).

Examples
6/15/2009 1:45:30 PM -> 1:45:30 PM (en-US)
6/15/2009 1:45:30 PM -> 13:45:30 (hr-HR)
6/15/2009 1:45:30 PM -> 01:45:30 م (ar-EG)
uUniversal sortable date/time pattern.

Example
6/15/2009 1:45:30 PM -> 2009-06-15 20:45:30Z

Note: Displays the pattern defined by the DateTimeFormatInfo.FullDateTimePattern property for the current thread or format provider. Time is universal, not local.
UUniversal full date/time pattern.

Examples
6/15/2009 1:45:30 PM -> Monday, June 15, 2009 8:45:30 PM (en-US)
6/15/2009 1:45:30 PM -> den 15 juni 2009 20:45:30 (sv-SE)
6/15/2009 1:45:30 PM -> Δευτέρα, 15 Ιουνίου 2009 8:45:30 μμ (el-GR)

Note: Displays the pattern defined by the "DateTimeFormatInfo.FullDateTimePattern" property for the current thread or format provider. Time is universal, not local.
wDay of the week as a number (1 for Sunday through 7 for Saturday).
wwWeek of the year as a number (1 – 53).
yDay of the year as a Julian date (1 – 366). Leading zeros suppressed.
yyYear as a two-digit number (00 – 99).

Examples
1/1/0001 12:00:00 AM -> 01
1/1/0900 12:00:00 AM -> 00
1/1/1900 12:00:00 AM -> 00
6/15/2009 1:45:30 PM -> 09
yyyyYear as a four-digit number (100 – 9999).

Examples
1/1/0001 12:00:00 AM -> 0001
1/1/0900 12:00:00 AM -> 0900
1/1/1900 12:00:00 AM -> 1900
6/15/2009 1:45:30 PM -> 2009
zzHours offset from UTC, with a leading zero for a single-digit value.

Example
6/15/2009 1:45:30 PM -07:00 -> -07
zzzHours and minutes offset from UTC.

Example
6/15/2009 1:45:30 PM -07:00 -> -07:00

Modified Managed System Properties

Modified managed system properties are copies of existing managed system properties with different formats.

Modified properties must be named using one of these patterns (x...x represents any user-specified combination of characters):

  • $DATExxxxxxxxxxxxxxx
  • $TIMExxxxxxxxxxxxxxx
  • $NOWxxxxxxxxxxxxxxxx
  • $SCHEDULE DATExxxxxx

Set the value using a predefined format from the Predefined Date and Time Formats table or a user-defined format from the User-defined Date and Time Format Characters table.

Examples

Best practice is to append the Property Value to the property name.

Examples
Property Name: $DATE m/d/yy --> Property Value: m/d/yy
Property Name: $SCHEDULE DATE d-mmmm-yy --> Property Value: d-mmm-yy>
Property Name: $TIME hhmmss --> Property Value: hhmmss

Examples values for $DATE and $SCHEDULE DATE

Property ValueResolved As
m/d/yy12/7/08
d-mmmm-yy7-December-08
d mmmm7 December
mmmm-yyDecember 08

Examples values for $TIME

Property ValueResolved As
hh:mm am/pm08:50 p.m.
h:mm:ss a/p8:50:35 p
hhmm2050
hhmmss205035

Offsets

Managed System Properties may be resolved with offsets. Syntax: [[$XXXX(-nf)]].

ElementMeaning
$XXXXAny valid managed system property ($DATE, $NOW, $SCHEDULE DATE, $TIME, or user-defined variations).
-Plus (+) or minus (-) to indicate offset direction.
nNumeric occurrence for the offset (1–32000).
fFormat character denoting the unit of measure. Defaults to d (day) if omitted.

Valid characters:
  • yy (year)
  • q (quarter)
  • m (month)
  • eom (end of month)
  • wk or ww (week)
  • d (day)
  • wd (working day)
  • h (hour)
  • n (minute)
  • s (second)
Examples

[[$SCHEDULE DATE(+3d)]] -> If schedule date is Dec 19th, 2016, evaluates as Dec 22nd, 2016 [[$SCHEDULE DATE (+3q)]] -> If schedule date is Dec 19th, 2016, evaluates as Sep 19th, 2017 [[$SCHEDULE DATE (+1m)]] -> If schedule date is Dec 19th, 2016, evaluates as Jan 19th, 2017 [[$SCHEDULE DATE (+1eom)]] -> If date is Dec 19th, 2016, 2016, evaluates as Dec 31st, 2016

User-defined Properties

A User-defined Property is a variable with any name and any character value, resolved to the exact text in the value. User-defined Properties can be associated with:

  • Remote Instance (RI)
  • OpCon Instance (OI)
  • Machines (Machine Instance (MI))
  • Schedules (Schedule Instance (SI))
  • Jobs (Job Instance (JI))
  • Source Schedules (Source Schedule Instance (SSI))
  • Source Jobs (Source Job Instance (SJI))

For more information, refer to Using Properties for Automation.

Configuration Options

SettingWhat It DoesDefaultNotes

FAQs

Q: What are the three types of properties in OpCon?

System Properties are read-only variables included with the OpCon installation. Managed System Properties are date- and time-related properties that require a format definition. User-defined Properties are custom name-value pairs that can be associated with instances, machines, schedules, and jobs.

Q: How do you use a property value in a job definition or event?

Tokenize the property name by enclosing it in double square brackets — for example, [[$SCHEDULE DATE]] — and use the token in job definition details, events, or Notification Manager notifications.

Q: Can a Managed System Property be offset to calculate a future or past date?

Yes. Use the syntax [[$XXXX(+nf)]] or [[$XXXX(-nf)]], where n is a numeric value and f is a unit such as d (day), m (month), wk (week), or wd (working day).

Glossary

SMAServMan (SMA Service Manager): Manages the starting, stopping, and restarting of all OpCon server programs. Monitors configured applications and restarts them automatically if they fail unexpectedly.

SMA Notify Handler: Processes notifications triggered by Machine, Schedule, and Job status changes. Can send emails, text messages, Windows Event Log entries, SNMP traps, and SPO notifications.

LSAM (Local Schedule Activity Monitor): An agent installed on a target platform that runs jobs in the native language of that platform and communicates results back to SAM via SMANetCom over TCP/IP.

Daily Tables: The OpCon database tables that hold the active, date-specific instances of schedules and jobs built for execution. Changes to daily tables affect only the current day's automation.

Frequency: A set of rules that defines when a job or schedule is eligible to run, based on calendar rules, day-of-week settings, period offsets, and other timing criteria.

Threshold: A numeric variable stored in the OpCon database used to control job execution. Jobs can be made dependent on threshold values, and OpCon events can update threshold values at runtime.

Department: An organizational grouping in OpCon used to assign jobs to logical divisions. User roles can be scoped to specific departments, controlling which jobs a user can manage.

OpCon Event: A command sent to OpCon that triggers an automated action, such as adding a job to a schedule, updating a property value, sending a notification, or changing a job or schedule status.