Xref: utzoo comp.os.vms:37585 comp.lang.fortran:5097 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!orion.oac.uci.edu!biivax.dp.beckman.com!dsroberts From: dsroberts@biivax.dp.beckman.com Newsgroups: comp.os.vms,comp.lang.fortran Subject: Re: How to remove all spaces in FORTRAN Message-ID: <1991Apr3.143122.254@biivax.dp.beckman.com> Date: 3 Apr 91 21:31:22 GMT References: <1991Apr2.144757.247@biivax.dp.beckman.com> Organization: Beckman Instruments Lines: 24 In article <1991Apr2.144757.247@biivax.dp.beckman.com>, dsroberts@biivax.dp.beckman.com writes: > So does fortran have a function (of VMS a library routine) that eliminates all > embedded spaces in a string? > > And please, mail to me, we don't need to clutter up the newsgroups. I'll post a > summary, ok? And here is the promised summary: It seems that the concensus response has been some form of DO-LOOP that checks each character for a space and writes to the string if it is non-space. The counter used to place in the string is then your length. A simple hack, but not nearly so much fun as an actual function. Anyway, thanks to all. Especially those submitting code fragments. Certainly saves on the typing. Now if I could just cobble up a user interface that maintains my domain name server files... -- --------------------------------------------------------------------------- Don Roberts Internet: dsroberts@beckman.com Beckman Instruments, Inc. Yellnet: 714/961-3029 2500 Harbor Bl. Mailstop X-12 FAX: 714/961-3351 Fullerton, CA 92634 Disclaimer: Always ---------------------------------------------------------------------------