T.R | Title | User | Personal Name | Date | Lines |
---|
229.1 | VAX/SCAN? | SHOGUN::BLUEJAY | Have Wings - will travel | Tue Apr 08 1986 13:28 | 9 |
| Sounds like a job for VAX/SCAN, a block-structured language for
manipulating text.
Of course, using a text-manipulation language to manipulate text
hardly qualifies as a hack.
- Bluejay Adametz, CFII
[no, I don't have the Q-numbers. sorry]
|
229.2 | SCAN has lotsa examples, too. | 11740::BLESSLEY | | Tue Apr 08 1986 14:30 | 7 |
| If your application is internal, the kit is available somewhere
around the net. SCAN is pretty neat; use one of the many examples that
come with the installation kit and hack it (that qualifies, doesn't
it?) for your needs. There's a SCAN notesfile, too.
-Scott
|
229.3 | | PARVAX::PFAU | Hacker for hire | Tue Apr 08 1986 17:42 | 16 |
| Re: .1
If you don't have the Q-number, use the Q-register. I once had
a TECO program which read in a file with FORTRAN carriage control
and expanded the carriage control characters. TECO would probably
work well to remove the borders, too.
If you can convert the FTN carriage control to CR, get SPACE2TAB
from the toolshed (or ENTAB). These tools convert multiple spaces
in a file to tabs; very good for reducing the size of report files
while not modifying the content.
Of course, nothing will be as efficient (most likely) than a program
designed for the specific purpose.
tom_p
|
229.4 | | R2ME2::GILBERT | Juggler of Noterdom | Tue Apr 08 1986 20:49 | 9 |
| Hello? Did anybody hear the question?
The VMS Convert utility once claimed that it could convert to/from
VFC-format files (of which Fortran print-format files are one),
putting the VFC information into the record, or vice-versa.
I used this feature under V3 of VMS, but haven't used it under V4,
even with some 'playing'. Perhaps I had trouble getting the various
qualifiers correct, or perhaps it was broken.
|
229.5 | Carriage Control Toggle | PICA::BLANCHETTE | Bob | Wed Apr 09 1986 02:39 | 8 |
| PICA::TOOLBOX:[BASIS.TOOLS]CARRIAGE.EXE will convert your
file from Fortran Carriage Control to Carriage Return
Carriage Control and back, if that's any help. Define
it as a foreign command, and then CARRIAGE YOUR.FILE.
It's a utility that's part of a software package (BASIS)
which is licensed for corporate-wide distribution, internal
use only.
|
229.6 | or FORTRAN to post-process the reports | FROST::PIPER | bill piper | Wed Apr 09 1986 11:58 | 8 |
| Or run it through yet another FORTRAN program. On the output file OPEN,
use CARRIAGE_CONTROL='FORTRAN' (the default for formatted output).
Read a line, strip the lead and trailing asterisks, and pass it through
STR$TRIM (to get rid of the spaces before that trailing asterisk).
Throw in space-to-tab conversions if you wish.
-piper
|
229.7 | CONVERT does the trick | VIRTUE::RAVAN | | Wed Apr 09 1986 12:21 | 12 |
|
Thanks, all, for the various suggestions. As it happens (my Fortran
being rusty), I went for the CONVERT method. The documentation is
a bit vague, but all that's needed is to create an FDL file with
the CARRIAGE_CONTROL option set to "carriage_return" and the FORMAT
set to "stream". This converts the Fortran characters to <CR>s and
<FF>s. (Thanks, Peter!)
From there, I used DCL and F$EDIT to trim the trailing blanks, and
voila!
-b
|