Creating a Sub-folder
This procedure describes how to create a sub-folder in a Workspace A working area in the Planning domain where you define and edit new jobs and SMART folders.. Sub-folders and jobs inherit the attributes that you define at the SMART folder level. You can also create a sub-folder with the ctmdefsubfolder utility.
You can only create a sub-folder in a SMART folder.
Begin
-
From the Center Pane Toolbar, click Add Job and from the drop-down list, drag and drop a Folder into the Workspace.
The Create New Folder pane appears.
-
From the Folder Type drop-down list, select SMART folder and click Create.
A SMART folder appears in the Workspace. -
From the Add Job drop-down list, drag and drop another folder into the SMART folder you just created.
A sub-folder appears inside the SMART folder you just created. -
From the General tab in the right pane, define one or more of the following properties:
-
General: Defines the sub-folder general attributes, as described in Sub-folder General Attributes.
-
Scheduling: Defines the sub-folder scheduling attributes, as described in Sub-folder Scheduling Attributes.
-
Prerequisites: Defines the prerequisites The part of the job definition that controls the flow of your jobs, such as an event that controls flow sequence or a resource that controls load balancing. that must be met before the sub-folder executes, as described in Prerequisites.
-
Actions: Defines the actions that Control-M performs after the sub-folder executes, as described in Actions.
-
Sub-folder General Attributes
The following table describes the sub-folder general attributes in the General tab in the right pane.
Attribute |
Description |
---|---|
Folder Type |
Defines the folder type as a sub-folder. |
Folder Name |
Defines the name of the folder. Rules:
|
Description |
Defines a free-text description of the sub-folder. Rules:
|
Reference |
Defines the sub-folder as a reference sub-folder, as described in Reference Sub-folder. You cannot reference a sub-folder that contains jobs. |
Reference Path |
Defines the full pathname for the SMART folder or job that is referenced, as follows: <Folder_Name>/<Job_Name>
Rules:
|
Server |
Defines the name of the Server that processes the sub-folder. |
Run As |
Defines the username with the authorization to execute jobs in the sub-folder. Rules:
|
Parent Folder |
Defines the name of the folder where the sub-folder is nested. |
Application |
Defines a descriptive name for related job groups. The jobs in these groups do not have to run at the same time. Rules:
|
Sub-application |
Defines a logical name for the Sub-application. Rules:
|
Variables |
Determines variable types, names, and values, as described in Variables. Rules:
Control-M recognizes fields that you define with %% as variables A memory location with a name and value that you can reference in your job processing definitions, which Control-M resolves for the current job execution.. |
Created By |
Defines the Control-M user who created the sub-folder. Not relevant for z/OS folders. Rules:
|
Documentation |
Defines the location of the folder documentation. |
Type |
Determines whether the documentation for the sub-folder is in a file or URL, as follows:
|
Priority |
Determines the order that Control-M processes jobs. A higher priority forces Control-M to reserve resources from the Resource Pool A type of quantifiable resource, which represents the total amount of resources from a physical or logical device that a job can access. to ensure that the job is submitted as soon as possible. |
Reference Sub-folder
A reference sub-folder is an empty sub-folder that points to another SMART folder or job and enables you to run one or more of these entities when you run the reference sub-folder. This eliminates the need to replicate and manage defined SMART folders and jobs.
An organization has four departments, Accounts, Business, Catering, and Development. Each department runs their own, unique workflows. However, Accounts uses a SMART folder, called Billing, which uses a series of event-dependent jobs that the remaining departments also rely on. The Business, Catering, and Development departments create reference sub-folders in their Workspaces that run the referenced sub-folder Billing in the Accounts workflow to run the same jobs they would otherwise need to manually replicate.
Entities that are defined in referenced SMART folders or jobs are added to reference sub-folders as follows:
-
Variables
-
Variables that do not exist in the reference sub-folder are added.
-
Variables in the reference sub-folder are resolved instead of identically named variables in the referenced SMART folder.
-
-
If-Actions
-
Referenced SMART folder If-Actions execute before reference sub-folder If-Actions.
-
If-Actions that are defined in a referenced job are not added to the reference sub-folder, and remain in the job.
-
-
Lock Resources
-
Lock Resources that do not exist in the reference sub-folder are added.
-
Lock Resources in the reference sub-folder are used instead of identically named Lock Resources in the referenced SMART folder.
-
Lock Resources that are defined in a referenced job are not added to the reference sub-folder.
-
-
Notifications
-
Notifications that are defined in a referenced SMART folder are added to the reference sub-folder.
-
Notifications that are defined in a referenced job are not added to the reference sub-folder.
-
-
The defined values of the documentation fields (Type, Doc Path, Doc File), and Priority, Description, Application, and Sub-application in a referenced SMART folder or job are added into the reference sub-folder during the run process. If no values are defined in the reference sub-folder, Control-M uses the values defined in the referenced SMART folder and job.
During the run process the schedule and event definitions of the referenced SMART folder or jobs are ignored and the reference sub-folder definitions are used.
If you make changes to a referenced SMART folder or job that is being referenced by other sub-folders in other workflows and you want to view the entities that are affected by this change, you can filter the sub-folders that reference this entity in Folders and Jobs in the Planning domain.
Creating a Reference Sub-folder
This procedure describes how to create a reference a sub-folder, which enables you to replicate and run (reference) a SMART folder or job from a different folder, without the need to manually replicate and manage it.
Begin
-
Create a new sub-folder where you want to run a SMART folder or job that is defined in a different folder in your Workspace, as described in Creating a Sub-folder.
-
In the job definitions of the new sub-folder, select the Reference checkbox.
The Reference Path field appears.
-
In the Reference Path field, type the full pathname of the SMART folder or job to reference, as follows:
<SMART_Folder_Name>/<Job_Name>
The following appears inside the reference sub-folder:
Referenced <Folder or Job>:
<SMART_Folder_Name or Job_Name>
The My Boutique store contains a clothing and shoes department. Two reference sub-folders, Clothing_Department and Shoes_Department, are created to bill customers with the Invoice job defined in the Billing SMART Folder, as appears in the following image:
The following appears in the Viewpoint when the jobs execute:
-
(Optional) To display defined referenced job attributes in the reference sub-folder in the Viewpoint in the Monitoring domain, do the following:
-
Add one or more referenced job attribute variables to the reference sub-folder, as described in Adding Variables and Referenced Job Attribute Variables.
-
In one or more job attribute fields in the definitions pane of the referenced job or jobs, type REF__ (REF and two _) where you want the job attribute to appear, as follows:
-
REF__ <Referenced Attribute>: The referenced job attribute variable value appears before the job attribute in the reference sub-folder in the Monitoring domain.
-
<Referenced Attribute> REF__: The referenced job attribute variable value appears after the job attribute in the reference sub-folder in the Monitoring domain.
-
REF__: Only the referenced job attribute variable value appears in the reference sub-folder in the Monitoring domain.
-
-
If the referenced job attribute is the job name, you must revise the Reference Path in the reference sub-folders to match the new job name, for example—Billing/REF__ Invoice.
Job-name referenced job attribute variables (%%REF_NAME) are added to the Clothing_Department and Shoes_Department reference sub-folders, and assigned the respective values Clothing and Shoes. The referenced job name is changed from Invoice to REF__ Invoice, as appears in the following image:
The following appears in the Viewpoint when the jobs execute:
-
Referenced Job Attribute Variables
Referenced Job Attribute |
Variable Name |
Variable Value Description |
---|---|---|
Job Name |
REF_NAME |
Defines the names of the referenced jobs that contain REF__ in their Job Name fields, as described in Job General Attributes. |
Description |
REF_DESCRIPTION |
Defines the descriptions of the referenced jobs that contain REF__ in their Description fields, as described in Job General Attributes . |
Run As |
REF_RUN_AS |
Defines the Run as User in the referenced jobs that contain REF__ in their Run As fields. |
Application |
REF_APPLICATION |
Defines the Application name in the referenced jobs that contain REF__ in their Application fields, as described in Job General Attributes. |
Sub-application |
REF_SUB_APPL |
Defines the Sub-application name in the referenced jobs that contain REF__ in their Sub-application fields, as described in Job General Attributes. |
Host/Host Group |
REF_HOST_GROUP |
Defines the name of the Hosts or Host Groups in the referenced jobs that contain REF__ in their Host/Host Group fields, as described in Job General Attributes. You cannot use this variable if a Site Standard rule forces Control-M to validate the <attribute according to topology. |