{"id":13593,"date":"2020-03-05T08:12:03","date_gmt":"2020-03-05T07:12:03","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/"},"modified":"2020-03-05T08:12:03","modified_gmt":"2020-03-05T07:12:03","slug":"how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/","title":{"rendered":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once"},"content":{"rendered":"<p><H2>Introduction<\/H2><\/p>\n<p>We had a request to automate a kill of some executing jobs in AJF at specific date and time.<\/p>\n<p>For example:<br \/>\nA Control-M job is running a script all day, in order other programs can connect to it, but the script has to be stopped at a specific time.<\/p>\n<p>There are several ways to manage that, such as:<\/p>\n<ul style=\"list-style-type: circle\">\n<li>using in Action Tab, use Notifications before job completion, then run a Shout to a script which kills the Job with its %%ORDERID as parameter:<\/li>\n<li>Run a separate job which runs a script which does a Unix command Kill -9 of the script<\/li>\n<li>This new way which is also to run a separate job which runs a script which uses the native kill feature of Control-M (ctmkill utility), but it can be used to Kill one or several jobs at once, based on the list of Jobs name<br \/>\n=&gt; This last method will be described here<\/li>\n<\/ul>\n<p>For that we need<\/p>\n<ul style=\"list-style-type: circle\">\n<li>a script (in Unix) which will run the ctmkill utility for 1 or several Job names which are in Executing mode<\/li>\n<li>A Control-M job which launches the script, passing as parameter the list of jobs to be killed<br \/>\n \tThat Job is scheduled at the wished date &amp; time<\/li>\n<li>In some contexts, we need to pay attention on some prerequisites (Job name, type of agent, Control-M security)<\/li>\n<\/ul>\n<p><H2>Job definition<\/H2><\/p>\n<p>For this use case, there are Jobs:<\/p>\n<ol>\n<li>Job_Killer<\/li>\n<p>\t<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_Kill_Script.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_Kill_Script.jpg\" alt=\"\" width=\"526\" height=\"275\" class=\"alignnone size-full wp-image-37928\" \/><\/a><br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_var_list_Job_To_Kill.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_var_list_Job_To_Kill.jpg\" alt=\"\" width=\"434\" height=\"164\" class=\"alignnone size-full wp-image-37930\" \/><\/a><br \/>\nDefine in PARM# list of Jobs name to Kill<\/p>\n<li> Two Jobs to kill : Job_To_Kill_1 and Job_To_Kill_2<\/li>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_to_Kill_Cmd.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Job_to_Kill_Cmd.jpg\" alt=\"\" width=\"376\" height=\"275\" class=\"alignnone size-full wp-image-37929\" \/><\/a><\/p>\n<li>Running Jobs in AJF<\/li>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Running_Jobs_In_Ajf.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/Running_Jobs_In_Ajf.jpg\" alt=\"\" width=\"254\" height=\"656\" class=\"alignnone size-full wp-image-37931\" \/><\/a>\n<\/ol>\n<p><H2>Unix script<\/H2><\/p>\n<p>$HOME\/My_Scripts\/kill_job_by_jobname.sh<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n# Description: kill one or several Control-M executing Jobs by using ctmpsm and ctmkill Control-M utilities\n#  Parameter: 1 or several Job name from PARAM#\n#\necho The number of daemon to kill is $#\necho jobname $1\nif [ -z \"$1\" ]\nthen\n   echo A jobname is required as first parameter\n   exit 101\nelse\n  echo Jobname : $1\nfi\n\n# for each parameter\nuntil [ $# = 0 ]\ndo\n  echo Parameter value : $1\n### When using the ctmpsm utility of an Control-M agent, the separator is \u201cpipe |\u201d for awk\n  export OrderId=`ctmpsm -LISTALL | grep $1 | grep Executin |  awk -F\" \" '{print $1}'`\n#\n### When using the ctmpsm utility of the Control-M server, the separator is \u201cspace |\u201d for awk\n#  export OrderId=`ctmpsm -LISTALL | grep $1 | grep Executin |  awk -F\"|\" '{print $1}'`\n  echo The orderId for $1 job is : $OrderId\n\n  # Get the number of order id in result\n  num_OrderId=`echo $OrderId | awk  '{print NF}'`\n  echo The number of order id is : $num_OrderId\n\n  # If no order id\n  if [ -z \"$OrderId\" ]\n  then\n    echo No OrderId found. No kill will happen for $1.\n    #echo No OrderId found. EXIT 102.\n    #exit 102\n\n  # If more than one order id\n  elif [ $num_OrderId -gt 1 ]\n  then\n    echo There is more than one order id : $num_OrderId. No kill will happen for $1.\n    #echo There is more than one order id : $num_OrderId. EXIT 103.\n    #exit 103\n\n  # Else display and kill the job\n  else\n    echo Parameter value is : $1.\n    echo The order number is : $OrderId\n    ctmkilljob -ORDERID $OrderId\n  fi\n  shift\ndone\n\n\n\n<\/pre>\n<p><H2>Pre-requisites<\/H2><\/p>\n<ol>\n<li>Job name issues\n<ul style=\"list-style-type: circle\">\n<li> Length<br \/>\nIt must be up to 18 characters, because the ctmpsm displays 18 characters\n<\/li>\n<li>Similar Name<br \/>\nThere should be no other existing running job which name starting with the same name, otherwise that job will be taken in account<br \/>\nFor example:<br \/>\nJob executing to kill\t: Job_123<br \/>\nAnother job executing\t: Job_123_To_no_Kill<br \/>\n=&gt; That could be confusing because both jobs will be found in the pattern then it will fail<\/li>\n<\/ul>\n<li>Control-M Security\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg\" alt=\"\" width=\"582\" height=\"303\" class=\"alignnone size-full wp-image-37922\" \/><\/a><\/p>\n<p>If Control-M Full Security (ctmsys) is set to Y, as the Agent is running the ctmkill utility, ensure that agent is defined in ctmsec as a User, and it has the permission in AUTHORIZED AJF Tab, The Kill option set to Yes<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctmsec_User_permission-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctmsec_User_permission-1.jpg\" alt=\"\" width=\"1024\" height=\"121\" class=\"alignnone size-large wp-image-37942\" \/><\/a><\/p>\n<p>Otherwise you\u2019ll get such error in the Output<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctmkill_failed_Not_allowed.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctmkill_failed_Not_allowed.jpg\" alt=\"\" width=\"613\" height=\"94\" class=\"alignnone size-full wp-image-37925\" \/><\/a><\/p>\n<\/li>\n<li>ctmpsm utility\n<p>This utility is used to list all jobs in the AJF<br \/>\nIt exists in Control-M\/Server installation and also in Control-M\/Agent installation, but the Output is slightly different, and then has an impact of the awk command within the script<\/p>\n<ul style=\"list-style-type: circle\">\n<li>ctmpsm of Control-M Server\n<p>The separator is a space \u201c \u201c<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_psm_space_srv.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_psm_space_srv.jpg\" alt=\"\" width=\"588\" height=\"101\" class=\"alignnone size-full wp-image-37924\" \/><\/a>\n<\/li>\n<li>ctmpsm of Control-M Agent\n<p>The separator is a pipe \u201c| \u201c<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_psm_pipe_Agt.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_psm_pipe_Agt.jpg\" alt=\"\" width=\"589\" height=\"116\" class=\"alignnone size-full wp-image-37923\" \/><\/a>\n<\/li>\n<\/ul>\n<\/ol>\n<p>=&gt; In the script, with the awk command, indicate the appropriate separator :<br \/>\nawk -F\u201d \u201c or awk -F\u201d|\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We had a request to automate a kill of some executing jobs in AJF at specific date and time. For example: A Control-M job is running a script all day, in order other programs can connect to it, but the script has to be stopped at a specific time. There are several ways to&hellip;&nbsp;<\/p>\n","protected":false},"author":26,"featured_media":13598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1256],"tags":[],"class_list":["post-13593","post","type-post","status-publish","format-standard","has-post-thumbnail","category-control-m"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once - dbi services 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\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once\" \/>\n<meta property=\"og:description\" content=\"Introduction We had a request to automate a kill of some executing jobs in AJF at specific date and time. For example: A Control-M job is running a script all day, in order other programs can connect to it, but the script has to be stopped at a specific time. There are several ways to&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-05T07:12:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"582\" \/>\n\t<meta property=\"og:image:height\" content=\"303\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Microsoft Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/\"},\"author\":{\"name\":\"Microsoft Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/857c83b2f1d7d3e7c113ed40edf63294\"},\"headline\":\"How to automate a kill of one or several executing jobs in AJF at specific Date\\\/Time at once\",\"datePublished\":\"2020-03-05T07:12:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/\"},\"wordCount\":492,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/ctm_Full_Security.jpg\",\"articleSection\":[\"Control-M\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/\",\"name\":\"How to automate a kill of one or several executing jobs in AJF at specific Date\\\/Time at once - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/ctm_Full_Security.jpg\",\"datePublished\":\"2020-03-05T07:12:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/ctm_Full_Security.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/ctm_Full_Security.jpg\",\"width\":582,\"height\":303},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to automate a kill of one or several executing jobs in AJF at specific Date\\\/Time at once\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"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\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/857c83b2f1d7d3e7c113ed40edf63294\",\"name\":\"Microsoft Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"caption\":\"Microsoft Team\"},\"description\":\"Posts published under the Microsoft Team account are collective contributions by the dbi services Microsoft consultants. The practice covers SQL Server across its lifecycle, from installation, migration, and security to high availability with Always On and performance tuning, together with Azure data services and the Microsoft Business Intelligence stack, including Power BI. The team holds Microsoft certifications up to Expert level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/microsoft-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once - dbi services 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\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/","og_locale":"en_US","og_type":"article","og_title":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once","og_description":"Introduction We had a request to automate a kill of some executing jobs in AJF at specific date and time. For example: A Control-M job is running a script all day, in order other programs can connect to it, but the script has to be stopped at a specific time. There are several ways to&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2020-03-05T07:12:03+00:00","og_image":[{"width":582,"height":303,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg","type":"image\/jpeg"}],"author":"Microsoft Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Microsoft Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/"},"author":{"name":"Microsoft Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/857c83b2f1d7d3e7c113ed40edf63294"},"headline":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once","datePublished":"2020-03-05T07:12:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/"},"wordCount":492,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg","articleSection":["Control-M"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/","url":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/","name":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg","datePublished":"2020-03-05T07:12:03+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/ctm_Full_Security.jpg","width":582,"height":303},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-automate-a-kill-of-some-executing-jobs-in-ajf-at-specific-date-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to automate a kill of one or several executing jobs in AJF at specific Date\/Time at once"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"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":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/857c83b2f1d7d3e7c113ed40edf63294","name":"Microsoft Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","caption":"Microsoft Team"},"description":"Posts published under the Microsoft Team account are collective contributions by the dbi services Microsoft consultants. The practice covers SQL Server across its lifecycle, from installation, migration, and security to high availability with Always On and performance tuning, together with Azure data services and the Microsoft Business Intelligence stack, including Power BI. The team holds Microsoft certifications up to Expert level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/microsoft-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/13593","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\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=13593"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/13593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/13598"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=13593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=13593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=13593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}