- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Spacing - Columns/Tabs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:01 AM
03-14-2006 03:01 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:12 AM
03-14-2006 03:12 AM
Re: Spacing - Columns/Tabs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:02 AM
03-14-2006 04:02 AM
Re: Spacing - Columns/Tabs
welcome to the OpenVMS itrc forum!
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.
You can set up the width of each element to suit yourself.
Whether the display will word wrap or not will depend upon the setting of the individual display, rather than any characteristic of your report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:24 AM
03-14-2006 04:24 AM
Re: Spacing - Columns/Tabs
Stick with the suggestions in the other thread for this particular report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 06:36 AM
03-14-2006 06:36 AM
SolutionCheers,
Hein.
------------------------
$ @x x.tmp 20
Node Name = OWS1 | Node Name = OWS2 | Node Name = OWS3
This computer is all | This computer still | This computer still
clear :-) | contains data of typ | contains data of typ
| es a, b, & c. | e c.
| |
Node Name = OWS4 | |
This computer is all | |
clear :-) | |
---------------------------------------
$ @x x.tmp 10 x
OWS1 | OWS2 | OWS3
:-) | types a, b | type c.
| , & c. |
| |
OWS4 | |
:-) | |
------------------------------------
$type x.com
$OPEN/READ in 'p1
$fluff_1 = "This computer is all clear"
$fluff_2 = "This computer still contains data of "
$header = "Node Name ="
$header_length = F$LEN(header)
$GOSUB init_some
$width = 'p2
$
$loop:
$READ/end=done in record
$IF F$EXTR(0,header_length,record).EQS.header
$THEN
$nodes = nodes + 1
$line = 0
$IF nodes .gt. 3
$THEN
$ GOSUB print_some
$ GOSUB init_some
$ nodes = 1
$ lines = 1
$ENDIF
$ENDIF
$
$IF p3.NES."" THEN record = record - header - fluff_1 - fluff_2
$save_chunk:
$line = line + 1
$IF line.GT.lines THEN lines=line
$x_'nodes'_'line' = F$EXTR(0,width,record)
$record = F$EXTR(width,999,record)
$IF F$LEN(record).GT.0 THEN GOTO save_chunk
$GOTO loop
$done:
$gosub print_some
$CLOSE in
$EXIT
$
$print_some:
$l = l + 1 ! Setup in init
$write sys$output f$fao("!#AS | !#AS | !#AS", -
width, x_1_'l, width, x_2_'l, width, x_3_'l)
$if l.lt.lines then goto print_some
$write sys$output ""
$return
$
$init_some:
$nodes = 0
$lines = 0
$line = 0
$n = 0
$node_loop:
$l = 0 ! Still 0 on entry to print_some
$n = n + 1
$if n.gt.3 then return
$line_loop:
$l = l + 1
$if l.gt.10 then goto node_loop
$x_'n'_'l' = ""
$goto line_loop
$type x.tmp
Node Name = OWS1
This computer is all clear :-)
Node Name = OWS2
This computer still contains data of types a, b, & c.
Node Name = OWS3
This computer still contains data of type c.
Node Name = OWS4
This computer is all clear :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 06:48 AM
03-14-2006 06:48 AM
Re: Spacing - Columns/Tabs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:40 AM
03-14-2006 07:40 AM
Re: Spacing - Columns/Tabs
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:
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 (
I haven't been able to make this work, but at the moment I have only VERY old DECterms to play with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:27 AM
03-14-2006 08:27 AM
Re: Spacing - Columns/Tabs
Yes, this can be done with control sequences, BUT it needs VT420 or better. DECterms only do VT340 :-(
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 09:23 AM
03-15-2006 09:23 AM
Re: Spacing - Columns/Tabs
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.