{"id":15003,"date":"2020-11-02T12:46:51","date_gmt":"2020-11-02T11:46:51","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/"},"modified":"2020-11-02T12:46:51","modified_gmt":"2020-11-02T11:46:51","slug":"control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/","title":{"rendered":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>During my various tasks at work , it was sometimes and for many reasons , asked by users to have more precisions in jobs notifications sent by mail.<br \/>\nFirst of all, displaying the jobname , and why not the application name related and also the end of execution,without having to consult an eventual attached output.<br \/>\n<u>Question<\/u><br \/>\nHow can we define a job to send such information ( especially end time with hours minutes and seconds display in a more explicit way )?<br \/>\nExample<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38034\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\" alt=\"\" width=\"854\" height=\"205\" \/><\/a><br \/>\nWe see that we have no concrete information except the order id,and when the customer is not a user of controlm it can be not enough.We see for example the time format which is not really adapted.<br \/>\nThe request was to have a notification format with HOUR , MINUTES and SECONDS in order to be more readable.<br \/>\n<u>Solution<\/u><br \/>\nControl-M can use variable inside the jobs, so we will use this method to display the information needed in our mail.<\/p>\n<h2>Using Control-M system variables<\/h2>\n<p>Variables usage on Control-M :<br \/>\nAll variables are identified by the %% prefix. If %% is included in the value for a job processing parameter, Control\u2011M assumes that it is referring to a variable or function.<br \/>\nTo manage jobname and application name , we will use Control-M system variable such as %%JOBNAME and %%APPLIC<\/p>\n<h2><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/HHMMSS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40544\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/HHMMSS.png\" alt=\"\" width=\"834\" height=\"242\" \/><\/a><\/h2>\n<p>System variable list are available on BMC\u2019s site or on your Control-M GUI client.<\/p>\n<h2>Using local variable<\/h2>\n<p>Define in the job, in the <em>general<\/em> part, the variable corresponding, with the inputs below:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38019\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1.png\" alt=\"\" width=\"851\" height=\"465\" \/><\/a><br \/>\nFill the variable name and the value:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38020\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF2.png\" alt=\"\" width=\"851\" height=\"485\" \/><\/a><br \/>\nFill the variable parts with the value to be used in order to display hours minutes and seconds as you can see below by choosing <em>&#8220;local&#8221;<\/em> type:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38022\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF3.png\" alt=\"\" width=\"839\" height=\"428\" \/><\/a><br \/>\nNote:<br \/>\n<strong>%%SUBSTR function definition :<br \/>\n<\/strong><br \/>\n%%<strong>SUBSTR<\/strong> is a string function that is used to extract a substring from within a larger string.<br \/>\nThis function has the following format:<br \/>\n<em>result<\/em>=%%SUBSTR <em>variable<\/em> <em>startpos<\/em> <em>length<\/em><\/p>\n<ul>\n<li><em>result: <\/em>Any user variable or job submission variable.<\/li>\n<li><em>variable: <\/em>Any variable.<\/li>\n<li><em>startpos: <\/em>Numeric literal or variable that indicates the first position in the original string from which to extract the substring. The first character is position 1<\/li>\n<\/ul>\n<p><em>length: <\/em>A number or variable, indicating the length of the substring to extract\u00a0 ( see Control M help on GUI )<\/p>\n<p>Now we can also\u00a0 define <strong>Alert windows<\/strong> to have a shout on the Global Alert Server (GAS) in case of good completion of the job<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38023\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF1.png\" alt=\"\" width=\"839\" height=\"456\" \/><\/a><br \/>\nDefine in the job\u00a0 also the on-do action to send the mail in case of failure<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38047\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF2-1.png\" alt=\"\" width=\"907\" height=\"411\" \/><\/a><br \/>\nNotice that you can also use the defined variables in the jobs command<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38025\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF3.png\" alt=\"\" width=\"900\" height=\"417\" \/><\/a><br \/>\nOnce the job defined with the correct variable , Control-M will read them and display them in the notification<br \/>\nLet\u2019s see the jobs log<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38028\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF5.png\" alt=\"\" width=\"902\" height=\"430\" \/><\/a><br \/>\nHere, we have also defined\u00a0 the notification sent to the GAS as we have defined it to do a shout when ended ok by the same way<br \/>\n<strong><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38041\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF10.png\" alt=\"\" width=\"874\" height=\"376\" \/><\/a><\/strong><br \/>\nWhen we check the GAS the message is displayed and the variable applied as well<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38029\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF6.png\" alt=\"\" width=\"914\" height=\"323\" \/><\/a><br \/>\nThis kind of message is more explicit and can be helpful for example for your monitoring team when Control M is associated with another tool like Patrol,Truesight or Nagios,Centreon&#8230;<br \/>\nNow we can do a mailing test and check that date and time are well displayed<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38031\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF8.png\" alt=\"\" width=\"944\" height=\"447\" \/><\/a><br \/>\nYou can also make a simple mail notification which can be an alternative of <a href=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-shout-destination-tables-graphic-and-cmd-mode\/\">CTMSYS<\/a>,also you can put more information in the message,but you have to enter your mail list ( unless using a libmemsym but we will see it\u00a0 later ,maybe in a blog dedicated to the variable usage and the libmemsym usage)<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38030\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF7.png\" alt=\"\" width=\"942\" height=\"446\" \/><\/a><br \/>\nIf the job fails, a mail will be sent to the address defined in Shout destination table (see <a href=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-shout-destination-tables-graphic-and-cmd-mode\/\">one of my previous posts<\/a> about this tool &#x1f609;)<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38032\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/NOTIF9.png\" alt=\"\" width=\"934\" height=\"109\" \/><\/a><br \/>\nSo, to sum up , the job was defined to send a email in case of failure with jobname application related and time in format HH MIN SEC<br \/>\nHe was also defined to send a message in the windows alert when it is ended OK<br \/>\nYou can of course adapt the message characters between the variables you have defined for example HH\/MIN\/SEC or HH-MIN-SEC, and also call other variables<br \/>\nAlternative options<\/p>\n<h2>Using global variables<\/h2>\n<p>You can decide to extend theses variables to all jobs defined on your Control M Servers, by choosing global instead of local in your job&#8217;s definition.<br \/>\nNotice that the \\ param is added to indicate that it is global to the Control-M\/Server ( jevery job denied can use these variables)<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib4libmemglob.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-39967\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib4libmemglob.png\" alt=\"\" width=\"300\" height=\"142\" \/><\/a><\/p>\n<h2>Using LIBMEMSYM and POOLSYM method<\/h2>\n<p>Here is the BMC definition of LIBMEMSYM and POOLSYM variable<br \/>\nThe %%LIBMEMSYM variable can be used in the Variable Assignment or Do Variable parameters to indicate a text file containing a list of Variable assignments. This variable enables you to create a central file containing Variable assignment statements that can be read by many job processing definitions.<br \/>\nYou can also use the %%POOLSYM variable to call variables from a pool. %%POOLSYM is relevant only to a Control-M distributed system.<br \/>\nNOTE: Multiple LIBMEMSYM statements can be included in a single job processing definition. In this way you can maintain groups of local or global variables that are relevant to certain jobs and allow more than one such group to be applied to a job. However, if a variable is defined in more than one list, the last list defined overrides previous lists.<\/p>\n<h3>Using LIBMEMSYM<\/h3>\n<p>Instead of adding every variable in the job, you can store them in a LIBMEMSYM file and call them.<br \/>\nThis have the advantage to be used in other jobs juste by adding one entry in the job under variable part ( the LIBMEMSYM path )<br \/>\nThe format for the %%LIBMEMSYM variable:<br \/>\n%%LIBMEMSYM=<em>path_name<\/em><br \/>\n<em>path_name<\/em> is the full (case sensitive) path name of a text file containing Variable assignment statements. This file must be accessible to Control\u2011M. The file must contain a single assignment on each line.<\/p>\n<ul>\n<li>For the Variable Assignment parameter, the specified file is accessed at the time the job is submitted for execution by Control\u2011M.<\/li>\n<li>If a <strong>%%LIBMEMSYM<\/strong> statement is specified using the Do\u00a0Variable parameter, local variables defined in the specified file are relevant only during a rerun of the job if and when the On Statement\/Code conditions are satisfied.<\/li>\n<\/ul>\n<p>Creation of the Libmemsym ion the Control M server:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39969\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib1-1.png\" alt=\"\" width=\"641\" height=\"158\" \/><\/a><\/p>\n<h3><u>Definition in the job<\/u><\/h3>\n<p>Adding the path of the LIBMEMSYM you will use :<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39965\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib2.png\" alt=\"\" width=\"635\" height=\"305\" \/><\/a><\/p>\n<h3>Using Named pools (POOLSYM)<\/h3>\n<p>You can defined a pool and call\u00a0 the variables inside.<br \/>\nThe format for the <strong>%%POOLSYM <\/strong>variable:<br \/>\n%%POOLSYM=&lt;<em>poolname&gt;<\/em><br \/>\n<em>poolname<\/em> is the name of the pool containing the pool variable<br \/>\nFew commands to define a pool and set variable inside :<\/p>\n<table width=\"552\">\n<tbody>\n<tr>\n<td width=\"85\">LOAD<\/td>\n<td width=\"360\">Loads variable values from a specified file to pool. The file name is the path name of a text file containing the variable assignment statements.<br \/>\nThis file must be accessible to Control\u2011M. The file must contain a single assignment on each line.<br \/>\n<strong>EXAMPLE:<\/strong><br \/>\nctmvar -POOL load -POOLNAME &lt;pool name&gt; &#8211; FROM &lt;file name&gt;<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">SETVAR<\/td>\n<td width=\"360\">Defines a new or updates an existing variable in the specified pool.<br \/>\nIf the variable does not exist in the data center, it is created.<br \/>\nIf the variable already exists, it is updated with the specified value.<br \/>\n<strong>EXAMPLE:<\/strong><br \/>\nctmvar -POOL setvar -POOLNAME &lt;pool name&gt; -VAR &lt;variable name&gt; -VALUE &lt;variable value&gt;<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">DELETE<\/td>\n<td width=\"360\">Deletes a named pool from the data center.<br \/>\n<strong>EXAMPLE:<\/strong><br \/>\nctmvar &#8211; POOL &#8211; delete -POOLNAME &lt;pool name&gt;<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">LIST<\/td>\n<td width=\"360\">Lists all named pools in the data center.<br \/>\n<strong>EXAMPLE:<\/strong><br \/>\nctmvar -POOL list<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">VIEW<\/td>\n<td width=\"360\">Displays the list of variables in the named pool.<br \/>\n<strong>EXAMPLE: <\/strong><br \/>\nctmvar &#8211; POOL &#8211; view -POOLNAME &lt;pool name&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Adding the variablle <em>HH MM SS<\/em> in the pool named <em>POOL_HHMMSS :<\/em><\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">CTMSRVCENTOS% ctmvar -pool setvar -POOLNAME POOL_HHMMSS -VAR MM -VALUE \"%%SUBSTR %%TIME 3 2\"\nPOOL SETVAR performed successfully.\nPOOL SETVAR performed successfully.\nCTMSRVCENTOS% ctmvar -pool setvar -POOLNAME POOL_HHMMSS -VAR SS -VALUE \"%%SUBSTR %%TIME 5 2\"\nPOOL SETVAR performed successfully.\nCTMSRVCENTOS% ctmvar -pool setvar -POOLNAME POOL_HHMMSS -VAR HH -VALUE \"%%SUBSTR %%TIME 1 2\"\nPOOL SETVAR performed successfully.\nCTMSRVCENTOS% ctmvar -pool setvar -POOLNAME POOL_HHMMSS -VAR HOUR -VALUE \"%%TIME\"\nPOOL SETVAR performed successfully.\nUse ctmvar utility  to also list and view the POOLS you have created:<\/pre>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39966\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib3.png\" alt=\"\" width=\"750\" height=\"215\" \/><\/a><\/p>\n<h3><u>Definition in the job<\/u><\/h3>\n<h2><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib5-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39971\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF_lib5-1.png\" alt=\"\" width=\"739\" height=\"456\" \/><\/a><\/h2>\n<h2>Result<\/h2>\n<p>This two other methods may have the same result as the first one ( locally defined on only one job ), but can be assigned to each job using these variables <strong>%%LIBMEMSYM<\/strong> <strong>%%POOLSYM<\/strong><\/p>\n<h2>Conclusion<\/h2>\n<p>You know now how to make a more readable notification to help your team to be more reactive or to be more explicit for a non Control M user.<br \/>\nTake a look on BMC documentation and site to have more ways to use notifications and don\u2019t forget to check what\u2019s new on dbi\u2019s blogs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction During my various tasks at work , it was sometimes and for many reasons , asked by users to have more precisions in jobs notifications sent by mail. First of all, displaying the jobname , and why not the application name related and also the end of execution,without having to consult an eventual attached [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":15004,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[],"type_dbi":[],"class_list":["post-15003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-administration-monitoring"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job\" \/>\n<meta property=\"og:description\" content=\"Introduction During my various tasks at work , it was sometimes and for many reasons , asked by users to have more precisions in jobs notifications sent by mail. First of all, displaying the jobname , and why not the application name related and also the end of execution,without having to consult an eventual attached [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-02T11:46:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1693\" \/>\n\t<meta property=\"og:image:height\" content=\"408\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job\",\"datePublished\":\"2020-11-02T11:46:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\"},\"wordCount\":1396,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\",\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\",\"name\":\"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\",\"datePublished\":\"2020-11-02T11:46:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png\",\"width\":1693,\"height\":408},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/","og_locale":"en_US","og_type":"article","og_title":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job","og_description":"Introduction During my various tasks at work , it was sometimes and for many reasons , asked by users to have more precisions in jobs notifications sent by mail. First of all, displaying the jobname , and why not the application name related and also the end of execution,without having to consult an eventual attached [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/","og_site_name":"dbi Blog","article_published_time":"2020-11-02T11:46:51+00:00","og_image":[{"width":1693,"height":408,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png","type":"image\/png"}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job","datePublished":"2020-11-02T11:46:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/"},"wordCount":1396,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png","articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/","url":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/","name":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png","datePublished":"2020-11-02T11:46:51+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/DEFNOTIF1_1.png","width":1693,"height":408},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-send-mail-and-alert-window-notification-with-hhmmss-format-with-a-job\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Control M\/ EM Send Mail and Alert Window notification with HHMMSS format with a job"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=15003"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15003\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/15004"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=15003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=15003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=15003"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=15003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}