<?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$verify(0) from a program in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146775#M44963</link>
    <description>Insert as 1st line of procedure:&lt;BR /&gt;&lt;BR /&gt;$ tmp = 'F$verify(0)'&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
    <pubDate>Wed, 17 Dec 2008 11:29:15 GMT</pubDate>
    <dc:creator>Karl Rohwedder</dc:creator>
    <dc:date>2008-12-17T11:29:15Z</dc:date>
    <item>
      <title>f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146774#M44962</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;we want to do something like this (using fortran):&lt;BR /&gt;&lt;BR /&gt;rtc = lib$spawn('dcl_proc',,mbxname,CLI$M_NOWAIT,,pid)&lt;BR /&gt;&lt;BR /&gt;where mbxname represents a mailbox. This works fine, but with VERIFY on in the caller's environment, we get all the DCL of 'dcl_proc' in the mailbox. With SET NOVERIFY as the first line of 'dcl_proc' we still see that line in the mailbox.&lt;BR /&gt;&lt;BR /&gt;How can we disable the caller's verify flag before calling lib$spawn and set it back to its original value after lib$spawn has completed. ?</description>
      <pubDate>Wed, 17 Dec 2008 11:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146774#M44962</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2008-12-17T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146775#M44963</link>
      <description>Insert as 1st line of procedure:&lt;BR /&gt;&lt;BR /&gt;$ tmp = 'F$verify(0)'&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 17 Dec 2008 11:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146775#M44963</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-12-17T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146776#M44964</link>
      <description>Ok, that works.&lt;BR /&gt;But we have to insert this as the first line in every procedure that will be traeted this way.&lt;BR /&gt;Is there a solution that can be implemented in the function which calls lib$spawn ?</description>
      <pubDate>Wed, 17 Dec 2008 11:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146776#M44964</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2008-12-17T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146777#M44965</link>
      <description>and &lt;BR /&gt;$ tmp='f$verify(tmp)'&lt;BR /&gt;as the last statement. Or it will stay off.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 17 Dec 2008 11:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146777#M44965</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-12-17T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146778#M44966</link>
      <description>I don't think there is an API available for turning off the DCL image and procedure verification bits from a program.&lt;BR /&gt;&lt;BR /&gt;You could write some routine, which goes into supervisor mode to implement this...&lt;BR /&gt;&lt;BR /&gt;But how about some intermediate DCL-procedure, which handles the verify flags and then calls the desired DCL-procedure, specified as a parameter like:&lt;BR /&gt;&lt;BR /&gt;rtc = lib$spawn('new_proc dcl_proc',,mbxname,CLI$M_NOWAIT,,pid)&lt;BR /&gt;&lt;BR /&gt;new_proc could then turn off verify, call dcl_proc, reset verify and exit.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 17 Dec 2008 12:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146778#M44966</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2008-12-17T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146779#M44967</link>
      <description>But you can do a spawn with f$verify as command to change it (e.g. at startup of the program).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 17 Dec 2008 12:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146779#M44967</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-12-17T12:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146780#M44968</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;But you can do a spawn with f$verify as &lt;BR /&gt;&amp;gt;command to change it (e.g. at startup of&lt;BR /&gt;&amp;gt;the program).&lt;BR /&gt;&lt;BR /&gt;this would not turn off SET VERIFY in the main process, only in the sub-process, which would then exit immediately.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 17 Dec 2008 12:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146780#M44968</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2008-12-17T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146781#M44969</link>
      <description>How about NOT feeding spawn the command file directly. Give it an input mailbox.&lt;BR /&gt;Send the 'f$verify'() first, then (probably!) send an $define sys$input sys$command, then feed it the @'file'?&lt;BR /&gt;Just a thought...&lt;BR /&gt;&lt;BR /&gt;Or bulk-edit those command files already.&lt;BR /&gt;No big deal, possibly less work than reading these replies.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2008 13:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146781#M44969</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-17T13:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146782#M44970</link>
      <description>Great answers.&lt;BR /&gt;&lt;BR /&gt;I think we will 'Bulk edit' the procedures and give Hein's idea a try.&lt;BR /&gt;&lt;BR /&gt;Thank you very much.</description>
      <pubDate>Wed, 17 Dec 2008 13:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146782#M44970</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2008-12-17T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146783#M44971</link>
      <description>Oeps. Volker is right.&lt;BR /&gt;&lt;BR /&gt;But you can pass @x y&lt;BR /&gt;and do the F$ver in x.com and then do @y in x.com&lt;BR /&gt;&lt;BR /&gt;fwiw&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 17 Dec 2008 13:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146783#M44971</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-12-17T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146784#M44972</link>
      <description>You can append the f$verify to the @ command like in&lt;BR /&gt;&lt;BR /&gt;$ cre huhu.com&lt;BR /&gt;$ show time&lt;BR /&gt;$ write sys$output "huhu&lt;BR /&gt; Exit&lt;BR /&gt;$ @huhu&lt;BR /&gt;  17-DEC-2008 10:50:11&lt;BR /&gt;huhu&lt;BR /&gt;$ @huhu !'f$verify(1)&lt;BR /&gt;$ show time&lt;BR /&gt;  17-DEC-2008 10:50:31&lt;BR /&gt;$ write sys$output "huhu&lt;BR /&gt;huhu&lt;BR /&gt;$ @huhu !'f$verify(0)&lt;BR /&gt;  17-DEC-2008 10:50:39&lt;BR /&gt;huhu&lt;BR /&gt;$</description>
      <pubDate>Wed, 17 Dec 2008 15:56:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146784#M44972</guid>
      <dc:creator>x2084</dc:creator>
      <dc:date>2008-12-17T15:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146785#M44973</link>
      <description>Perhaps this is just too obvious, but...&lt;BR /&gt;&lt;BR /&gt;Why not just turn verify off right before running the program that does the LIB$SPAWN calls ?</description>
      <pubDate>Wed, 17 Dec 2008 17:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146785#M44973</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-12-17T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146786#M44974</link>
      <description>&lt;!--!*#--&gt;And another simple solution - instead of this call:&lt;BR /&gt;&lt;BR /&gt;rtc = lib$spawn('@dcl_proc',,mbxname,CLI$M_NOWAIT,,pid)&lt;BR /&gt;&lt;BR /&gt;Use this call:&lt;BR /&gt;&lt;BR /&gt;rtc = lib$spawn('SET NOVERIFY','dcl_proc',mbxname,CLI$M_NOWAIT,,pid)&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2008 18:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146786#M44974</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-12-17T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: f$verify(0) from a program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146787#M44975</link>
      <description>If you're going down the bulk edit route, instead of summarily turning verification off with:&lt;BR /&gt;&lt;BR /&gt;$ v='f$verify(0)'&lt;BR /&gt;&lt;BR /&gt;I'd recommend using a modular construct that lets you control verification for a particular procedure externally. This allows for selective debugging, even as the structure of multiple procedures gets highly complex. I start most of my DCL procedures with:&lt;BR /&gt;&lt;BR /&gt; $ verf='F$VERIFY(F$TRNLNM(F$PARSE(F$ENVIRONMENT("PROCEDURE"),,,"NAME")+"_VERIFY"))&lt;BR /&gt;&lt;BR /&gt;By default verification is turned off, but if there's a logical name &lt;PROCEDURE-NAME&gt;_VERIFY visible to the process, with value "1", verification will be enabled. The final line is:&lt;BR /&gt;&lt;BR /&gt;$ EXIT %X10000000.OR.F$INTEGER(stat)+(F$VERIFY(verf).AND.0)&lt;BR /&gt;&lt;BR /&gt;This will (silently) restore verification to its previous state, return status "stat" and set the STS$V_INHIB bit to surpress the status code from generating a message.&lt;/PROCEDURE-NAME&gt;</description>
      <pubDate>Wed, 17 Dec 2008 20:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-verify-0-from-a-program/m-p/5146787#M44975</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-12-17T20:21:06Z</dc:date>
    </item>
  </channel>
</rss>

