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 (April 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 15 Apr 1998 14:58:10 -0500
Reply-To:   VWi@INGENIUM.COM
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Victoria M. Wilkins" <VWi@INGENIUM.COM>
Subject:   Re: help read a record and then output ...
Content-type:   text/plain; charset=US-ASCII

I think that this is a solution:

/*************************************** INPUT.TXT CONTAINS:

THIS^^IS^^A^^TEST TO^^SEE^^WHAT^^HAPPENS^^FOR^^THIS^^^^FILE ***************************************/

libname lib 'd:\test\dlm_tst\';

FILENAME MYINPUT 'D:\TEST\DLM_TST\INPUT.TXT';

data newds; length my_word $ 15; INFILE MYINPUT delimiter='^^'; input my_word @@; RUN;

/******************************************* NEWDS CONTAINS THE FOLLOWING 11 RECORDS:

THIS IS A TEST TO SEE WHAT HAPPENS FOR THIS FILE ******************************************/

timpi@FMRCO.COM on 04/15/98 02:19:12 PM

Please respond to timpi@FMRCO.COM

To: SAS-L@UGA.CC.UGA.EDU cc: (bcc: Victoria M Wilkins/Ingenium/US) Subject: help read a record and then output ...

Hi SAS users,

I have a file in the following format : ^^xxxx^^jljlsas^^n134vzcsdr^^re3nh4^^ ...............^^

The ^^ is the delimiter. I want to convert it into multiple records like xxxx jljlsas n134vzcsdr ....

However the number of ^^ is different everytime I get the file. Any idea?

Thx!

Tim Pi


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