LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 6 Nov 2002 23:46:39 GMT
Reply-To:     evan.cooch@NOSPAMCORNELL.EDU
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         evan.cooch@NOSPAMCORNELL.EDU
Organization: Cornell University
Subject:      Re: input problem | text block | single variable

On 6 Nov 02 19:09:42 GMT, WHITLOI1@WESTAT.COM (Ian Whitlock) wrote:

>Evan, > >Computer systems often put little thinges at the ends of lines.

THis much I know. I move back and forth often enough between disparate OS to have learned this the kard way.

This means >you will have to get more detailed about what you actually have and want to >do before you can get an answer that is little better than a guess.

I suspect you're right. I'll have to fire up my editor and see just what is at the end of the lines in the data file.

> >I assumed you had exactly what you wrote and copied into the SAS editor to >write the following working code. >

Thanks - I'll have a try with your code.

>data w ( drop = glob ); > length goo $32767 glob $ 100 ; > do while (1) ; > infile cards eof = eof ; > input glob ; > goo = trim(goo) || glob ; > end ; >return ; >eof: > goo = left(goo) ; > len = length (goo) ; > put len= ; > glob = substr(goo,len-2) ; > put glob= ; >return ; >cards ; >GGACGGGTCGTTTCAGCTGAAGTACTTGGATGATGAAGAAGAATGGGTGATGCTGGTTACAGATTCTGATCTCCAA >GAATGTTTGGAGATATTACATGGTATGGGAAAACACTCGGTGAAGTTTCTCGTTCGTGATTTGTCTGCCCCTCTAG >GTAGTTCTGGTGGCAGTAATGGTTATCTTGGAACAGGCTTATGACGTCGTAAGACATAGACACACACAGTTATGTA >TTCCCAGTGAAAGAATGTTGTTTATTTCTCTAGATATTAGTATGCTTATAAATAGGCATGAAGGAGAAAGACAATT >TTGGTATAGTGGAGTTCAGCAGAAAATGTATA >; >


Back to: Top of message | Previous page | Main SAS-L page