<?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: Spacing - Columns/Tabs in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750765#M33838</link>
    <description>Actually... it wasn't all that hard and kinda fun.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ @x x.tmp 20&lt;BR /&gt;Node Name = OWS1     | Node Name = OWS2     | Node Name = OWS3&lt;BR /&gt;This computer is all | This computer still  | This computer still&lt;BR /&gt; clear :-)           | contains data of typ | contains data of typ&lt;BR /&gt;                     | es a, b, &amp;amp; c.        | e c.&lt;BR /&gt;                     |                      |&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS4     |                      |&lt;BR /&gt;This computer is all |                      |&lt;BR /&gt; clear :-)           |                      |&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;&lt;BR /&gt;$ @x x.tmp 10 x&lt;BR /&gt; OWS1      |  OWS2      |  OWS3&lt;BR /&gt; :-)       | types a, b | type c.&lt;BR /&gt;           | , &amp;amp; c.     |&lt;BR /&gt;           |            |&lt;BR /&gt;&lt;BR /&gt; OWS4      |            |&lt;BR /&gt; :-)       |            |&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;$type x.com&lt;BR /&gt;$OPEN/READ in 'p1&lt;BR /&gt;$fluff_1 = "This computer is all clear"&lt;BR /&gt;$fluff_2 = "This computer still contains data of "&lt;BR /&gt;$header = "Node Name ="&lt;BR /&gt;$header_length = F$LEN(header)&lt;BR /&gt;$GOSUB init_some&lt;BR /&gt;$width = 'p2&lt;BR /&gt;$&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;$nodes = nodes + 1&lt;BR /&gt;$line = 0&lt;BR /&gt;$IF nodes .gt. 3&lt;BR /&gt;$THEN&lt;BR /&gt;$ GOSUB print_some&lt;BR /&gt;$ GOSUB init_some&lt;BR /&gt;$ nodes = 1&lt;BR /&gt;$ lines = 1&lt;BR /&gt;$ENDIF&lt;BR /&gt;$ENDIF&lt;BR /&gt;$&lt;BR /&gt;$IF p3.NES."" THEN record = record - header - fluff_1 - fluff_2&lt;BR /&gt;$save_chunk:&lt;BR /&gt;$line = line + 1&lt;BR /&gt;$IF line.GT.lines THEN lines=line&lt;BR /&gt;$x_'nodes'_'line' = F$EXTR(0,width,record)&lt;BR /&gt;$record = F$EXTR(width,999,record)&lt;BR /&gt;$IF F$LEN(record).GT.0 THEN GOTO save_chunk&lt;BR /&gt;$GOTO loop&lt;BR /&gt;$done:&lt;BR /&gt;$gosub print_some&lt;BR /&gt;$CLOSE in&lt;BR /&gt;$EXIT&lt;BR /&gt;$&lt;BR /&gt;$print_some:&lt;BR /&gt;$l = l + 1 ! Setup in init&lt;BR /&gt;$write sys$output f$fao("!#AS | !#AS | !#AS", -&lt;BR /&gt;   width, x_1_'l, width, x_2_'l, width, x_3_'l)&lt;BR /&gt;$if l.lt.lines then goto print_some&lt;BR /&gt;$write sys$output ""&lt;BR /&gt;$return&lt;BR /&gt;$&lt;BR /&gt;$init_some:&lt;BR /&gt;$nodes = 0&lt;BR /&gt;$lines = 0&lt;BR /&gt;$line = 0&lt;BR /&gt;$n = 0&lt;BR /&gt;$node_loop:&lt;BR /&gt;$l = 0  ! Still 0 on entry to print_some&lt;BR /&gt;$n = n + 1&lt;BR /&gt;$if n.gt.3 then return&lt;BR /&gt;$line_loop:&lt;BR /&gt;$l = l + 1&lt;BR /&gt;$if l.gt.10 then goto node_loop&lt;BR /&gt;$x_'n'_'l' = ""&lt;BR /&gt;$goto line_loop&lt;BR /&gt;&lt;BR /&gt;$type x.tmp&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;Node Name = OWS4&lt;BR /&gt;This computer is all clear :-)&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Mar 2006 14:36:12 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2006-03-14T14:36:12Z</dc:date>
    <item>
      <title>Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750761#M33834</link>
      <description>I am working on a program that is already set up to write the results of a test to a report file which then displays the .rpt file to the screen in list format (see example attached).  My question is, can I display the report that is already being generated to the DECTerm in columns with a fixed column width that would allow word wrap if necessary?</description>
      <pubDate>Tue, 14 Mar 2006 11:01:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750761#M33834</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750762#M33835</link>
      <description>Using DCL...sorry I left that out.</description>
      <pubDate>Tue, 14 Mar 2006 11:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750762#M33835</guid>
      <dc:creator>Katherine Elliott</dc:creator>
      <dc:date>2006-03-14T11:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750763#M33836</link>
      <description>Hi Katherine,&lt;BR /&gt;&lt;BR /&gt;welcome to the OpenVMS itrc forum!&lt;BR /&gt;&lt;BR /&gt;From a quick look at your attachment, I would suggest that the lexical f$fao() will provide you with the necessary formatting ability. Have a look at HELP LEXICAL F$FAO DIRECTIVES for a pretty good description.&lt;BR /&gt;&lt;BR /&gt;You can set up the width of each element to suit yourself.&lt;BR /&gt;&lt;BR /&gt;Whether the display will word wrap or not will depend upon the setting of the individual display, rather than any characteristic of your report.</description>
      <pubDate>Tue, 14 Mar 2006 12:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750763#M33836</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-03-14T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750764#M33837</link>
      <description>Hmmm. Having checked out your other thread and taking a closer look at your report, I realise that you want the word wrap within a "column". As Hein pointed out, you can do it in DCL - but it will be very convoluted.&lt;BR /&gt;&lt;BR /&gt;Stick with the suggestions in the other thread for this particular report.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 12:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750764#M33837</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-03-14T12:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750765#M33838</link>
      <description>Actually... it wasn't all that hard and kinda fun.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ @x x.tmp 20&lt;BR /&gt;Node Name = OWS1     | Node Name = OWS2     | Node Name = OWS3&lt;BR /&gt;This computer is all | This computer still  | This computer still&lt;BR /&gt; clear :-)           | contains data of typ | contains data of typ&lt;BR /&gt;                     | es a, b, &amp;amp; c.        | e c.&lt;BR /&gt;                     |                      |&lt;BR /&gt;&lt;BR /&gt;Node Name = OWS4     |                      |&lt;BR /&gt;This computer is all |                      |&lt;BR /&gt; clear :-)           |                      |&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;&lt;BR /&gt;$ @x x.tmp 10 x&lt;BR /&gt; OWS1      |  OWS2      |  OWS3&lt;BR /&gt; :-)       | types a, b | type c.&lt;BR /&gt;           | , &amp;amp; c.     |&lt;BR /&gt;           |            |&lt;BR /&gt;&lt;BR /&gt; OWS4      |            |&lt;BR /&gt; :-)       |            |&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;$type x.com&lt;BR /&gt;$OPEN/READ in 'p1&lt;BR /&gt;$fluff_1 = "This computer is all clear"&lt;BR /&gt;$fluff_2 = "This computer still contains data of "&lt;BR /&gt;$header = "Node Name ="&lt;BR /&gt;$header_length = F$LEN(header)&lt;BR /&gt;$GOSUB init_some&lt;BR /&gt;$width = 'p2&lt;BR /&gt;$&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;$nodes = nodes + 1&lt;BR /&gt;$line = 0&lt;BR /&gt;$IF nodes .gt. 3&lt;BR /&gt;$THEN&lt;BR /&gt;$ GOSUB print_some&lt;BR /&gt;$ GOSUB init_some&lt;BR /&gt;$ nodes = 1&lt;BR /&gt;$ lines = 1&lt;BR /&gt;$ENDIF&lt;BR /&gt;$ENDIF&lt;BR /&gt;$&lt;BR /&gt;$IF p3.NES."" THEN record = record - header - fluff_1 - fluff_2&lt;BR /&gt;$save_chunk:&lt;BR /&gt;$line = line + 1&lt;BR /&gt;$IF line.GT.lines THEN lines=line&lt;BR /&gt;$x_'nodes'_'line' = F$EXTR(0,width,record)&lt;BR /&gt;$record = F$EXTR(width,999,record)&lt;BR /&gt;$IF F$LEN(record).GT.0 THEN GOTO save_chunk&lt;BR /&gt;$GOTO loop&lt;BR /&gt;$done:&lt;BR /&gt;$gosub print_some&lt;BR /&gt;$CLOSE in&lt;BR /&gt;$EXIT&lt;BR /&gt;$&lt;BR /&gt;$print_some:&lt;BR /&gt;$l = l + 1 ! Setup in init&lt;BR /&gt;$write sys$output f$fao("!#AS | !#AS | !#AS", -&lt;BR /&gt;   width, x_1_'l, width, x_2_'l, width, x_3_'l)&lt;BR /&gt;$if l.lt.lines then goto print_some&lt;BR /&gt;$write sys$output ""&lt;BR /&gt;$return&lt;BR /&gt;$&lt;BR /&gt;$init_some:&lt;BR /&gt;$nodes = 0&lt;BR /&gt;$lines = 0&lt;BR /&gt;$line = 0&lt;BR /&gt;$n = 0&lt;BR /&gt;$node_loop:&lt;BR /&gt;$l = 0  ! Still 0 on entry to print_some&lt;BR /&gt;$n = n + 1&lt;BR /&gt;$if n.gt.3 then return&lt;BR /&gt;$line_loop:&lt;BR /&gt;$l = l + 1&lt;BR /&gt;$if l.gt.10 then goto node_loop&lt;BR /&gt;$x_'n'_'l' = ""&lt;BR /&gt;$goto line_loop&lt;BR /&gt;&lt;BR /&gt;$type x.tmp&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;Node Name = OWS4&lt;BR /&gt;This computer is all clear :-)&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 14:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750765#M33838</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-03-14T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750766#M33839</link>
      <description>or another short DCL skeleton attached...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 14:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750766#M33839</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-03-14T14:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750767#M33840</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;  You might be able to do something clever with control sequences, setting left and right margins, with wrap, just before sending each block of data. I think the sequences you want are:&lt;BR /&gt;&lt;BR /&gt;&lt;ESC&gt;[?69h (enable margins)&lt;BR /&gt;&lt;ESC&gt;[?7h (enable auto wrap)&lt;BR /&gt;&lt;ESC&gt;[&lt;LM&gt;;&lt;RM&gt;s (set left &lt;LM&gt; and right &lt;RM&gt; margins)&lt;BR /&gt;&lt;BR /&gt;What might work is to set the margins to the left of the screen, then output a few report blocks. These should wrap within the margins. Next set the margins to the middle of the screen and reset your cursor to the top (&lt;ESC&gt;[1;&lt;LM&gt;H) and output the next block. Reset margins to the right of the screen and repeat, then set margins back to normal.&lt;BR /&gt;&lt;BR /&gt;&lt;ESC&gt;[?69l (disable margins)&lt;BR /&gt;&lt;ESC&gt;[?7l (disable auto wrap)&lt;BR /&gt;&lt;BR /&gt;I haven't been able to make this work, but at the moment I have only VERY old DECterms to play with.&lt;BR /&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/LM&gt;&lt;/ESC&gt;&lt;/RM&gt;&lt;/LM&gt;&lt;/RM&gt;&lt;/LM&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Tue, 14 Mar 2006 15:40:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750767#M33840</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-03-14T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750768#M33841</link>
      <description>Katherine,&lt;BR /&gt;&lt;BR /&gt;  Yes, this can be done with control sequences, BUT it needs VT420 or better. DECterms only do VT340 :-(&lt;BR /&gt;&lt;BR /&gt;  Attached is a text file with some of your data, and the necessary control sequences added. just TYPE the file at a VT4xx or VT5xx terminal or emulator.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 16:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750768#M33841</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-03-14T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing - Columns/Tabs</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750769#M33842</link>
      <description>All interesting solutions.&lt;BR /&gt;&lt;BR /&gt;Playing just a bit more with the VT400+ escape sequences, if you put the terminal in 132 column mode and use 4 columns of slightly wider width instead of 3, you should get all 21 on a single screen.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2006 17:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spacing-columns-tabs/m-p/3750769#M33842</guid>
      <dc:creator>Michelle Popejoy</dc:creator>
      <dc:date>2006-03-15T17:23:24Z</dc:date>
    </item>
  </channel>
</rss>

