<?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: F$mode() info required in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775684#M9614</link>
    <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;Since in our case, we need to have this job run immediately i.e. it can not be queued in with SUBMIT command.&lt;BR /&gt;So could you please let us know is there any alternative to set f$mode() to batch.&lt;BR /&gt;&lt;BR /&gt;Is it possible if I run my script using PIPE (.....)&amp;amp; ??&lt;BR /&gt;&lt;BR /&gt;Since am very new to VMS, so may be the questions are quite like a learner.&lt;BR /&gt;Please let me know.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Rajni.</description>
    <pubDate>Fri, 21 Apr 2006 09:56:06 GMT</pubDate>
    <dc:creator>Shashikant_B</dc:creator>
    <dc:date>2006-04-21T09:56:06Z</dc:date>
    <item>
      <title>F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775680#M9610</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;We need urgent help regarding f$mode() on open VMS.&lt;BR /&gt;Need to know &lt;BR /&gt;1) How this gets set as BATCH/INTERACTIVE?&lt;BR /&gt;2) If i want to run a application in batch always, how do i set it?&lt;BR /&gt;&lt;BR /&gt;Please reply back.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Rajni.</description>
      <pubDate>Fri, 21 Apr 2006 09:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775680#M9610</guid>
      <dc:creator>Shashikant_B</dc:creator>
      <dc:date>2006-04-21T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775681#M9611</link>
      <description>Rajni,&lt;BR /&gt;&lt;BR /&gt;The lexical function F$MODE() returns as a character string the mode in which the process is executing ( INTERACTIVE, BATCH, NETWORK, OTHER ). It cannot set this mode.&lt;BR /&gt;See the Help topic "Lexicals".&lt;BR /&gt;If you want to run an app in BATCH always, you will have to create a command procedure that invokes this app, and SUBMIT this procedure to a batch queue for execution.&lt;BR /&gt;&lt;BR /&gt;Please see&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents_005.html#toc_chapter_16" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents_005.html#toc_chapter_16&lt;/A&gt;&lt;BR /&gt;for further reading.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Fri, 21 Apr 2006 09:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775681#M9611</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2006-04-21T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775682#M9612</link>
      <description>Hi! Rajni,&lt;BR /&gt;&lt;BR /&gt;Try the following:&lt;BR /&gt;&lt;BR /&gt;$  IF F$MODE() .NES. "INTERACTIVE" THEN GOTO ENDINTER&lt;BR /&gt;$  IF F$MODE() .NES. "BATCH" THEN GOTO ENDBATCH&lt;BR /&gt;&lt;BR /&gt;You can also use GOSUB with RETURN as well&lt;BR /&gt;&lt;BR /&gt;XMAN</description>
      <pubDate>Fri, 21 Apr 2006 09:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775682#M9612</guid>
      <dc:creator>XMAN_1</dc:creator>
      <dc:date>2006-04-21T09:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775683#M9613</link>
      <description>Hi Rajni,&lt;BR /&gt;&lt;BR /&gt;Welcome to the ITRC OpenVMS forum!&lt;BR /&gt;&lt;BR /&gt;The lexical function f$mode()returns a character string showing the mode in which a process is executing. &lt;BR /&gt;&lt;BR /&gt;It does not set an application or process to batch/interactive mode. The bit(s) which are read by f$mode() are set up in the process header at the time of process creation.&lt;BR /&gt;&lt;BR /&gt;To run a process in batch mode, submit a command procedure to a previously defined batch queue (e.g. sys$batch).&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 21 Apr 2006 09:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775683#M9613</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-04-21T09:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775684#M9614</link>
      <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;Since in our case, we need to have this job run immediately i.e. it can not be queued in with SUBMIT command.&lt;BR /&gt;So could you please let us know is there any alternative to set f$mode() to batch.&lt;BR /&gt;&lt;BR /&gt;Is it possible if I run my script using PIPE (.....)&amp;amp; ??&lt;BR /&gt;&lt;BR /&gt;Since am very new to VMS, so may be the questions are quite like a learner.&lt;BR /&gt;Please let me know.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Rajni.</description>
      <pubDate>Fri, 21 Apr 2006 09:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775684#M9614</guid>
      <dc:creator>Shashikant_B</dc:creator>
      <dc:date>2006-04-21T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775685#M9615</link>
      <description>Hi! Rajni,&lt;BR /&gt;&lt;BR /&gt;F$MODE() is a lexical function and can be tested against &lt;BR /&gt;"OTHER", "NETWORK", "INTERACTIVE" &amp;amp; "BATCH" modes.&lt;BR /&gt;&lt;BR /&gt;you can also assign it to a variable and then test that variable like:&lt;BR /&gt;&lt;BR /&gt;$ X = f$mode() &lt;BR /&gt;&lt;BR /&gt;and then test "X" or you can use it directly like:&lt;BR /&gt;&lt;BR /&gt;$ If F$MODE() .EQS. "OTHER"       THEN GOTO/GOSUB YOUR_WORKPARA&lt;BR /&gt;$ IF F$MODE() .EQS. "NETWORK"     THEN GOTO/GOSUB YOUR_WORKPARA&lt;BR /&gt;$ IF F$MODE() .EQS. "INTERACTIVE" THEN GOTO/GOSUB YOUR_WORKPARA&lt;BR /&gt;$ IF F$MODE() .EQS. "BATCH"       THEN GOTO/GOSUB YOUR_WORKPARA&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;XMAN</description>
      <pubDate>Fri, 21 Apr 2006 09:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775685#M9615</guid>
      <dc:creator>XMAN_1</dc:creator>
      <dc:date>2006-04-21T09:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775686#M9616</link>
      <description>Rajni,&lt;BR /&gt;&lt;BR /&gt;"Since in our case, we need to have this job run immediately i.e. it can not be queued in with SUBMIT command. &lt;BR /&gt;So could you please let us know is there any alternative to set f$mode() to batch."&lt;BR /&gt;&lt;BR /&gt;As you say, you are new to OpenVMS. ALL batch jobs run in a batch queue. You can have the job start immediately within the queue. If you are thinking of a "background" task, then you could consider using SPAWN/NOWAIT - but please be careful! This is a very different environment to Unix.&lt;BR /&gt;&lt;BR /&gt;Duncan &lt;BR /&gt;</description>
      <pubDate>Fri, 21 Apr 2006 10:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775686#M9616</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-04-21T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775687#M9617</link>
      <description>Rajni,&lt;BR /&gt;&lt;BR /&gt;please read chapter 16 of the OpenVMS user guide for a good description of batch jobs, subprocesses and similar. &lt;BR /&gt;&lt;BR /&gt;I am sure that you will find the information that you need in this link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents_005.html#toc_chapter_16" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents_005.html#toc_chapter_16&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 21 Apr 2006 10:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775687#M9617</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-04-21T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775688#M9618</link>
      <description>Thanks for the replies</description>
      <pubDate>Fri, 21 Apr 2006 11:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775688#M9618</guid>
      <dc:creator>Shashikant_B</dc:creator>
      <dc:date>2006-04-21T11:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: F$mode() info required</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775689#M9619</link>
      <description>Hi Rajni,&lt;BR /&gt;&lt;BR /&gt;hopefully these answers will help you, and if you need more information on any OpenVMS topic, feel free to opena new topic.&lt;BR /&gt;&lt;BR /&gt;Once you have had time to go through the answers, maybe you can find some time to do some assigning?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; &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;&lt;BR /&gt;Consider, that every poster took at least the trouble of posting for you!&lt;BR /&gt;&lt;BR /&gt; Thanks on behalf of your Forum colleagues.&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 21 Apr 2006 11:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-mode-info-required/m-p/3775689#M9619</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-04-21T11:48:32Z</dc:date>
    </item>
  </channel>
</rss>

