<?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: DCL SCRIPT in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038903#M35934</link>
    <description>&amp;gt;There is nothing so useless as doing &lt;BR /&gt;&amp;gt;efficiently that which should not be done &lt;BR /&gt;&amp;gt;at all"        &lt;BR /&gt;&amp;gt;- David Lloyd George&lt;BR /&gt;&lt;BR /&gt;Wow Hein, you sure can say that again!  ;^)  (Especially when it appears that what he wants to do can be done in one simple line of DCL. ;^) )&lt;BR /&gt;&lt;BR /&gt;The base noter never responded to Hein's original questions, in particular this one:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also... the examples suggest that if there &amp;gt;&lt;BR /&gt;&amp;gt;are duplicates, then they will be adjacent?&lt;BR /&gt;&amp;gt;Is that always the case? &lt;BR /&gt;&lt;BR /&gt;Assuming duplicates are adjacent, then the solution should be as simple as:&lt;BR /&gt;&lt;BR /&gt;$merge/nodup/nocheck_seq file.in file.out&lt;BR /&gt;&lt;BR /&gt;However, I suspect I've found a bug in SORT.  That command only works correctly (my interpretation of correct) if you use HYPERSORT.  It should be no big deal to use HYPERSORT, simply define the following logical: &lt;BR /&gt;&lt;BR /&gt;$define sortshr sys$library:hypersort.exe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the capture below, I demonstrate the command with the default sort and then again with HYPERSORT.  For more information on HYPERSORT, see The HP OpenVMS Users Manual, Chapter 9.  HYPERSORT is discussed in 9.1.  Hein alreaady provided the pointer, but, here it is again: &lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ty file.txt&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;$merge/nodup/nocheck_seq file.txt file.out&lt;BR /&gt;$ty file.out&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;$! Whoops - it didn't work!?&lt;BR /&gt;$! Let's try the High Performance Sort&lt;BR /&gt;$sho log sortshr&lt;BR /&gt;%SHOW-S-NOTRAN, no translation for logical name SORTSHR&lt;BR /&gt;$define sortshr sys$library:hypersort.exe&lt;BR /&gt;$merge/nodup/nocheck_seq file.txt file.out&lt;BR /&gt;$ty file.out&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Apr 2007 10:08:14 GMT</pubDate>
    <dc:creator>Brad McCusker</dc:creator>
    <dc:date>2007-04-10T10:08:14Z</dc:date>
    <item>
      <title>DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038895#M35926</link>
      <description>HI&lt;BR /&gt;  I am learning scripting in Open VMS.&lt;BR /&gt;I have a doubt in DCL Scripting. Please help&lt;BR /&gt;me in finding this.&lt;BR /&gt;  I want to restrict the occurance of a&lt;BR /&gt;string in a file to minimum - 1&lt;BR /&gt;I have a file with contents like shown below&lt;BR /&gt; i.e&lt;BR /&gt;   Hai&lt;BR /&gt;   Hai&lt;BR /&gt;   Hai&lt;BR /&gt;   Hai&lt;BR /&gt;   More &lt;BR /&gt;   More&lt;BR /&gt;   New&lt;BR /&gt;   New&lt;BR /&gt;    I want only 1 occurance of this strings&lt;BR /&gt;How can I do that using dcl commands&lt;BR /&gt;I dont want to change the order.&lt;BR /&gt;   The output I need is like below.&lt;BR /&gt;   Hai&lt;BR /&gt;   More&lt;BR /&gt;   New&lt;BR /&gt;  &lt;BR /&gt;Please help me in doing this&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Mon, 09 Apr 2007 09:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038895#M35926</guid>
      <dc:creator>GNJ</dc:creator>
      <dc:date>2007-04-09T09:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038896#M35927</link>
      <description>Jayakrishnan,&lt;BR /&gt;&lt;BR /&gt;You would have to use the READ statement to read the records of the file into variables and process the entire file. Writing a DCL script in to do this is precisely the same as writing the equivalent program in C/FORTRAN/COBOL, excpt for the syntax.&lt;BR /&gt;&lt;BR /&gt;DCL also does not have arrays, at least directly. You can fake arrays by using symbol substitution.&lt;BR /&gt;&lt;BR /&gt;I would give you a quick example, but I have to run back to a meeting in a few minutes.&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>Mon, 09 Apr 2007 09:20:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038896#M35927</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-04-09T09:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038897#M35928</link>
      <description>&amp;gt;&amp;gt; How can I do that using dcl commands&lt;BR /&gt;Do you consider perl a dcl command? I do.&lt;BR /&gt;The solution in perl is trivial:&lt;BR /&gt;&lt;BR /&gt;$ perl -ne "print unless $seen{$_}++" old.txt &amp;gt; new.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I dont want to change the order.&lt;BR /&gt;&lt;BR /&gt;That's a critical observation.&lt;BR /&gt;The example data presented is actually sorted.&lt;BR /&gt;For that (special?) case you can use&lt;BR /&gt;$SORT/NODUPLI old.txt new.txt&lt;BR /&gt;&lt;BR /&gt;Also... the examples suggest that if there are duplicates, then they will be adjacent?&lt;BR /&gt;Is that always the case? If so, the DCL becomes easy:&lt;BR /&gt;&lt;BR /&gt;$! ------------- filter.com ----------&lt;BR /&gt;$if p2.eqs."" then goto usage&lt;BR /&gt;$last = ""&lt;BR /&gt;$close/nolog in&lt;BR /&gt;$close/nolog out&lt;BR /&gt;$open in 'p1&lt;BR /&gt;$create 'p2'/log&lt;BR /&gt;$open/appen out 'p2&lt;BR /&gt;$loop:&lt;BR /&gt;$read/end=done in record&lt;BR /&gt;$if record .eqs. last then goto loop&lt;BR /&gt;$last = record&lt;BR /&gt;$write/symbol out record&lt;BR /&gt;$goto loop&lt;BR /&gt;$&lt;BR /&gt;$done:&lt;BR /&gt;$close/nolog in&lt;BR /&gt;$close/nolog out&lt;BR /&gt;$exit&lt;BR /&gt;$&lt;BR /&gt;$usage:&lt;BR /&gt;$write sys$output "ERROR: Must provide input and output file argument"&lt;BR /&gt;$exit&lt;BR /&gt;&lt;BR /&gt;Sample&lt;BR /&gt;&lt;BR /&gt;$@filter old.txt new.txt&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I want only 1 occurance of this strings&lt;BR /&gt;&lt;BR /&gt;May we assume the FIRST occurence needs to be retained?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; The output I need is like below.&lt;BR /&gt;&lt;BR /&gt;Hmmm... the example input has a SPACE behind one of the 'More' lines.&lt;BR /&gt;If there is a space, should it stay, as your output example suggest, or stay?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038897#M35928</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-09T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038898#M35929</link>
      <description>&lt;BR /&gt;&amp;gt;&amp;gt; I am learning scripting in Open VMS.&lt;BR /&gt;&lt;BR /&gt;Ooops, I failed to react to the most important line in the topic. Sorry.&lt;BR /&gt;&lt;BR /&gt;RTFM! notably:&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489PRO.HTML" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489PRO.HTML&lt;/A&gt;&lt;BR /&gt;Chapter 13, 14,...&lt;BR /&gt;&lt;BR /&gt;Be sure to check back to your prior questions such as. Carefully read all answers, question everthing (for yourself), use the HELP to exaplain. Follow all links. Read! Try! Try again!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1102838" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1102838&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038898#M35929</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-09T09:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038899#M35930</link>
      <description>Hi&lt;BR /&gt;  I have achieved this with a command,&lt;BR /&gt;But some warning messages are coming.&lt;BR /&gt;I want to avoid this. &lt;BR /&gt;  I will give what I have done -below&lt;BR /&gt;$ type hai.txt&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;$ pipe type hai.txt|merge/nodup sys$pipe new.txt&lt;BR /&gt;%SORT-W-BAD_ORDER, merge input is out of order&lt;BR /&gt;%SORT-W-BAD_ORDER, merge input is out of order&lt;BR /&gt;$ type new.txt&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;&lt;BR /&gt;  I got the output I needed but warning message has come. Can we avoid this error &lt;BR /&gt;message by doing something?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jayakrishnan G Naik&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038899#M35930</guid>
      <dc:creator>GNJ</dc:creator>
      <dc:date>2007-04-09T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038900#M35931</link>
      <description>&amp;gt;&amp;gt; $ pipe type hai.txt|merge/nodup sys$pipe new.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ouch, booh, hiss, bad Unix thinking!&lt;BR /&gt;&lt;BR /&gt;On VMS most actions operate on identified files.&lt;BR /&gt;They do NOT assume STDIN, STDOUT nor STDERR.&lt;BR /&gt;&lt;BR /&gt;Just give SORT, MERGE or whatever the input file. Do NOT force a pipe.&lt;BR /&gt;&lt;BR /&gt;To suppress the error messages you could redirect 'extra' messages to a file for the duration of the command:&lt;BR /&gt;&lt;BR /&gt;$ define/user sys$output errors.log&lt;BR /&gt;$ define/user sys$error errors.log&lt;BR /&gt;$ merg/nodup/stat tmp.txt new.tmp&lt;BR /&gt;$ type errors.log&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 10:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038900#M35931</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-09T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038901#M35932</link>
      <description>Jayakrishnan,&lt;BR /&gt;&lt;BR /&gt;Welcome to the beautiful world of VMS!&lt;BR /&gt;&lt;BR /&gt;I came onto similar problems several times, where there were dozens of different items, not always all present, not in any orider, and randomly mixed, in thousends of input lines.&lt;BR /&gt;&lt;BR /&gt;Rougly, I used this:&lt;BR /&gt;&lt;BR /&gt;$ count = 0&lt;BR /&gt;$ item_zero = ""&lt;BR /&gt;$ open/read infile &lt;INPUTFILE&gt;&lt;BR /&gt;$ open/write outfile &lt;OUTPUTFILE&gt;&lt;BR /&gt;$loop1:&lt;BR /&gt;$ counter = 0&lt;BR /&gt;$ read infile rec /end=done&lt;BR /&gt;$loop2:&lt;BR /&gt;$ counter = counter + 1&lt;BR /&gt;$ if counter .gt. count&lt;BR /&gt;$ then &lt;BR /&gt;$  count = count + 1&lt;BR /&gt;$  item_'count = rec&lt;BR /&gt;$  goto loop1&lt;BR /&gt;$ else&lt;BR /&gt;$  if rec .eqs. item_'counter  ! already got this one&lt;BR /&gt;$  !  mayby increase tally?&lt;BR /&gt;$   goto loop1&lt;BR /&gt;$  endif&lt;BR /&gt;$ goto loop2&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto loop1&lt;BR /&gt;$done:&lt;BR /&gt;$ counter = 1&lt;BR /&gt;$loop3:&lt;BR /&gt;$ if counter .gt. count then goto the_end&lt;BR /&gt;$ write outfile item_'counter&lt;BR /&gt;$ counter = counter + 1&lt;BR /&gt;$ goto loop3&lt;BR /&gt;$ close infile&lt;BR /&gt;$ close outfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ot course, this can be extended by considering only partial records, and tallying, and &lt;WHATEVER needs="" arises=""&gt;&lt;BR /&gt;But you get the general idea.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/WHATEVER&gt;&lt;/OUTPUTFILE&gt;&lt;/INPUTFILE&gt;</description>
      <pubDate>Mon, 09 Apr 2007 10:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038901#M35932</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-04-09T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038902#M35933</link>
      <description>&lt;!--!*#--&gt;"There is nothing so useless as doing efficiently that which should not be done at all"        &lt;BR /&gt;- David Lloyd George&lt;BR /&gt;&lt;BR /&gt;With that in mind, here is an advanced solution for the stated problem. It needs a helper program for which the macro source is attached.&lt;BR /&gt;&lt;BR /&gt;SORT has a special option call /PROC=ADDRESS&lt;BR /&gt;When this is selected, sort will not spit out the data for the selected and sorted records, but only the (6-byte) RFAs for those records pointing back to the input file.&lt;BR /&gt;&lt;BR /&gt;For a sequential file the RFA is in fact a 4 byte VBN for the file block in which the record starts, and a 2 byte byte offset.&lt;BR /&gt;&lt;BR /&gt;So if one were to sort the address file, then the pointers will be back in original order.&lt;BR /&gt;&lt;BR /&gt;But how to get the data itself from RFA's?&lt;BR /&gt;I don't think there is a standard tool for that.&lt;BR /&gt;DIX or DATATRIEVE might be able to to is (&lt;A href="http://oooovms.dyndns.org/dix/)." target="_blank"&gt;http://oooovms.dyndns.org/dix/).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The attached program will do it.&lt;BR /&gt;It takes an input file and a file with rfa's pointing back into that input file to extract data.&lt;BR /&gt;&lt;BR /&gt;The solution then becomes:&lt;BR /&gt;&lt;BR /&gt;$define rfa_input old.txt&lt;BR /&gt;$sort/nodup/stat rfa_input tmp.rfa/proces=address&lt;BR /&gt;$sort/key=(pos:1,siz:4,unsigned,binary)/key=(pos:5,siz:2,unsigned,binary) tmp.rfa rfa_select.rfa&lt;BR /&gt;$define rfa_output tt:&lt;BR /&gt;$run rfa ! attached MACRO program &lt;BR /&gt;&lt;BR /&gt;Back to real work...&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 13:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038902#M35933</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-09T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038903#M35934</link>
      <description>&amp;gt;There is nothing so useless as doing &lt;BR /&gt;&amp;gt;efficiently that which should not be done &lt;BR /&gt;&amp;gt;at all"        &lt;BR /&gt;&amp;gt;- David Lloyd George&lt;BR /&gt;&lt;BR /&gt;Wow Hein, you sure can say that again!  ;^)  (Especially when it appears that what he wants to do can be done in one simple line of DCL. ;^) )&lt;BR /&gt;&lt;BR /&gt;The base noter never responded to Hein's original questions, in particular this one:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also... the examples suggest that if there &amp;gt;&lt;BR /&gt;&amp;gt;are duplicates, then they will be adjacent?&lt;BR /&gt;&amp;gt;Is that always the case? &lt;BR /&gt;&lt;BR /&gt;Assuming duplicates are adjacent, then the solution should be as simple as:&lt;BR /&gt;&lt;BR /&gt;$merge/nodup/nocheck_seq file.in file.out&lt;BR /&gt;&lt;BR /&gt;However, I suspect I've found a bug in SORT.  That command only works correctly (my interpretation of correct) if you use HYPERSORT.  It should be no big deal to use HYPERSORT, simply define the following logical: &lt;BR /&gt;&lt;BR /&gt;$define sortshr sys$library:hypersort.exe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the capture below, I demonstrate the command with the default sort and then again with HYPERSORT.  For more information on HYPERSORT, see The HP OpenVMS Users Manual, Chapter 9.  HYPERSORT is discussed in 9.1.  Hein alreaady provided the pointer, but, here it is again: &lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_contents.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ty file.txt&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;$merge/nodup/nocheck_seq file.txt file.out&lt;BR /&gt;$ty file.out&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;TIN&lt;BR /&gt;$! Whoops - it didn't work!?&lt;BR /&gt;$! Let's try the High Performance Sort&lt;BR /&gt;$sho log sortshr&lt;BR /&gt;%SHOW-S-NOTRAN, no translation for logical name SORTSHR&lt;BR /&gt;$define sortshr sys$library:hypersort.exe&lt;BR /&gt;$merge/nodup/nocheck_seq file.txt file.out&lt;BR /&gt;$ty file.out&lt;BR /&gt;Hai&lt;BR /&gt;New&lt;BR /&gt;END&lt;BR /&gt;TIN&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 10:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038903#M35934</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2007-04-10T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038904#M35935</link>
      <description>Hi Brad&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Especially when it appears that what he wants to do can be done in one simple line of DCL. ;^)&lt;BR /&gt;&lt;BR /&gt;I tried that line, but it did not work even for the simple case.&lt;BR /&gt;Dunno why I did not challenge that as a bug.&lt;BR /&gt;&lt;BR /&gt;Anyway, it certainly would not work for the most general case where the duplicates are not adjacent.&lt;BR /&gt;&lt;BR /&gt;I did not think about using Hypersort though!&lt;BR /&gt;Excellent workaround!&lt;BR /&gt;&lt;BR /&gt;btw... directing hypersort output to tt: does not work. The carriage return attributes are not respected. Need to go to a file and then type as Brad shows.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 10:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038904#M35935</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-10T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038905#M35936</link>
      <description>FWIW - the VMS Engineer responsible for maintaining SORT/HYPERSORT has been notified.&lt;BR /&gt;&lt;BR /&gt;Brad McCusker&lt;BR /&gt;Software Concepts International&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sciinc.com/" target="_blank"&gt;http://www.sciinc.com/&lt;/A&gt;</description>
      <pubDate>Tue, 10 Apr 2007 11:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038905#M35936</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2007-04-10T11:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: DCL SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038906#M35937</link>
      <description>HI&lt;BR /&gt;   Thanks for the valuable info.&lt;BR /&gt;All were useful and I resolved the&lt;BR /&gt;issue.&lt;BR /&gt;   Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan g Naik</description>
      <pubDate>Mon, 23 Apr 2007 23:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script/m-p/5038906#M35937</guid>
      <dc:creator>GNJ</dc:creator>
      <dc:date>2007-04-23T23:31:47Z</dc:date>
    </item>
  </channel>
</rss>

