<?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: Case/switch statement in DCL in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142024#M44867</link>
    <description>Or use the shell and the suite of shell tools that are available as part of the HP GNV download for OpenVMS, and write your shell scripts in bash.</description>
    <pubDate>Thu, 20 Nov 2008 14:05:55 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2008-11-20T14:05:55Z</dc:date>
    <item>
      <title>Case/switch statement in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142020#M44863</link>
      <description>A question I couldn't really find. &lt;BR /&gt;Is there any equivalent statement call to case/switch and is there something like linux "shift"?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
      <pubDate>Thu, 20 Nov 2008 12:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142020#M44863</guid>
      <dc:creator>Fredrik.eriksson</dc:creator>
      <dc:date>2008-11-20T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Case/switch statement in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142021#M44864</link>
      <description>Fredrik,&lt;BR /&gt;&lt;BR /&gt;Yes. This is a question that is actually in the backlog for my OpenVMS Consultant column on OpenVMS.org (see &lt;A href="http://www.openvms.org" target="_blank"&gt;http://www.openvms.org&lt;/A&gt; ).&lt;BR /&gt;&lt;BR /&gt;The way that a case/switch (aka FORTRAN computed GOTO) is handled is via use of symbol substitution, to wit:&lt;BR /&gt;&lt;BR /&gt;   $ X = 15&lt;BR /&gt;   $ ...&lt;BR /&gt;   $ IF  (X .LT. 0) .OR. (X. GT. 20)&lt;BR /&gt;   $   THEN&lt;BR /&gt;   $       .... (Error Processing) ...&lt;BR /&gt;   $       ENDIF&lt;BR /&gt;   $!&lt;BR /&gt;   $ GOTO TARGET_'X'&lt;BR /&gt;   $!&lt;BR /&gt;   $ TARGET_0:&lt;BR /&gt;   $ ...&lt;BR /&gt;   $ GOTO TARGET_COMMON:&lt;BR /&gt;   $!&lt;BR /&gt;   $ TARGET_1:&lt;BR /&gt;   $ ...&lt;BR /&gt;   $ TARGET_20:&lt;BR /&gt;   $ ...&lt;BR /&gt;   $ TARGET_COMMON:&lt;BR /&gt;&lt;BR /&gt;The usual tricks that can be done with this class of construct (e.g., coalescing different cases) are straightforward.&lt;BR /&gt;&lt;BR /&gt;I hope that the above is helpful.&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, 20 Nov 2008 13:19:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142021#M44864</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-11-20T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Case/switch statement in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142022#M44865</link>
      <description>&lt;!--!*#--&gt;Thank you, that's what I thought. Was just hoping there was something like the linux case-statement, like this:&lt;BR /&gt;case $1 in&lt;BR /&gt;  case-trigger)&lt;BR /&gt;&lt;BR /&gt;  ;;&lt;BR /&gt;  shift&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
      <pubDate>Thu, 20 Nov 2008 13:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142022#M44865</guid>
      <dc:creator>Fredrik.eriksson</dc:creator>
      <dc:date>2008-11-20T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Case/switch statement in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142023#M44866</link>
      <description>Fredrik,&lt;BR /&gt;&lt;BR /&gt;With all due respect, there is no "linux case statement", it is a shell case statement.&lt;BR /&gt;&lt;BR /&gt;There is a shell available on OpenVMS, is is available as part of the separate tools installation.&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, 20 Nov 2008 13:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142023#M44866</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-11-20T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Case/switch statement in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142024#M44867</link>
      <description>Or use the shell and the suite of shell tools that are available as part of the HP GNV download for OpenVMS, and write your shell scripts in bash.</description>
      <pubDate>Thu, 20 Nov 2008 14:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/case-switch-statement-in-dcl/m-p/5142024#M44867</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-11-20T14:05:55Z</dc:date>
    </item>
  </channel>
</rss>

