<?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: Diplaying TOP 10 messages of  a file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679945#M72985</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot I could complete the job.</description>
    <pubDate>Tue, 06 Dec 2005 05:06:25 GMT</pubDate>
    <dc:creator>Sk Noorul  Hassan</dc:creator>
    <dc:date>2005-12-06T05:06:25Z</dc:date>
    <item>
      <title>Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679937#M72977</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to display first 10 messages from a file that contains more than 150 messages which is created by running an executable in VMS. I want to write a dcl script for the user, who on click will get only first 10 messages on his screen.&lt;BR /&gt;&lt;BR /&gt;Pls suggest.</description>
      <pubDate>Mon, 28 Nov 2005 07:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679937#M72977</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-11-28T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679938#M72978</link>
      <description>What's a "message"?  "Click"?&lt;BR /&gt;&lt;BR /&gt;HELP OPEN&lt;BR /&gt;HELP IF&lt;BR /&gt;HELP READ&lt;BR /&gt;HELP WRITE&lt;BR /&gt;HELP GOTO&lt;BR /&gt;HELP CLOSE&lt;BR /&gt;&lt;BR /&gt;A UNIX "head" program might also be useful.</description>
      <pubDate>Mon, 28 Nov 2005 07:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679938#M72978</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2005-11-28T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679939#M72979</link>
      <description>Here a small hack to do what You want to do&lt;BR /&gt;&lt;BR /&gt;$ ON CONTROL_Y THEN GOTO clean_up&lt;BR /&gt;$ max_lines = 10&lt;BR /&gt;$ IF P1 .EQS. "" THEN INQUIRE P1 "Enter File Name "&lt;BR /&gt;$ IF F$SEARCH(P1) .EQS. ""&lt;BR /&gt;$       THEN&lt;BR /&gt;$       WRITE SYS$OUTPUT "File ''P1' not found "&lt;BR /&gt;$       GOTO clean_up&lt;BR /&gt;$       ENDIF&lt;BR /&gt;$ OPEN/READ in 'P1'&lt;BR /&gt;$r_loop:&lt;BR /&gt;$ READ/END_OF_FILE=end_file in record&lt;BR /&gt;$ WRITE SYS$OUTPUT record&lt;BR /&gt;$ max_lines = max_lines -1&lt;BR /&gt;$ IF max_lines .GT. 0 THEN GOTO r_loop&lt;BR /&gt;$!&lt;BR /&gt;$end_file:&lt;BR /&gt;$ CLOSE in&lt;BR /&gt;$clean_up:&lt;BR /&gt;$ IF F$TRNLNM("in") .NES. "" THEN CLOSE IN&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;Hope that helps</description>
      <pubDate>Mon, 28 Nov 2005 07:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679939#M72979</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2005-11-28T07:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679940#M72980</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;What VMS version?&lt;BR /&gt;Beginning in V7.3-2 SEARCH has some real nice new features.&lt;BR /&gt;$ SEARCH &lt;FILE&gt; "something crazy"/MATCH=NOR/LIMIT=10&lt;BR /&gt;will do what you are asking.&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;/FILE&gt;</description>
      <pubDate>Mon, 28 Nov 2005 07:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679940#M72980</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-11-28T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679941#M72981</link>
      <description>&lt;BR /&gt;Do you mean the first lines in the file, like the Unix 'head' command?&lt;BR /&gt;&lt;BR /&gt;If you have perl installed, that solves as:&lt;BR /&gt;&lt;BR /&gt;perl -pe "last if $. &amp;gt; 10" x.c&lt;BR /&gt;&lt;BR /&gt;explanation:&lt;BR /&gt; -p = loop through input reading into variable $_ printing $_ at block end.&lt;BR /&gt; -e = program text coming up&lt;BR /&gt; &lt;BR /&gt; last = exit loop&lt;BR /&gt; $. = current line in input&lt;BR /&gt; &amp;gt; 10 = your top choice&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using a standard VMS tool like edt, you could (pre-)create a command sequence:&lt;BR /&gt;&lt;BR /&gt;$ create top_ten.edt&lt;BR /&gt;set nonumbers&lt;BR /&gt;type 1:10&lt;BR /&gt;quit&lt;BR /&gt;$&lt;BR /&gt;$edit/edit/command=top_ten.edt your-data&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Or do you mean a sort of statistics function, finding the messages which occur most often? Then the solution in perl gets trickier&lt;BR /&gt;&lt;BR /&gt;perl -ne "$x{$_}++; END {foreach (sort {$x{$b}&amp;lt;=&amp;gt;$x{$a}} keys %x) {last if ++$i &amp;gt; 10; print ""$x{$_} $_"" }}" your-data&lt;BR /&gt;&lt;BR /&gt;-n = loop through input, but do not print&lt;BR /&gt;-e = program&lt;BR /&gt;$x{$_}++ = (create and) increment element with key $_ in array %x&lt;BR /&gt;END = do this when input exhausted&lt;BR /&gt;keys %x = all keys from array, in a list&lt;BR /&gt;sort = sort, normally by key value, but here we provide a sort routine comparing not the key values, but the pointed to array values.&lt;BR /&gt;foreach = loop through list setting $_ each time&lt;BR /&gt;last if ++$i &amp;gt; 10 = your output cut-off choice&lt;BR /&gt;print = finally... what we came to do.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2005 09:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679941#M72981</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-28T09:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679942#M72982</link>
      <description>[Some corrections.. I pasted the wrong buffer..]&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  perl -pe "last if $. &amp;gt; 10" x.c&lt;BR /&gt;&lt;BR /&gt;The x.c was the text I tested with.&lt;BR /&gt;To be replaced by 'your_data'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; $edit/edit/command=top_ten.edt your-data&lt;BR /&gt;&lt;BR /&gt;That was of course supposed to be: EDIT/EDT&lt;BR /&gt;Some folks will need EDITXX/EDT, or just EDT to deal with local defintions for EDIT or EDT.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2005 10:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679942#M72982</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-28T10:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679943#M72983</link>
      <description>Noorul,&lt;BR /&gt;&lt;BR /&gt;There is one more good VMS freeware (Hunter Goatley's) 'extract' utlity.&lt;BR /&gt;&lt;BR /&gt;You can download and install it within a minute from &lt;A href="http://vms.process.com/scripts/fileserv/fileserv.com?EXTRACT" target="_blank"&gt;http://vms.process.com/scripts/fileserv/fileserv.com?EXTRACT&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has so many facilities such as selecting any number of records from the biginning, middle, or end of one file or more files and optionally performs various modifications before displaying on the screen.&lt;BR /&gt;&lt;BR /&gt;Syntax and example&lt;BR /&gt;&lt;BR /&gt;$ extract /record=([START=m,END=n,COUNT=k]) file1, file2...&lt;BR /&gt;$ extract /record=(start=5, count=15) file1&lt;BR /&gt;---&amp;gt; displays 10 lines starting from 5th line.&lt;BR /&gt;&lt;BR /&gt;$ extract /head=k file1&lt;BR /&gt;$ extract /head=10 file1&lt;BR /&gt;---&amp;gt;displays top 10 lines&lt;BR /&gt;&lt;BR /&gt;$ extract /tail=k file1&lt;BR /&gt;$ extract /tail=10 files&lt;BR /&gt;---&amp;gt; displays bottom 10 lines&lt;BR /&gt;&lt;BR /&gt;We are using this for long time. And there few more freeware utilities avalible for VMS, but I feel this is very easy.&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Mon, 28 Nov 2005 12:10:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679943#M72983</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-28T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679944#M72984</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;  As others have said, it depends on what you mean by "message". If you mean "line" the most obvious is the V7.3-2 and higher SEARCH command. You don't need to use /NOR as suggested by Jan, just search for a null string:&lt;BR /&gt;&lt;BR /&gt; $ SEARCH file ""/LIMIT=10&lt;BR /&gt;&lt;BR /&gt;You can combine this with /SKIP to select any range of the file you like. For example, suppose you wanted 10 lines starting at line 25:&lt;BR /&gt;&lt;BR /&gt; $ SEARCH file ""/SKIP=25/LIMIT=10&lt;BR /&gt;&lt;BR /&gt;If your messages contain a specific string, search for that, again with /LIMIT&lt;BR /&gt;&lt;BR /&gt;Another option is TYPE/PAGE combined with SET TERM/PAGE:&lt;BR /&gt;&lt;BR /&gt;$ SET TERMINAL/PAGE=10&lt;BR /&gt;$ TYPE/PAGE file&lt;BR /&gt;&lt;BR /&gt;Of course, this leaves your terminal at 10 pages, which probably isn't a good idea! Save and restore like this:&lt;BR /&gt;&lt;BR /&gt;$ p=F$GETDVI("SYS$COMMAND","TT_PAGE")&lt;BR /&gt;$ SET TERMINAL/PAGE=10&lt;BR /&gt;$ TYPE/PAGE file&lt;BR /&gt;$ SET TERMINAL/PAGE='p'&lt;BR /&gt;&lt;BR /&gt;Your users will need to hit ^Z to exit from the display, or can hit RETURN or any other commands for TYPE/PAGE.&lt;BR /&gt;&lt;BR /&gt;Less likely to be useful, but worth knowing about is DUMP/RECORD=(START:s,COUNT:c)&lt;BR /&gt;&lt;BR /&gt;This dumps "c" records starting at record "s" (0 based), however, the output probably isn't what you're looking for. &lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2005 16:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679944#M72984</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-28T16:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679945#M72985</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot I could complete the job.</description>
      <pubDate>Tue, 06 Dec 2005 05:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679945#M72985</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-06T05:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679946#M72986</link>
      <description>Hi all,&lt;BR /&gt;MY VMS version is 7.1, so search command as suggested by john is not working. It is also not possible to load any additional freeware as suggested. &lt;BR /&gt;&lt;BR /&gt;I have completed the job now,&lt;BR /&gt;&lt;BR /&gt;Heinz, &lt;BR /&gt;Is it possible to take the final 10 messages to a file instead of displaying it on screen, so that I cam mail that file to end user. Pls if u can write few lines as before it will help me.</description>
      <pubDate>Tue, 06 Dec 2005 05:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679946#M72986</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-06T05:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679947#M72987</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;on your VMS version, you are practically restricted to:&lt;BR /&gt;&lt;BR /&gt;$ TYPE /TAIL=&amp;lt;#-of-lines&amp;gt; &lt;FILE-TO-TYPE&gt; /OUT=SYS$LOGIN:TAILTYPE.TMP&lt;BR /&gt;$ MAIL SYS$LOGIN:TAILTYPE.TMP &lt;RECIPIENTUSERNAME&gt;&lt;BR /&gt;$ DELETE SYS$LOGIN:TAILTYPE.TMP;*&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;BR /&gt;&lt;BR /&gt;&lt;/RECIPIENTUSERNAME&gt;&lt;/FILE-TO-TYPE&gt;</description>
      <pubDate>Tue, 06 Dec 2005 05:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679947#M72987</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-06T05:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679948#M72988</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I wrote 2 versions of a small hack. First example selects the first ten lines of a given file and sends it to a mail address. In both examples You must substitute the mail adress (xy) with Your own address.&lt;BR /&gt;&lt;BR /&gt;$! Copies first 10 Lines of a file into a temporary file and sends this file to mail_address&lt;BR /&gt;$!&lt;BR /&gt;$ ON CONTROL_Y THEN GOTO clean_up&lt;BR /&gt;$ unique_filename = F$UNIQUE()&lt;BR /&gt;$ mail_address = "xy"&lt;BR /&gt;$ max_lines = 10&lt;BR /&gt;$ IF P1 .EQS. "" THEN INQUIRE P1 "Enter File Name "&lt;BR /&gt;$ IF F$SEARCH(P1) .EQS. ""&lt;BR /&gt;$       THEN&lt;BR /&gt;$       WRITE SYS$OUTPUT "File ''P1' not found "&lt;BR /&gt;$       GOTO clean_up&lt;BR /&gt;$       ENDIF&lt;BR /&gt;$ OPEN/READ in 'P1'&lt;BR /&gt;$ OPEN/WRITE out 'unique_filename'.dat&lt;BR /&gt;$r_loop:&lt;BR /&gt;$ READ/END_OF_FILE=end_file in record&lt;BR /&gt;$ WRITE out record&lt;BR /&gt;$ max_lines = max_lines -1&lt;BR /&gt;$ IF max_lines .GT. 0 THEN GOTO r_loop&lt;BR /&gt;$!&lt;BR /&gt;$end_file:&lt;BR /&gt;$ CLOSE in&lt;BR /&gt;$ CLOSE out&lt;BR /&gt;$ MAIL/SUBJECT=test 'unique_filename'.dat 'mail_address'&lt;BR /&gt;$clean_up:&lt;BR /&gt;$ IF F$TRNLNM("in") .NES. "" THEN CLOSE in&lt;BR /&gt;$ IF F$TRNLNM("out") .NES. "" THEN CLOSE out&lt;BR /&gt;$ DELETE 'unique_filename'.dat;*&lt;BR /&gt;$ EXIT&lt;BR /&gt;                         &lt;BR /&gt;&lt;BR /&gt;Second example writes the 10 last lines of a file into a temporary file and sends it by email&lt;BR /&gt;&lt;BR /&gt;$! Creates a temporary file which contains the last ten lines of a given file. Se&lt;BR /&gt;$! sends the temporary file by mail&lt;BR /&gt;$!&lt;BR /&gt;$ ON CONTROL_Y THEN GOTO clean_up&lt;BR /&gt;$ mail_address = "xy"&lt;BR /&gt;$ IF P1 .EQS. "" THEN INQUIRE P1 "Enter Filename "&lt;BR /&gt;$ IF F$SEARCH(P1) .EQS. ""&lt;BR /&gt;$       THEN&lt;BR /&gt;$       WRITE SYS$OUTPUT "File ''P1' not found "&lt;BR /&gt;$       GOTO clean_up&lt;BR /&gt;$       ENDIF&lt;BR /&gt;$ unique_filename = F$UNIQUE()&lt;BR /&gt;$ TYP/TAIL=10 'P1'/OUT='unique_filename'.dat&lt;BR /&gt;$ MAIL/SUBJECT=test 'unique_filename'.dat 'mail_address'&lt;BR /&gt;$clean_up:&lt;BR /&gt;$ IF F$SEARCH("''unique_filename'.dat") .NES. "" THEN DELETE 'unique_filename'.dat;*&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Tue, 06 Dec 2005 05:57:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679948#M72988</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2005-12-06T05:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679949#M72989</link>
      <description>Heinz,&lt;BR /&gt;&lt;BR /&gt;look at his previous post: he is at VMS 7.1, so no F$UNIQUE available!&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>Tue, 06 Dec 2005 07:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679949#M72989</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-06T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679950#M72990</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;from your Forum Profile:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I have assigned points to 63 of 140  responses to my questions.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;Some of those are rather old.&lt;BR /&gt;&lt;BR /&gt;Maybe you can find some time to do some assigning?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.&lt;BR /&gt;Consider, that every poster took at least the trouble of posting for you!&lt;BR /&gt;&lt;BR /&gt;To easily find your streams with unassigned points, click your own name somewhere.&lt;BR /&gt;This will bring up your profile.&lt;BR /&gt;Near the bottom of that page, under the caption â  My Question(s)â   you will find â  questions or topics with unassigned points â   Clicking that will give all, and only, your questions that still have unassigned postings.&lt;BR /&gt;&lt;BR /&gt;Thanks on behalf of your Forum colleagues.&lt;BR /&gt;&lt;BR /&gt;PS.  â   nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before â   please do not take offence â   none is intended!&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>Tue, 06 Dec 2005 07:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679950#M72990</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-06T07:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679951#M72991</link>
      <description>Sorry, I did not see what VMS Version he uses.&lt;BR /&gt;&lt;BR /&gt;On vms 7.1 just change the line&lt;BR /&gt;&lt;BR /&gt;unique_filename = F$UNIQUE()&lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;&lt;BR /&gt;unique_filename ="temp_file_''F$GETJPI("","PID")'"&lt;BR /&gt;&lt;BR /&gt;That will solve the problem with the missing F$UNIQUE Lexical</description>
      <pubDate>Tue, 06 Dec 2005 08:34:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679951#M72991</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2005-12-06T08:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying TOP 10 messages of  a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679952#M72992</link>
      <description>&lt;BR /&gt;If your system supports the PIPE command you don't need an intermediate file:&lt;BR /&gt;&lt;BR /&gt;$pipe type/tail=10 more_test.tmp | mail/subj="testing" sys$pipe hein&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately this TYPE/TAIL fails on STM_LF files with:&lt;BR /&gt;-SYSTEM-E-UNSUPPORTED, unsupported operation or function&lt;BR /&gt;-RMS-F-ORG, invalid file organization value&lt;BR /&gt;&lt;BR /&gt;That's really silly because it is trivial to implement, but there you have it.&lt;BR /&gt;The workaround is to use an intermediate file, but then we're back to having to name that. (And no, $type/page does not work on a pipe :-( ).&lt;BR /&gt;&lt;BR /&gt;In the thinking outside the box solutions, I thought the following might work:&lt;BR /&gt;&lt;BR /&gt;$ i = 0&lt;BR /&gt;$open/read x test.tmp&lt;BR /&gt;$open/read y test.tmp&lt;BR /&gt;$loop1:&lt;BR /&gt;$read x x&lt;BR /&gt;$i = i + 1&lt;BR /&gt;$if i.lt.10 then goto loop1&lt;BR /&gt;$&lt;BR /&gt;$loop2:&lt;BR /&gt;$read/end=send_mail x x&lt;BR /&gt;$read y y&lt;BR /&gt;$goto loop2&lt;BR /&gt;$&lt;BR /&gt;$send_mail:&lt;BR /&gt;$mail/subj="last 10" y hein&lt;BR /&gt;$!type y&lt;BR /&gt;$close x&lt;BR /&gt;$close y&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Well... it works for $type, but not for $mail ?!&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Dec 2005 22:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/diplaying-top-10-messages-of-a-file/m-p/3679952#M72992</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-12-06T22:04:14Z</dc:date>
    </item>
  </channel>
</rss>

