home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:19692 vmsnet.tpu:546
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!kacovert
- Newsgroups: comp.os.vms,vmsnet.tpu
- Subject: Re: Help on "simple" EVE/TPU procedure
- Message-ID: <1992Dec21.184230.14735@miavx1.acs.muohio.edu>
- From: kacovert@miavx1.acs.muohio.edu (Kent Covert)
- Date: 21 Dec 92 18:42:30 -0500
- References: <BzKtA4.D67@news.cso.uiuc.edu>
- Organization: Miami University Academic Computer Service"
- Lines: 36
-
- In article <BzKtA4.D67@news.cso.uiuc.edu>, ritley@uimrl7.mrl.uiuc.edu () writes:
- > Apologies in advance if this question is naive - I only just
- > started using EVE and TPU.
- >
- > I am trying to clean up large amounts of Fortran code which
- > contains "junk" in each record of each file, beyond the
- > 72-nd character position in each record.
- >
- > Is it relatively simple to get TPU to truncate each record
- > in a file at the 72-nd character position?
- > (After that, it would be nice to have TPU delete all
- > trailing blanks after the lines of code, but that's not
- > as important as the first task.)
-
- Probably the easiest way to do this is to use the box commands within TPU.
- The box commands allow you to do cuts, copies, deletes, etc for columns of data
- rather than lines of data. You'd probably want to do something like the
- following:
-
- SET CURSOR FREE - allows the cursor to go beyond the end of the line.
- SET BOX SELECT - makes all selects box selects.
- SET BOX NOPAD - prevents padding with spaces for deleted boxes.
-
- Then just highlight the column you wish to delete using select. The selection
- should be in bold rather than inverse video. The selection also looks like it's
- selecting lines, but trust me, it'll work (BTW, why doesn't box selects
- highlight boxes rather than lines - this doesn't make sense to me.) Then issue
- the cut command.
-
- Hope this helps.
- --
- Kent Covert, Software Coordinator
- Miami Computing and Information Services
- Miami University, Oxford, OH
- kacovert@miavx1.acs.muohio.edu (internet)
- kacovert@miavx1 (bitnet)
-