<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tracking child batch jobs in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597752#M32490</link>
    <description>Hi Sandeep,&lt;BR /&gt;warning, if you call a child job inside executing batch job you could stall application. Batch job, usually can execute 3 jobs concurrently but it's possible limit to 1 this feature.&lt;BR /&gt; &lt;BR /&gt;About tracking, I'm not sure what is your real intention. If you simply want to wait for end execution you can execute SYNC command as posted above.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
    <pubDate>Sat, 06 Aug 2005 01:59:47 GMT</pubDate>
    <dc:creator>Antoniov.</dc:creator>
    <dc:date>2005-08-06T01:59:47Z</dc:date>
    <item>
      <title>Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597748#M32486</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use sys$sndjbc to submit job and monitor them for the job completion.&lt;BR /&gt;&lt;BR /&gt;I want to be able to track the child job that gets called inside the batch script.&lt;BR /&gt;&lt;BR /&gt;Below are an example of the batch job&lt;BR /&gt;&lt;BR /&gt;$! type test.com&lt;BR /&gt;$ show time&lt;BR /&gt;$ &amp;lt;&amp;lt;&amp;lt;&amp;lt; CALL CHILD JOB &amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;$ show time&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;In my C Code, I use sys$sndjbc (0, SJC$_SYNCHRONIZE_JOB ...) which provides me with the job completion information for test.com, but at times the child job may still be running and I want to wait till the child job is complete.&lt;BR /&gt;&lt;BR /&gt;Is it possible to track the child job?&lt;BR /&gt;&lt;BR /&gt;Is there a API that can be called from C program?&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Sandeep</description>
      <pubDate>Fri, 05 Aug 2005 18:19:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597748#M32486</guid>
      <dc:creator>Sandeep_30</dc:creator>
      <dc:date>2005-08-05T18:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597749#M32487</link>
      <description>Hi Sandeep,&lt;BR /&gt;&lt;BR /&gt;if you simply want to wait within the DCL procedure till the "child job" has been finished then the following should be one of various solutions (if, as I understand, the child job is also a batch job, and of course depending on your VMS version):&lt;BR /&gt;$! type test.com&lt;BR /&gt;$ show time&lt;BR /&gt;$ &amp;lt;&amp;lt;&amp;lt;&amp;lt; CALL CHILD JOB &amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;$ loop:&lt;BR /&gt;$ show time&lt;BR /&gt;$ wait 0:0:5&lt;BR /&gt;$ show entry child-job-processname/user=owner-of-child-job-process/by_job_status=executing&lt;BR /&gt;$ if .not. $status then goto loop&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;Too, have a look at the many things the lexical function f$getqui offers.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;EW&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 19:20:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597749#M32487</guid>
      <dc:creator>Eberhard Wacker</dc:creator>
      <dc:date>2005-08-05T19:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597750#M32488</link>
      <description>Sorry, wrong statement, in the case above the status query should be &lt;BR /&gt;$ if $status then goto loop&lt;BR /&gt;Cheers again,&lt;BR /&gt;EW&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 19:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597750#M32488</guid>
      <dc:creator>Eberhard Wacker</dc:creator>
      <dc:date>2005-08-05T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597751#M32489</link>
      <description>Note sure exactly what you want to "track" from the child job, but if just completion, then explore the Synchronize DCL command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;q&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 21:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597751#M32489</guid>
      <dc:creator>Peter Quodling</dc:creator>
      <dc:date>2005-08-05T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597752#M32490</link>
      <description>Hi Sandeep,&lt;BR /&gt;warning, if you call a child job inside executing batch job you could stall application. Batch job, usually can execute 3 jobs concurrently but it's possible limit to 1 this feature.&lt;BR /&gt; &lt;BR /&gt;About tracking, I'm not sure what is your real intention. If you simply want to wait for end execution you can execute SYNC command as posted above.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Aug 2005 01:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597752#M32490</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-06T01:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597753#M32491</link>
      <description>Sandeep,&lt;BR /&gt;&lt;BR /&gt;I am not much into C, but let me first make sure I get your exact intention:&lt;BR /&gt;&lt;BR /&gt;- From your image, you submit a batch job to execute test.com&lt;BR /&gt;- in test.com you  "CALL CHILD JOB"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I am now assuming that the CHILD JOB is done by a separate batch job, by SUBMIT or by an other image executing SYS$SNDJBC&lt;BR /&gt;&lt;BR /&gt;I guess your intention would be to get a timestamp at the beginning and at the end. Is that correct?&lt;BR /&gt;If so, then:&lt;BR /&gt;&lt;BR /&gt;. If the child is started by SUBMIT, then in test.com after calling CHILD JOB add a line:&lt;BR /&gt;$ SYNCHRONISE '$ENTRY&lt;BR /&gt;&lt;BR /&gt;. If it is submitted using SYS$SNDJBC, then retrieve the entry number, do a LIB$SETSYMBOL for some unique name, and then in test.com do a SYNCHRONISE for that unique symbol name.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Aug 2005 04:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597753#M32491</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-08-06T04:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking child batch jobs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597754#M32492</link>
      <description>Sandeep,&lt;BR /&gt;&lt;BR /&gt;from your Forum Profile:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I have assigned points to 4 of 17  responses to my questions.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe you can find some time to do some assigning?&lt;BR /&gt;&lt;BR /&gt;Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.&lt;BR /&gt;Consider, that every poster took at least the trouble of posting for you!&lt;BR /&gt;&lt;BR /&gt;To easily find your streams with unassigned points, click your own name somewhere.&lt;BR /&gt;This will bring up your profile.&lt;BR /&gt;Near the bottom of that page, under the caption â  My Question(s)â   you will find â  questions or topics with unassigned points â   Clicking that will give all, and only, your questions that still have unassigned postings.&lt;BR /&gt;&lt;BR /&gt;Thanks on behalf of your Forum colleagues.&lt;BR /&gt;&lt;BR /&gt;PS.  â   nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before â   please do not take offence â   none is intended!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Aug 2005 04:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tracking-child-batch-jobs/m-p/3597754#M32492</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-08-06T04:30:27Z</dc:date>
    </item>
  </channel>
</rss>

