<?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 how to write dcl to shell in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508333#M42901</link>
    <description>! cee_dir_command.com - SPECIAL for CEE:&lt;BR /&gt;$!&lt;BR /&gt;$ set term/width=132&lt;BR /&gt;$ DIR/Date=Created/nosize/noheader/ -&lt;BR /&gt;width=(filename=90,display=130)/ -&lt;BR /&gt;exc=(OLD_*.*,ORIG_*.*,CYCLE*.COM,CEE*.*,VCCL_*.*,VISUALEXPLOR*.*)/ -&lt;BR /&gt;output=cee.txt  -&lt;BR /&gt;'p1'*.prg;0,*.com;0&lt;BR /&gt;$set term/width=80&lt;BR /&gt;$ write sys$output "-- output file created is named CEE.TXT"&lt;BR /&gt;$exit&lt;BR /&gt;Please translate the above script</description>
    <pubDate>Tue, 06 Oct 2009 06:15:12 GMT</pubDate>
    <dc:creator>sreereddy</dc:creator>
    <dc:date>2009-10-06T06:15:12Z</dc:date>
    <item>
      <title>how to write dcl to shell</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508333#M42901</link>
      <description>! cee_dir_command.com - SPECIAL for CEE:&lt;BR /&gt;$!&lt;BR /&gt;$ set term/width=132&lt;BR /&gt;$ DIR/Date=Created/nosize/noheader/ -&lt;BR /&gt;width=(filename=90,display=130)/ -&lt;BR /&gt;exc=(OLD_*.*,ORIG_*.*,CYCLE*.COM,CEE*.*,VCCL_*.*,VISUALEXPLOR*.*)/ -&lt;BR /&gt;output=cee.txt  -&lt;BR /&gt;'p1'*.prg;0,*.com;0&lt;BR /&gt;$set term/width=80&lt;BR /&gt;$ write sys$output "-- output file created is named CEE.TXT"&lt;BR /&gt;$exit&lt;BR /&gt;Please translate the above script</description>
      <pubDate>Tue, 06 Oct 2009 06:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508333#M42901</guid>
      <dc:creator>sreereddy</dc:creator>
      <dc:date>2009-10-06T06:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to write dcl to shell</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508334#M42902</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;The dir command translates in a shell in a ls or in a find command, depending upon circumstances.&lt;BR /&gt;&lt;BR /&gt;$ set term/wid=80 translates to stty col 80&lt;BR /&gt;&lt;BR /&gt;and write sys$output translates to echo</description>
      <pubDate>Tue, 06 Oct 2009 06:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508334#M42902</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2009-10-06T06:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to write dcl to shell</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508335#M42903</link>
      <description>The set term is not required when doing /out.&lt;BR /&gt;May be it is there to do debugging without the /out.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 06 Oct 2009 07:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508335#M42903</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-10-06T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to write dcl to shell</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508336#M42904</link>
      <description>Porting off of OpenVMS, eh?   OK.  &lt;BR /&gt;&lt;BR /&gt;Asking OpenVMS folks in an OpenVMS forum to write Unix shell code?  That's likely not the most expedient course here.&lt;BR /&gt;&lt;BR /&gt;There are forums around for folks that know Unix shell scripting; there are some folks here, but fewer.  Best to use a Unix forum, and describe what you want done here; it looks like somebody's established a list of files they don't want to see in a directory listing.&lt;BR /&gt;&lt;BR /&gt;The only command within that DCL procedure that matters here is the directory command.  The "stuff" around it is likely intended to encourage the DIRECTORY command to display full-width filenames (sans wrapping) for what are undoubtedly long filenames used in the default directory.&lt;BR /&gt;&lt;BR /&gt;As for the commands most likely used here over on Unix:&lt;BR /&gt;&lt;BR /&gt;man ls&lt;BR /&gt;man grep&lt;BR /&gt;&lt;BR /&gt;You'll likely be piping the output from ls into grep to remove the filenames you don't want to see; regular expressions.  There are other ways (like find or such) to "nest" shell commands to act on individual files.&lt;BR /&gt;&lt;BR /&gt;DCL and bash command comparison:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/741" target="_blank"&gt;http://labs.hoffmanlabs.com/node/741&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;One wrinkle: there is no direct analog for the OpenVMS created date on various Unix boxes.  Mac OS X, various BSD and some other Unix boxes do have a creation date.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/138" target="_blank"&gt;http://labs.hoffmanlabs.com/node/138&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Oct 2009 10:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508336#M42904</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-10-06T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to write dcl to shell</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508337#M42905</link>
      <description>Impossible! &lt;BR /&gt;That's the 'fun' answer because using file systems do NOT have a 'create time' attribute.&lt;BR /&gt;&lt;BR /&gt;What problem are your really trying to solve?&lt;BR /&gt;Please provide a slightly larger context.&lt;BR /&gt;What is the crux of your question... the exclusions or the byte offsets for the columns of data or all?&lt;BR /&gt;&lt;BR /&gt;My guess is that you need a file with directory information to be further processed by a next stage, maybe to drive an FTP or other job.&lt;BR /&gt;&lt;BR /&gt;If you force Unix style commands to generate OpenVMS formatted output, than that next phase will have to be coded to un-ravel that.&lt;BR /&gt;&lt;BR /&gt;It may be better to just accept the 'ls -l' output and enjoy the optional date ordering it offers, and post-filter it with GREP or AWK.&lt;BR /&gt;Something like: &lt;BR /&gt;ls -l | awk '!/^OLD/ &amp;amp;&amp;amp; !/^ORIG/ &amp;amp;&amp;amp; ... { print $8 }&lt;BR /&gt;&lt;BR /&gt;Now for the exclusion please consider whether that list was driven due to the WEAKNESS of OpenVMS to specify inclusions. On OpenVMS you can only specify a wildcard character or range. On Unix you can specify specific values for example 200[89] to specify just the last 2 years. On OpenVMS that would be 200? and you would have to post-filter.&lt;BR /&gt;&lt;BR /&gt;Personally I would look for a solution which would work on Unix as well as OpenVMS, for obvious test reasons.&lt;BR /&gt;For example some PERL similar to:&lt;BR /&gt;&lt;BR /&gt;use Cwd;&lt;BR /&gt;for (&amp;lt;*.*&amp;gt;) {&lt;BR /&gt;  next if /^old/i or/^orig/i or /^cycl*com$/;  &lt;BR /&gt;  printf "%-90s%s\n", cwd().$_, scalar localtime((stat)[9]);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.</description>
      <pubDate>Tue, 06 Oct 2009 11:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-write-dcl-to-shell/m-p/4508337#M42905</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-10-06T11:48:21Z</dc:date>
    </item>
  </channel>
</rss>

