<?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: Strange occurance when mixing &amp;quot;set proc/unit=byte&amp;quot; and pipe in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131790#M44623</link>
    <description>Thanks for everyone chipping in as to why I was seeing the "problem".&lt;BR /&gt;&lt;BR /&gt;Ken</description>
    <pubDate>Thu, 25 Sep 2008 13:14:49 GMT</pubDate>
    <dc:creator>Ken Robinson</dc:creator>
    <dc:date>2008-09-25T13:14:49Z</dc:date>
    <item>
      <title>Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131782#M44615</link>
      <description>&lt;!--!*#--&gt;I noticed a very strange (reproducible) bug today on both V7.3-2 and v8.3-1h1&lt;BR /&gt;&lt;BR /&gt;Do the following:&lt;BR /&gt;&lt;BR /&gt;$ set proc/unit=byte&lt;BR /&gt;$ sho dev d/mou  !  this is fine -- the free space shows as bytes&lt;BR /&gt;$ pipe sho dev d/mou ! this is also fine&lt;BR /&gt;$ pipe sho dev d/mou | type sys$pipe  ! what happened? the free space shows as blocks&lt;BR /&gt;$ pipe sho dev d/mou/un=by | type sys$pipe ! ok again, but I shouldn't have do that&lt;BR /&gt;&lt;BR /&gt;This also happens when you pipe the output of the directory/size command to another process.&lt;BR /&gt;&lt;BR /&gt;Ken</description>
      <pubDate>Thu, 25 Sep 2008 03:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131782#M44615</guid>
      <dc:creator>Ken Robinson</dc:creator>
      <dc:date>2008-09-25T03:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131783#M44616</link>
      <description>&lt;!--!*#--&gt;SPAWN, and the subprocess also has forgotten:&lt;BR /&gt;&lt;BR /&gt;alp $ show proc /unit&lt;BR /&gt;[...]&lt;BR /&gt;Units: Bytes&lt;BR /&gt;&lt;BR /&gt;alp $ spawn&lt;BR /&gt;%DCL-S-SPAWNED, process SMS_44309 spawned&lt;BR /&gt;%DCL-S-ATTACHED, terminal now attached to process SMS_44309&lt;BR /&gt;&lt;BR /&gt;alp $ show proc /unit&lt;BR /&gt;[...]&lt;BR /&gt;Units: Blocks&lt;BR /&gt;&lt;BR /&gt;Knowing nothing, I'd guess that these&lt;BR /&gt;phenomena are related.</description>
      <pubDate>Thu, 25 Sep 2008 03:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131783#M44616</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-25T03:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131784#M44617</link>
      <description>&lt;BR /&gt;$ SET POCESS =&amp;gt; sets attributes for THIS process.&lt;BR /&gt;&lt;BR /&gt;$ SPAWN creates a new process - with the default setting: Blocks.&lt;BR /&gt;&lt;BR /&gt;$ PIPE can be thought of creating a new process by, or similar to SPAWN, execute the FIRST command in that context, and, in the current process, process the output of the subprocess.&lt;BR /&gt;In your example. the created process would execute SHO DEV D/MOU, and pass the units in blocks (being the default setting) to the main process, wheer it will show in blocks. If you specify /UN=BY, the created process will  do the math, and you'll see the units in bytes.&lt;BR /&gt;&lt;BR /&gt;To be sure:  $ SET PROCESS/UNIT-BLOCKS&lt;BR /&gt;and re-execute the second command. You'll get the info - in BYTES.&lt;BR /&gt;&lt;BR /&gt;(not tested, but deducted)&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 05:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131784#M44617</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2008-09-25T05:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131785#M44618</link>
      <description>Ken,&lt;BR /&gt;&lt;BR /&gt;I agree with Steve and Willem. &lt;BR /&gt;&lt;BR /&gt;This is one of those debates about what the proper things to propagate when SPAWN is invoked. There is an argument for a greater set of process parameters to be "cloned" when a SPAWN is done, i.e., there is a strong argument that a whole set of settable parameters should be cloned, or at least the default should be that they are cloned. Among these parameters are RMS parameters, and various process settings. Insofar as I recall, only the DEFAULT string, symbols, and process logical names are cloned.&lt;BR /&gt;&lt;BR /&gt;I suspect that you are not the first to notice this inconsistency.&lt;BR /&gt;&lt;BR /&gt;Perhaps a "feature" request to Engineering for SET PROCESS/SPAWN_MODE=CLONE|RAW or SET PROCESS/SPAWN=([NO]LOGICAL_NAME,[NO]RMS,[NO]SYMBOL, [NO]SETTINGS])?&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Thu, 25 Sep 2008 06:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131785#M44618</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-09-25T06:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131786#M44619</link>
      <description>@rob:&lt;BR /&gt;&lt;BR /&gt;I agree. Even more, I would like to see both implemented: first for a quick, basic setting (RAW = inherit nothing, CLOSE=inherit all) and the second for a specific one; RAW or CLONE taking precedence.&lt;BR /&gt;&lt;BR /&gt;Does the advocay still exist, or an alternative site?</description>
      <pubDate>Thu, 25 Sep 2008 09:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131786#M44619</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2008-09-25T09:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131787#M44620</link>
      <description>&amp;gt; This is one of those debates about what the&lt;BR /&gt;&amp;gt; proper things to propagate when SPAWN is&lt;BR /&gt;&amp;gt; invoked.  [...]&lt;BR /&gt;&lt;BR /&gt;Yup.  Try it with something similar, like&lt;BR /&gt;"Parse Style" or "Case Lookup".  Around here,&lt;BR /&gt;those two get inherited.  "Units" getting&lt;BR /&gt;lost looks to me like a bug.  (Of course,&lt;BR /&gt;"Image Dump" gets lost, too, but that's more&lt;BR /&gt;reasonable, I'd say.)</description>
      <pubDate>Thu, 25 Sep 2008 12:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131787#M44620</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-25T12:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131788#M44621</link>
      <description>And, in any case, if SPAWN got more options&lt;BR /&gt;to deal with these choices, then PIPE would&lt;BR /&gt;need similar changes to deal with the&lt;BR /&gt;original complaint.</description>
      <pubDate>Thu, 25 Sep 2008 12:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131788#M44621</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-25T12:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131789#M44622</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;advocacy does not exist anymore, but if anyone gets a formal request trough, point thm to this thread also. In which case I can be counted as another vote in favor.&lt;BR /&gt;&lt;BR /&gt;Re Stevens last remark: I think that calls for another process setting to define which properties to inherit by PIPE and SPAWN (and similar others? Which?). Of course, any qualifier specified with a specific command should take precedence over the process setting.&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>Thu, 25 Sep 2008 13:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131789#M44622</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-09-25T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131790#M44623</link>
      <description>Thanks for everyone chipping in as to why I was seeing the "problem".&lt;BR /&gt;&lt;BR /&gt;Ken</description>
      <pubDate>Thu, 25 Sep 2008 13:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131790#M44623</guid>
      <dc:creator>Ken Robinson</dc:creator>
      <dc:date>2008-09-25T13:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131791#M44624</link>
      <description>$loop:&lt;BR /&gt;$ candidate = f$device(,1,,)&lt;BR /&gt;$ if candidate .eqs. "" then exit&lt;BR /&gt;$ if f$getdvi(candidate,"MNT")&lt;BR /&gt;$ then&lt;BR /&gt;$ freeblocks = f$getdvi(candidate,"FREEBLOCKS")&lt;BR /&gt;$ write sys$output "Device ''candidate' has ''freeblocks' blocks free"&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto loop</description>
      <pubDate>Thu, 25 Sep 2008 13:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131791#M44624</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-09-25T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Strange occurance when mixing "set proc/unit=byte" and pipe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131792#M44625</link>
      <description>Ken,&lt;BR /&gt;&lt;BR /&gt;  A bit more detail on the reasons behind the observed behaviour...&lt;BR /&gt;&lt;BR /&gt;$ PIPE command&lt;BR /&gt;&lt;BR /&gt;  with no pipe separator executes in the context of the current process, hence the settings for the current process are used.&lt;BR /&gt;&lt;BR /&gt; [why would you use this? it can be useful for I/O redirection, (add "&amp;gt; file") or I/O supression (add "&amp;gt;nl: 2&amp;gt;nl:")]&lt;BR /&gt;&lt;BR /&gt;  Using a pipe separator "|" causes the pipe segments to be executed in subprocesses.&lt;BR /&gt;&lt;BR /&gt;  The simplest way to get what I assume you want is to add a SET PROCESS command to the relevant pipe segment.&lt;BR /&gt;&lt;BR /&gt;$ PIPE (SET PROCESS/UNIT=BYTE ; SHOW DEVICE D/MOUNT) | TYPE SYS$PIPE&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Sep 2008 22:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/strange-occurance-when-mixing-quot-set-proc-unit-byte-quot-and/m-p/5131792#M44625</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-09-28T22:09:28Z</dc:date>
    </item>
  </channel>
</rss>

