<?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: DIsplaying a table in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750785#M33809</link>
    <description>Using DCL...sorry I forgot to include that.</description>
    <pubDate>Tue, 14 Mar 2006 11:13:13 GMT</pubDate>
    <dc:creator>Katherine Elliott</dc:creator>
    <dc:date>2006-03-14T11:13:13Z</dc:date>
    <item>
      <title>DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750784#M33808</link>
      <description>This question is kind of piggybacking on my first one.  As you saw in the attachment, at the end of every "This computer is clear statement" there is a :-).  Is there some way to create and display a table from a .rpt file that has two different columns - one would list all workstations whose results report contained a :-) and the other column would list the workstations that didn't contain a :-)?  I have reattached the document do you can see exactly how the print out looks.</description>
      <pubDate>Tue, 14 Mar 2006 11:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750784#M33808</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T11:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750785#M33809</link>
      <description>Using DCL...sorry I forgot to include that.</description>
      <pubDate>Tue, 14 Mar 2006 11:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750785#M33809</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T11:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750786#M33810</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;to begin with: &lt;BR /&gt;Welcome to the VMS forum!&lt;BR /&gt;&lt;BR /&gt;I am not sure if I understand your question correct.&lt;BR /&gt;Is your attachment showing your .RPT file proper? In other words, do you just need a reformatting program? If not, can you post a .RPT file?&lt;BR /&gt;If the top halve of your post _IS_ the .RPT, then a simple DCL will be all you need (and I am sure Hein will show up with a perl solution).&lt;BR /&gt;&lt;BR /&gt;Please supply more info.&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, 14 Mar 2006 11:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750786#M33810</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-03-14T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750787#M33811</link>
      <description>First, thanks for the welcome!  Yes the .rpt file is showing up fine.  It is being displayed as a list and since I have 21 work stations, the list is quite lengthy and carries over onto about 3 screens.  What I would like to do is to be able to display all 21 .rpt files on one screen - either in columns or in a table.</description>
      <pubDate>Tue, 14 Mar 2006 11:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750787#M33811</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750788#M33812</link>
      <description>Hello Katherine,&lt;BR /&gt;&lt;BR /&gt;fwiw... Your questions are close enough, that they would have best been left as a single topic IMHO.&lt;BR /&gt;&lt;BR /&gt;Do you have any (DCL) starting point already?&lt;BR /&gt;&lt;BR /&gt;Your first question is pretty tricky. Not hard hard, but probably a fair amount of work. If you insist on using DCL, then I'd suggest check out F$FAO. This is not the easiest lexical function to get going, but it is the best/only way to get clean formatting.&lt;BR /&gt;&lt;BR /&gt;I would recommend PERL for text processing challenges like this one. DCL can do it, but it'll be tedious.&lt;BR /&gt;&lt;BR /&gt;But anyway, I like the current question/direction better.&lt;BR /&gt;&lt;BR /&gt;Why not list all 'happy' nodes at the bottom, and give problematic systems the full line space they deserve?!&lt;BR /&gt;&lt;BR /&gt;Here is a sample script to get you going on that:&lt;BR /&gt;&lt;BR /&gt;$ type x.com&lt;BR /&gt;$OPEN/READ in 'p1&lt;BR /&gt;$header = "Node Name ="&lt;BR /&gt;$clear = ""&lt;BR /&gt;$header_length = F$LEN(header)&lt;BR /&gt;$loop:&lt;BR /&gt;$READ/end=done in record&lt;BR /&gt;$IF F$EXTR(0,header_length,record).EQS.header&lt;BR /&gt;$THEN&lt;BR /&gt;$node = F$EXTR(header_length,99,record)&lt;BR /&gt;$READ in record&lt;BR /&gt;$IF F$LOC(":-)",record).NE.F$LEN(record)&lt;BR /&gt;$THEN&lt;BR /&gt;$clear = clear + node&lt;BR /&gt;$ELSE&lt;BR /&gt;$WRITE SYS$OUTPUT header, node&lt;BR /&gt;$WRITE SYS$OUTPUT record&lt;BR /&gt;$ENDIF&lt;BR /&gt;$ELSE&lt;BR /&gt;$WRITE SYS$OUTPUT record&lt;BR /&gt;$ENDIF&lt;BR /&gt;$GOTO loop&lt;BR /&gt;$done:&lt;BR /&gt;$WRITE SYS$OUTPUT ""&lt;BR /&gt;$WRITE SYS$OUTPUT "These computers are all clear: ", clear&lt;BR /&gt;$CLOSE in&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;And here is sample output for that script:&lt;BR /&gt;&lt;BR /&gt;$ @x x.tmp&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS2&lt;BR /&gt;This computer still contains data of types a, b, &amp;amp; c.&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS3&lt;BR /&gt;This computer still contains data of type c.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These computers are all clear:  OWS1 OWS4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 11:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750788#M33812</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-03-14T11:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750789#M33813</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;so, your MAIN issue is getting them on one screen?&lt;BR /&gt;&lt;BR /&gt;My quickest take would be to append the data concerning a node on the node ID line.&lt;BR /&gt;&lt;BR /&gt;Here is a try:&lt;BR /&gt;&lt;BR /&gt;$ OPEN /READ IFI &lt;RPT-FILESPEC&gt;&lt;BR /&gt;$ OPEN/WRITE OFI &lt;TEMP-FILESPEC&gt;&lt;BR /&gt;$LOOP:&lt;BR /&gt;$ READ IFI REC/END=DONE&lt;BR /&gt;$ REC = F$EDIT(REC,"TRIM"")&lt;BR /&gt;$ IF REC .EQS. "" THEN GOTO LOOP&lt;BR /&gt;$ IF F$ELEMENT(0," ",REC) .EQS. "Node"&lt;BR /&gt;$ THEN&lt;BR /&gt;$ LINE = F$FAO("!20AS",REC)&lt;BR /&gt;$ GOTO LOOP&lt;BR /&gt;$ ENDIF&lt;BR /&gt;$! data line:&lt;BR /&gt;$ LINE = LINE + REC&lt;BR /&gt;$ WRITE OFI LINE&lt;BR /&gt;$ GOTO LOOP&lt;BR /&gt;$&lt;BR /&gt;$DONE:&lt;BR /&gt;$ CLOSE IFI&lt;BR /&gt;$ CLOSE OFI&lt;BR /&gt;$ TYPE &lt;TEMP-FILESPEC&gt;&lt;BR /&gt;$!  Cleanup or save, as needed.&lt;BR /&gt;&lt;BR /&gt;DISCLAIMER:   UNtested!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course, you WILL get a pretty loaded screen, but that is what you asked for!.&lt;BR /&gt;&lt;BR /&gt;Success.&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;/TEMP-FILESPEC&gt;&lt;/TEMP-FILESPEC&gt;&lt;/RPT-FILESPEC&gt;</description>
      <pubDate>Tue, 14 Mar 2006 11:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750789#M33813</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-03-14T11:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750790#M33814</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;Do you want to modify the program that generates the report or do you need to create a new program that reformats the output before it's displayed?&lt;BR /&gt;&lt;BR /&gt;It would be easier if you can modify the generating program.&lt;BR /&gt;&lt;BR /&gt;The current report has too much redundant text:&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS1&lt;BR /&gt;This computer is all clear :-)&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS2&lt;BR /&gt;This computer still contains data of types a, b, &amp;amp; c.&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS3&lt;BR /&gt;This computer still contains data of type c.&lt;BR /&gt;&lt;BR /&gt;You know it's the node name. Just display it.&lt;BR /&gt;You know it's a computer. You really only want to know the status. So all you need is:&lt;BR /&gt;&lt;BR /&gt;OWS1  clear&lt;BR /&gt;OWS2  a,b,c&lt;BR /&gt;OWS3  c&lt;BR /&gt;&lt;BR /&gt;Write a title like "Node Status" at the top.&lt;BR /&gt;&lt;BR /&gt;Now, loop to build your display line with as many nodes "up" as you want (5 max will fit).&lt;BR /&gt;&lt;BR /&gt;Why not just display the "not-clear" nodes if those are the ones you're concerned with? Then at the end display count totals for clear &amp;amp; un-unclear nodes.&lt;BR /&gt;&lt;BR /&gt;It's just programming.&lt;BR /&gt;&lt;BR /&gt; -Doug&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 13:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750790#M33814</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2006-03-14T13:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750791#M33815</link>
      <description>Doug,&lt;BR /&gt;   This sounds like a good plan but I still need the output to be in preferrably 3 columns so that all results can be seen on one screen.</description>
      <pubDate>Tue, 14 Mar 2006 13:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750791#M33815</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750792#M33816</link>
      <description>Look at help for the lexical F$FAO.&lt;BR /&gt;&lt;BR /&gt;$ HELP LEX F$FAO&lt;BR /&gt;&lt;BR /&gt;While it seems complicated at first, the examples should show you how you can format the display line.&lt;BR /&gt;&lt;BR /&gt;To process the .rpt file you have (q&amp;amp;d, not tested):&lt;BR /&gt;&lt;BR /&gt;$!...do housekeeping stuff&lt;BR /&gt;$ open/read rpt filename.rpt&lt;BR /&gt;$!...&lt;BR /&gt;$loop1:&lt;BR /&gt;$ c1 = ""&lt;BR /&gt;$ c2 = ""&lt;BR /&gt;$ c3 = ""&lt;BR /&gt;$ cnt = 0&lt;BR /&gt;$!&lt;BR /&gt;$loop2:&lt;BR /&gt;$ read/end=finish rpt inrec&lt;BR /&gt;$ if f$extract(0,4,inrec) .eqs. "Node"&lt;BR /&gt;$ then&lt;BR /&gt;$ cnt = cnt + 1&lt;BR /&gt;$ nodex = inrec - "Node Name = "&lt;BR /&gt;$ read/end=error1 rpt inrec&lt;BR /&gt;$ if f$extract(0,4,inrec) .eqs. "This"&lt;BR /&gt;$ then&lt;BR /&gt;$ statusx = inrec - "This computer" -&lt;BR /&gt;- "is all " - " :-)" -&lt;BR /&gt;- "still contains data of type" -&lt;BR /&gt;- "s" - "&amp;amp; "&lt;BR /&gt;$ c'cnt' = f$fao("!6AS!10AS",nodex,statusx)&lt;BR /&gt;$ else&lt;BR /&gt;$ goto error1 !missing record&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto loop2 !skip blank lines&lt;BR /&gt;$ endif&lt;BR /&gt;$!&lt;BR /&gt;$ if cnt .lt. 3 then goto loop2&lt;BR /&gt;$ call showit&lt;BR /&gt;$ goto loop1&lt;BR /&gt;$finish:&lt;BR /&gt;$ if cnt then call showit&lt;BR /&gt;$! display whatever eoj data you want.&lt;BR /&gt;$ write sys$output ""&lt;BR /&gt;$ read/prompt="Press ENTER " sys$command inp&lt;BR /&gt;$ goto quit&lt;BR /&gt;$error1:&lt;BR /&gt;$! incorrect or missing report record,&lt;BR /&gt;$! display error message and ask for ack.&lt;BR /&gt;$quit:&lt;BR /&gt;$ close rpt&lt;BR /&gt;$ exit&lt;BR /&gt;$!&lt;BR /&gt;$showit: subroutine&lt;BR /&gt;$ write sys$output -&lt;BR /&gt;f$fao("  !#(20AS)",cnt,c1,c2,c3)&lt;BR /&gt;$exit&lt;BR /&gt;$endsubroutine&lt;BR /&gt;&lt;BR /&gt;You could test statusx .eqs. "clear" and increment a count which you display at the end instead of loading clear into column.&lt;BR /&gt;&lt;BR /&gt;Please forgive any typo's. I haven't really tested this code ('cause I don't have your file;-)&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 16:05:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750792#M33816</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2006-03-14T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying a table</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750793#M33817</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;I had a couple of minutes to test the q&amp;amp;d code against your 4 examples and made a couple of revisions. See attachment. The code is between the $!----&amp;lt;&amp;gt;---- lines. You'll need to add error testing &amp;amp; change the filename.rpt to whatever you need &amp;amp; polish it up some.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; -Doug&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 17:40:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-a-table/m-p/3750793#M33817</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2006-03-14T17:40:02Z</dc:date>
    </item>
  </channel>
</rss>

