<?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: Problem with batch jobs using the same command file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067479#M13280</link>
    <description>F$GETQUI("DISPLAY_ENTRY"...) is a wildcard operation. Chech the HELP or manuals.&lt;BR /&gt;It matched all your jobs, and does NOT start with the current job.&lt;BR /&gt;&lt;BR /&gt;You _could_ contrain the wildcard passing a job name, but that would defeat the purpose.&lt;BR /&gt;Change code to look like:&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;$ JE = F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",p1)&lt;BR /&gt;:&lt;BR /&gt;and submit as:&lt;BR /&gt;&lt;BR /&gt;$  SUBMIT/noti/NAME=X1/LOG=X1.LOG x/param=x1&lt;BR /&gt;&lt;BR /&gt;The right solution is prbably to use DISPLAY_JOB, not DISPLAY_ENTRY with the "THIS_JOB" option.&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;:&lt;BR /&gt;$ JE = F$GETQUI("DISPLAY_job","ENTRY_NUMBER",,"THIS_JOB")&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 08 Sep 2007 12:59:52 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-09-08T12:59:52Z</dc:date>
    <item>
      <title>Problem with batch jobs using the same command file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067478#M13279</link>
      <description>I submit a batch job using X.COM and name the job X1. While X1 is active, I submit batch job X2, also using command file X.COM.&lt;BR /&gt;&lt;BR /&gt;X.COM displays its job entry, job name and process ID. X1.LOG displays X1 as its job as expected. However, X2.LOG displays X1's job entry, name and PID. Is this a bug? Is there a work around? This was on version 7.3-2 of OpenVMS.&lt;BR /&gt;&lt;BR /&gt;Thanx&lt;BR /&gt;&lt;BR /&gt;Chuck Paulissen&lt;BR /&gt;&lt;BR /&gt;The following shows the actual process:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$TYP X.COM &lt;BR /&gt;$ SET NOON &lt;BR /&gt;$ SAY := WRITE SYS$OUTPUT &lt;BR /&gt;$ JE = F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER") &lt;BR /&gt;$ JN = F$GETQUI("DISPLAY_ENTRY","JOB_NAME") &lt;BR /&gt;$ JP = F$GETQUI("DISPLAY_ENTRY","JOB_PID") &lt;BR /&gt;$ SAY "Entry Number=''JE'" &lt;BR /&gt;$ SAY "Job Name=''JN'" &lt;BR /&gt;$ SAY "Job PID=''JP'" &lt;BR /&gt;$ WAIT 00:00:05 &lt;BR /&gt;$EXIT: &lt;BR /&gt;$       EXIT &lt;BR /&gt;$SUBMIT/NAME=X1/LOG=PPS_LOG:X1.LOG X &lt;BR /&gt;Job X1 (queue BRONER_BATCH, entry 646) started on BRONER_BATCH &lt;BR /&gt;$SUBMIT/NAME=X2/LOG=PPS_LOG:X2.LOG X &lt;BR /&gt;Job X2 (queue BRONER_BATCH, entry 647) started on BRONER_BATCH &lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Job X1 (queue BRONER_BATCH, entry 646) completed &lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Job X2 (queue BRONER_BATCH, entry 647) completed &lt;BR /&gt;$TYP PPS_LOG:X1.LOG &lt;BR /&gt;$ Set NOON &lt;BR /&gt;Entry Number=646 &lt;BR /&gt;Job Name=X1 &lt;BR /&gt;Job PID=00050CD3 &lt;BR /&gt;  PPS_CPAULISS job terminated at  4-SEP-2007 16:00:54.81 &lt;BR /&gt;&lt;BR /&gt;  Accounting information: &lt;BR /&gt;  Buffered I/O count:                280      Peak working set size:       5744 &lt;BR /&gt;  Direct I/O count:                  143      Peak virtual size:         173616 &lt;BR /&gt;  Page faults:                       851      Mounted volumes:                0 &lt;BR /&gt;  Charged CPU time:        0 00:00:00.09      Elapsed time:       0 00:00:05.31 &lt;BR /&gt;$&lt;BR /&gt;$TYP PPS_LOG:X2.LOG &lt;BR /&gt;$ Set NOON &lt;BR /&gt;Entry Number=646 &lt;BR /&gt;Job Name=X1 &lt;BR /&gt;Job PID=00050CD3 &lt;BR /&gt;  PPS_CPAULISS job terminated at  4-SEP-2007 16:00:56.47 &lt;BR /&gt;&lt;BR /&gt;  Accounting information: &lt;BR /&gt;  Buffered I/O count:                280      Peak working set size:       5744 &lt;BR /&gt;  Direct I/O count:                  140      Peak virtual size:         173616 &lt;BR /&gt;  Page faults:                       851      Mounted volumes:                0 &lt;BR /&gt;  Charged CPU time:        0 00:00:00.08      Elapsed time:       0 00:00:05.12 &lt;BR /&gt;$ &lt;BR /&gt;</description>
      <pubDate>Sat, 08 Sep 2007 11:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067478#M13279</guid>
      <dc:creator>Synergy_1</dc:creator>
      <dc:date>2007-09-08T11:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with batch jobs using the same command file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067479#M13280</link>
      <description>F$GETQUI("DISPLAY_ENTRY"...) is a wildcard operation. Chech the HELP or manuals.&lt;BR /&gt;It matched all your jobs, and does NOT start with the current job.&lt;BR /&gt;&lt;BR /&gt;You _could_ contrain the wildcard passing a job name, but that would defeat the purpose.&lt;BR /&gt;Change code to look like:&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;$ JE = F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",p1)&lt;BR /&gt;:&lt;BR /&gt;and submit as:&lt;BR /&gt;&lt;BR /&gt;$  SUBMIT/noti/NAME=X1/LOG=X1.LOG x/param=x1&lt;BR /&gt;&lt;BR /&gt;The right solution is prbably to use DISPLAY_JOB, not DISPLAY_ENTRY with the "THIS_JOB" option.&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;:&lt;BR /&gt;$ JE = F$GETQUI("DISPLAY_job","ENTRY_NUMBER",,"THIS_JOB")&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Sep 2007 12:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067479#M13280</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-08T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with batch jobs using the same command file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067480#M13281</link>
      <description>Oh, and to address the subject line:&lt;BR /&gt;&lt;BR /&gt;"Problem with batch jobs using the same command file"&lt;BR /&gt;&lt;BR /&gt;In case that was not yet blatantly obvious... the 'same command file' was a red herring.&lt;BR /&gt;Two distinct commands files would have behaved exactly the some.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Sep 2007 14:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067480#M13281</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-08T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with batch jobs using the same command file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067481#M13282</link>
      <description>Synergy,&lt;BR /&gt;&lt;BR /&gt;to begin with:&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS Forums!!&lt;BR /&gt;&lt;BR /&gt;The reason that your way at least partly works, is that your default batch queue (SYS$BATCH, or the one pointed to by LNM SYS$BATCH) just happens to be the first (maybe only?) one scanned.&lt;BR /&gt;And, there are precious few jobs IN that queue, or you might have a far bigger chance of hitting on any of the others.&lt;BR /&gt;&lt;BR /&gt;SYS$GETQUI is not exactly the most "human-friendly" construct, and F$GETQUI is just a wrapper to make it available in DCL.&lt;BR /&gt;Howver, it _IS_ a very powerfull tool!&lt;BR /&gt;But to be able to use it, it is really necessary to look up the effects of the WILDCARD and the FREEZE_CONTEXT control parameters.&lt;BR /&gt;Again: not exactly human-friendly syntax, but powerfull.&lt;BR /&gt;&lt;BR /&gt;The DCL manual has (under Lexical functions, F$GETQUI) some rather good examples. Quite instructive to work though  them to get the feel for it.&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</description>
      <pubDate>Sun, 09 Sep 2007 03:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067481#M13282</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-09-09T03:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with batch jobs using the same command file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067482#M13283</link>
      <description>examples of using F$GETQUI can be found at&lt;BR /&gt;&lt;A href="http://dcl.openvms.org" target="_blank"&gt;http://dcl.openvms.org&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Sep 2007 13:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-batch-jobs-using-the-same-command-file/m-p/4067482#M13283</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2007-09-09T13:10:33Z</dc:date>
    </item>
  </channel>
</rss>

