Data Input Message Elements
Theme: Configure
Who Is It For? System Administrator, Automation Engineer
What Is It?
Data Input Message Elements define the XML structure used in SMA Dynamic Data Input (SMADDI) files. Each element either stores data directly in the OpCon database or groups logically related elements within the message hierarchy. Examples show the nested structure required for valid input files.
General Message Elements
Required for all SMADDI input files. Structure:
<msg>
<msgtype></msgtype>
....all elements required for msgtype
</msg>
<msg></msg>
Contains a complete transaction for the SMADDI stored procedures to commit to the OpCon database. SMADDI does not limit the number of <msg> elements per input file.
- Requirements: Required for all messages
- Valid Values: Any valid DDI text
<msgtype></msgtype>
Describes the type of data expected for the <msg>. The SMADDI service uses this to ensure the correct child elements are included. Only one <msgtype> element is allowed per <msg>.
- Requirements: Required for <msg>
- Valid Values: A supported SMADDI Message Type. Refer to SMADDI Message Types
add_caldate and del_caldate Element Structures
Use add_caldate to add dates to one or more OpCon calendars. If the calendar does not exist, it will be created unless the name indicates a schedule holiday calendar (HC:ScheduleName) — those may not be created with this message. Use del_caldate to delete dates from calendars. For information on creating data input files, refer to Creating Data Input Files.
add_caldate structure:
<msg>
��<msgtype>add_caldate</msgtype>
��<calinfo>
����<calname> </calname>
����<caldoc> </caldoc>
����<caldate> </caldate>
��</calinfo>
</msg>
del_caldate structure:
<msg>
��<msgtype>del_caldate</msgtype>
��<calinfo>
����<calname> </calname>
����<caldate> </caldate>
��</calinfo>
</msg>
Element Definitions
<calinfo></calinfo>
Contains child elements to add/delete days on a single OpCon calendar.
- Requirements: Required for <msgtype> add_caldate
- Valid Values: Any valid <calinfo> child element
<calname></calname>
Defines the name of the calendar to which dates will be added/deleted.
- Requirements: Required for <calinfo>
- Valid Values: Alphanumeric calendar name (existing or new). Maximum 50 characters. Invalid characters:
' ( ) , = ; |. One per <calinfo>
<caldoc></caldoc>
Defines the purpose of the calendar.
- Requirements: Optional for <calinfo>
- Valid Values: Maximum 4000 characters. One per <calinfo>
<caldate></caldate>
Defines a date to add/delete on the target calendar.
- Requirements: Required for <calinfo>
- Valid Values: Short date in the format recognized by the database server's Regional Settings (e.g., 7/7/2008). Multiple <caldate> elements allowed per <calinfo>
new_schedule Element Structure
Use new_schedule to add schedules to Master tables. For information on creating data input files, refer to Creating Data Input Files.
When using <documentation> tags for new_schedules, the <docfrqname> element CANNOT be used — DDI throws an error.
<msg>
��<msgtype>new_schedule</msgtype>
����<skdinfo>
�������<skdname></skdname>
�������<skdstart></skdstart>
�������<skdwkdays></skdwkdays>
�������<calusemaster></calusemaster>
�������<concurrskdflg></concurrskdflg>
�������<multi_inst_skd></multi_inst_skd>
�������<subskd></subskd>
�������<autobldadv></autobldadv>
�������<autoblddays></autoblddays>
�������<buildovr></buildovr>
�������<buildhld></buildhld>
�������<skdautobuildtime></skdautobuildtime>
�������<autodeldays></autodeldays>
�������<addlholday></addlholday>
�������<workday_sun></workday_sun>
�������<workday_mon></workday_mon>
�������<workday_tue></workday_tue>
�������<workday_wed></workday_wed>
�������<workday_thu></workday_thu>
�������<workday_fri></workday_fri>
�������<workday_sat></workday_sat>
�������<frq>
����������....refer to Data Input Message Elements
�������</frq>
�������<documentation>
����������....refer to <documentation> Documentation Element Structure
�������</documentation>
�������<ppevtdets></ppevtdets>
�������<skd_bld4machgrp></skd_bld4machgrp>
�������<skd_inst_def>
����������<skd_predef_prop></skd_predef_prop>
�������</skd_inst_def>
�������<skdinst>
����������<skdinstancename></skdinstancename>
����������<named_skd_inst_def>
������������<named_skd_predef_prop></namded_skd_predef_prop>
����������<named_skd_inst_def>
����������<jobpat>
������������<jobpatname></jobpatname>
������������<exception></exception>
����������</jobpat>
�������</skdinst>
����</skdinfo>
</msg>
Element Definitions
<skdinfo></skdinfo>
Contains child elements to create a single OpCon schedule.
- Requirements: Required for <msgtype> new_schedule
- Valid Values: Any valid <skdinfo> child element
<skdname></skdname>
Defines the schedule name.
- Requirements: Required for <skdinfo>
- EM field label: Name
- Valid Values: Alphanumeric schedule name not existing in OpCon. Invalid characters: `< > & ' " | , ; % ( ) { } [ ] = \ ! ~ ``. Maximum 40 characters. One per <skdinfo>
<skdstart></skdstart>
Defines the schedule's start time.
- Requirements: Optional for <skdinfo>; defaults to 00:00. One per <skdinfo>
- EM field label: Start Time
- Valid Values: Numerical time in hh:mm format; range 00:00–23:59
<skdwkdays></skdwkdays>
Specifies the number of workdays per week.
- Requirements: Optional for <skdinfo>
- EM field label: Workdays per Week
- Valid Values: 5, 6, or 7. One per <skdinfo>
<calusemaster></calusemaster>
Indicates whether the schedule's calendar uses the Master Holiday Calendar.
- Requirements: Optional for <skdinfo>
- EM field label: Use Master Holiday
- Valid Values: True or False; defaults to True. One per <skdinfo>
<concurrskdflg></concurrskdflg>
Indicates conflict with other days.
- Requirements: Optional for <skdinfo>. One per <skdinfo>
- EM field label: Conflict with other days
- Valid Values: True or False
<multi_inst_skd></multi_inst_skd>
Indicates if the schedule is multi-instance capable.
- Requirements: Optional for <skdinfo>
- EM field label: Multi-Instance
- Valid Values: True or False
<subskd></subskd>
Indicates the schedule is allowed to be a SubSchedule.
- Requirements: Optional for <skdinfo>
- EM field label: SubSchedule
- Valid Values: True or False
<autobldadv></autobldadv>
Number of days in advance to start building.
- Requirements: Optional for <skdinfo>
- EM field label: days in advance for
- Valid Values: 1–99 days
<autoblddays></autoblddays>
Number of days to build consecutively.
- Requirements: Optional for <skdinfo>
- EM field label: days
- Valid Values: 1–99 days
<buildovr></buildovr>
If True, overwrites the schedule in the daily tables when built again (only if schedule is complete or does not exist).
- Requirements: Optional for <skdinfo>
- EM field label: Overwrite Existing
- Valid Values: True or False
<buildhld></buildhld>
If True, builds the schedule with status "On Hold." The SAM will not process it until released manually or via an OpCon event.
- Requirements: Optional for <skdinfo>
- EM field label: Build On Hold
- Valid Values: True or False
<skdautobuildtime></skdautobuildtime>
Clock time to build the schedule. The SAM uses this to calculate the start offset for the SMA_SKD_BUILD job.
- Requirements: Optional for <skdinfo>; defaults to 00:00. One per <skdinfo>
- EM field label: Auto Build Time
- Valid Values: hh:mm format; range 00:00–23:59
<autodeldays></autodeldays>
Days in the past from the current date after which to auto-delete the schedule if complete.
- Requirements: Optional for <skdinfo>
- EM field label: days ago
- Valid Values: 1–99 days
<addlholday></addlholday>
Name of a calendar used to determine additional holidays beyond the master and schedule holiday calendars.
- Requirements: Optional for <skdinfo>
- EM field label: Additional Holidays
- Valid Values: A valid user-defined calendar in the database
<workday_sun></workday_sun>
Defines Sunday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Sunday
- Valid Values: True or False
<workday_mon></workday_mon>
Defines Monday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Monday
- Valid Values: True or False
<workday_tue></workday_tue>
Defines Tuesday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Tuesday
- Valid Values: True or False
<workday_wed></workday_wed>
Defines Wednesday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Wednesday
- Valid Values: True or False
<workday_thu></workday_thu>
Defines Thursday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Thursday
- Valid Values: True or False
<workday_fri></workday_fri>
Defines Friday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Friday
- Valid Values: True or False
<workday_sat></workday_sat>
Defines Saturday as a workday.
- Requirements: Optional for <skdinfo>
- EM field label: Saturday
- Valid Values: True or False
<ppevtdets></ppevtdets>
Defines the OpCon event to submit when the schedule completes. SMADDI does not fail the import for an invalid event. Any number of <ppevtdets> elements can be defined.
- Requirements: Optional for <skdinfo>
- Valid Values: Any valid OpCon event. Refer to OpCon Events
<skd_bld4machgrp></skd_bld4machgrp>
Defines the Machine Group Name for schedule instances. Valid only when Multi-Instance is True.
- Requirements: Optional for <skdinfo>
- EM field label: Build an instance for each machine in Machine Group
- Valid Values: Any valid Machine Group
<skd_inst_def></skd_inst_def>
Contains child elements to define property strings as schedule instances.
- Requirements: Optional for <skdinfo>
- Valid Values: (child element) <skd_predef_prop>
<skd_predef_prop></skd_predef_prop>
Defines a string of property definitions for a schedule instance.
- Requirements: Required for <skd_inst_def>
- EM field label: Define Property Values
- Valid Values: Format:
PName1=PValue1;PName2=PValue2...- PName must not contain:
' ( ) \ , = ; | - PValue must not contain a semicolon (;)
- If Multi-Instance is True and <skd_bld4machgrp> is not specified, multiple <skd_predef_prop> elements are allowed
- If Multi-Instance is True and <skd_bld4machgrp> is specified, <skd_predef_prop> is not allowed
- If Multi-Instance is False, only one <skd_predef_prop> is allowed
- PName must not contain:
<skdinst></skdinst>
Contains child elements to define each named schedule instance, associated properties, and exceptions. Valid only when Multi-Instance is True and neither <skd_inst_def> nor <skd_bld4machgrp> is specified.
- Requirements: Optional for <skdinfo>
- EM field label: Named Instance
<skdinstancename></skdinstancename>
Defines the name of a schedule instance.
- Requirements: Required for <skdinst>
- EM field label: Instances
- Valid Values: Alphanumeric instance name not existing in OpCon. Invalid characters:
~and`. Maximum 128 characters. Multiple per <skdinst>
<named_skd_inst_def></named_skd_inst_def>
Contains child elements to define property strings for a named schedule instance.
- Requirements: Optional for <skdinst>
- Valid Values: (child element) <named_skd_predef_prop>
<named_skd_predef_prop></named_skd_predef_prop>
Defines a property string for a named schedule instance.
- Requirements: Required for <named_skd_inst_def>
- EM field label: Properties
- Valid Values: Format:
PName1=PValue1. PName must not contain' ( ) \ , = ; |; PValue must not contain a semicolon
<jobpat></jobpat>
Contains child elements to define exceptions for a named schedule instance. Can only be defined by users in the ocadm role.
- Requirements: Optional for <skdinst>
- EM field label: Exceptions
- Valid Values: (child elements) <jobpatname>; <exception>
<jobpatname></jobpatname>
Defines the job pattern.
- Requirements: Required for <jobpat>
- EM field label: Job Patterns
- Valid Values: Maximum 128 alphanumeric characters, including asterisk wildcard (
*). Invalid characters:~and`
<exception></exception>
Contains the XML definition for an exception rule for a job pattern.
-
Requirements: Optional for <jobpatname>
-
EM field label: Exception Rules
-
Valid Values: XML-escaped syntax:
<exception><Exception><FieldCode>n</FieldCode>
<NewValue>x</NewValue><NewValueIsExpression>false</NewValueIsExpression><ToReplace>m</ToReplace></Exception></exception>-
Where n = Field code of the field to modify. Valid values (integer) include:
122 - Tags 1005 - User (Destination) 5008 - Job Description Name 904 - Department 1006 - Destination File 5009 - Job Description Library 905 - Access Code 1016 - Destination Machine 5010 - Batch Queue Name 907 - Primary Machine 3001 - User ID 5011 - Batch Queue Library 908 - Alternate Machine1 3003 - Command Line 5012 - Output Queue Name 909 - Alternate Machine2 3004 - Working Directory 5013 - Output Queue Library 910 - Alternate Machine3 3006 - Prerun Command Line 5022 - Call 911- Machine Group 3007 - Prerun Working Directory 6001 - Start Image 913 - Start Offset 3018 - Prerun Exit Code Operator 6002 - Parameters 914 - Start Offset Abs/Rel Indicator 3019 - Prerun Exit Code Value 6003 - Prerun 915 - Latest Start 5002 - User ID 6004 - User ID 916 - Latest Start Abs/Rel Indicator 5003 - JOBQ Priority 6005 - Group ID 933 - Job Build Status 5004 - Job Date 6007 Exit Operator 1001- Source Machine 5005 - Accounting Code 6008 - Exit Value 1003 - User (Source) 5006 - mCurrent Library 1004 - mSource File 5007 - mInit.Lib.List -
Where m = Substring in the current value to replace
- If field code is Job Build Status (933), valid values: "On Hold", "Released", or "To Be Skipped"
- For all other field codes, m cannot be a property expression. Valid values: empty string (""), fixed string ("abc"), or string with instance properties (
[[$this.Property]])
-
Where x = String value with which to replace m
- If field code is Job Build Status (933), valid values: "On Hold", "Released", "Cancelled", "To Be Skipped", "Do Not Schedule", or "Disable Build"
- For all other field codes, valid values: fixed string ("abc"), string with instance properties (
[[$this.Property]]), or a property expression ([[@current]] + ToOaTime("02:00"))
-
Where NewValueIsExpression indicates whether x is a property expression: true or false
-
The following is an example XML definition for the <exception> element:
<exception><Exception><FieldCode>3002</FieldCode>
<NewValue>$this.MyUser</NewValue>
<NewValueIsExpression>false</NewValueIsExpression>
<ToReplace></ToReplace></Exception></exception>
new_token and update_token Element Structures
Use new_token to add a new global property to Master tables. Use update_token to update an existing global property. For information on creating data input files, refer to Creating Data Input Files.
new_token structure:
<msg>
��<msgtype>new_token</msgtype>
��<tokeninfo>
����<tokendesc></tokendesc>
����<tokendoc></tokendoc>
����<tokenval></tokenval>
��</tokeninfo>
</msg>
update_token structure:
<msg>
��<msgtype>update_token</msgtype>
��<tokeninfo>
����<tokendesc></tokendesc>
����<tokenval></tokenval>
����<tokendoc></tokendoc>
��</tokeninfo>
</msg>
Element Definitions
<tokeninfo></tokeninfo>
Contains child elements to create a single Global Property.
- Requirements: Required for <msgtype> new_token
- Valid Values: Any valid <tokeninfo> child element
<tokendesc></tokendesc>
Specifies the name of the Global Property to create in OpCon.
- Requirements: Required for <tokeninfo>
- EM field label: Name
- Valid Values: Alphanumeric property name not existing in OpCon. Maximum 20 characters. One per <tokeninfo>
<tokendoc></tokendoc>
Specifies documentation for the property.
- Requirements: Optional for <tokeninfo>
- EM field label: Documentation
- Valid Values: Maximum 4000 characters. One per <tokeninfo>
<tokenval></tokenval>
Specifies the value assigned to the Global Property.
- Requirements: Required for <tokeninfo>
- EM field label: Value
- Valid Values: Maximum 77 alphanumeric characters. One per <tokeninfo>
new_variable and update_variable Element Structures
Use new_variable to add a threshold or resource to Master tables. Use update_variable to update an existing one. For information on creating data input files, refer to Creating Data Input Files.
new_variable structure:
<msg>
��<msgtype>new_variable</msgtype>
��<threshinfo>
����<threshdesc></threshdesc>
����<threshdoc></threshdoc>
����<threshval></threshval>
����<threshused></threshused>
����<threshstyle></threshstyle>
��</threshinfo>
</msg>
update_variable structure:
<msg>
��<msgtype>update_variable</msgtype>
��<threshinfo>
����<threshdesc></threshdesc>
����<threshdoc></threshdoc>
����<threshval></threshval>
����<threshused></threshused>
����<threshstyle></threshstyle>
��</threshinfo>
</msg>
Element Definitions
<threshinfo></threshinfo>
Contains child elements to create a single OpCon variable.
- Requirements: Required for <msgtype> new_variable
- Valid Values: Any valid <threshinfo> child element
<threshstyle></threshstyle>
Specifies whether the variable is treated as a threshold or a resource.
- Requirements: Optional for <threshinfo>
- Valid Values: Threshold or Resource. One per <threshinfo>
<threshdesc></threshdesc>
Specifies the name of the variable to create in OpCon.
- Requirements: Required for <threshinfo>
- EM field label: Name (Thresholds) / Resource Name (Resources)
- Valid Values: Alphanumeric threshold or resource name not existing in OpCon. Maximum 20 characters. One per <threshinfo>
<threshdoc></threshdoc>
Specifies documentation for the threshold or resource.
- Requirements: Optional for <threshinfo>
- EM field label: Documentation
- Valid Values: Maximum 4000 characters. One per <threshinfo>
<threshval></threshval>
- If <threshstyle> is Threshold: specifies the threshold value
- If <threshstyle> is Resource: specifies the maximum resources allowed
- Requirements: Required for <threshinfo>
- EM field label: Threshold (Thresholds) / Max Resources (Resources)
- Valid Values: Integer 0–2147483647. One per <threshinfo>
<threshused></threshused>
Specifies an initial value for resources in use when the variable is treated as a resource.
- Requirements: Optional for <threshinfo>
- EM field label: Resources In Use
- Valid Values: Integer 0–2147483647. One per <threshinfo>
new_master Element Structure
<msg>
�����<msgtype>new_master</msgtype>
�����<schedule>
�����<skdname></skdname>
�������<job>
���������<jname></jname>
���������<platform></platform>
���������<jobsubtype></jobsubtype>
���������<dname></dname>
���������<accd></accd>
���������<use_skdinstmach></use_skdinstmach>
���������<pmname></pmname>
���������<alt1></alt1>
���������<alt2></alt2>
���������<alt3></alt3>
���������<mgrp></mgrp>
���������<mgrpeach></mgrpeach>
���������<multi_inst_job></multi_inst_job>
���������<disable_bld></disable_bld>
���������<job_expr_dep></job_expr_dep>
���������<job_embed_script></job_embed_script>
���������<job_embed_script_type></job_embed_script_type>
���������<job_embed_script_ver></job_embed_script_ver>
���������<job_embed_script_runner></job_embed_script_runner>
���������<job_embed_script_args></job_embed_script_args>
���������<job_embed_script_hash></job_embed_script_hash>
���������<jobdata>
���������....refer to <jobdata> Platform-specific Elements
���������</jobdata>
���������<afc>
���������....refer to <afc> Advanced Failure Criteria Element Structure
���������</afc>
���������<frq>
���������....refer to new_master Frequency Element Structure
���������</frq>
���������<documentation>
���������....refer to <documentation> Documentation Element Structure
�� �������</documentation>
���������<predefined_property>
���������....refer to <predefined_property> Job Instance Property Element Structure
���������</predefined_property>
���������<jobudt>
���������....refer to <jobudt> Job User Defined Tags
���������</jobudt>
���������<ppevt>
���������....refer to Data Input Message Elements
���������</ppevt>
���������<ppvar>
���������.... refer to Data Input Message Elements
���������</ppvar>
���������<jpre>
���������.... refer to <jpre> Job Dependencies Element Structure
���������</jpre>
���������<vpre>
���������.... refer to Data Input Message Elements
���������</vpre>
�������</job>
�����</schedule>
</msg>
new_daily Element Structure
<msg>
�����<msgtype>new_daily</msgtype>
�����<schedule>
�����������<skddate></skddate>
�����������<skdname></skdname>