home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:19766 vmsnet.tpu:553
- Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms,vmsnet.tpu
- Subject: Re: Help on "simple" EVE/TPU procedure
- Date: 23 Dec 1992 10:46:08 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 45
- Distribution: world
- Message-ID: <1h9g1gINN1c9@gap.caltech.edu>
- References: <BzKtA4.D67@news.cso.uiuc.edu> <1992Dec21.184230.14735@miavx1.acs.muohio.edu>,<1992Dec22.145106.18049@nntpd.lkg.dec.com>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <1992Dec22.145106.18049@nntpd.lkg.dec.com>, reinig@augie.enet.dec.com (August Reinig) writes:
- >Untested, but the following should truncate each line in the file
- >to 72 characters and then remove any trailing blanks. With a small
- >modification, the truncate count could be a parameter to the routine
- >but I can't remember the EVE syntax for this off the top of my head.
- >Perhaps Bill will oblige.
-
- Could I ask a question, please?
-
- Why are you (apparently a DEC employee) posting an "untested" procedure? Or by
- "untested" did you mean that you'd tested it on a number of files, but hadn't
- subjected it to use by idiots (as in, "You can't make anything idiot-proof;
- Idiots are too ingeniosu!")
-
- >This routine won't work if there are tabs in the sources. There
- >are EVE routines to change tabs to spaces which you should use
- >first if tabs are present.
-
- You're wrong about the tabs. VAX FORTRAN considers a tab to be a single
- character. So your procedure WILL work if there are tabs in the source, it the
- program is to be compiled by VAX FORTRAN. Don't disparage your efforts
- unnecessarily!
-
- Proof:
-
- $ TAB :=
- $ TAB[0,8] = 9
- $ COPY NL: FOO.FOR
- $ OPEN/APPEND FILE FOO.FOR
- $ WRITE FILE TAB,"TYPE 10"
- $ WRITE FILE "10", TAB, "FORMAT(1X,'", -
- "01234567890123456789012345678901234567890123456789012345')"
- $ WRITE FILE TAB, "END"
- $ CLOSE FILE
- $ FOR FOO
- $ LIN FOO
- $ RUN FOO
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-