Date: Thu, 3 Aug 2006 11:21:44 -0700
Reply-To: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Subject: Re: Solaris and INFILE
In-Reply-To: A<Pine.GSO.4.58.0608031200140.14763@leukothea>
Content-Type: text/plain; charset="us-ascii"
Hi Kevin,
Whether you are on unix or pc won't
make a difference. So this explanation
works for both you and others.
The condition tests you list ONLY work
if any precending characters are space
characters.
If both of your condition tests fail,
then it is easy to assume that there is
one or more of the characters infront of
your pattern that is not a space character.
If you want to find your pattern regardless
if there are only spaces or not, you can use
if index( _infile_,"H2r") ;
This will find your pattern if some character
other than spaces is found preceding your
pattern. In fact the INDEX() will succeed
if found anywhere on the line.
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Kevin Roland Viel
Sent: Thursday, August 03, 2006 9:05 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Solaris and INFILE
Greetings,
I have same puzzling failures. I have a file on my Solaris box with
the following line:
H2r Std. Error:
I have tried several lines to recognize this point in the file:
if left( _infile_ ) =: "H2r" ;
if scan( compress( _infile_ ) , 1 , "." ) = "H2rStd" ;
Does anyone have a clue? I am lost? I was wondering about changinge
the ENCODING options, but that does not seem to be right.
TIA,
Kevin
Kevin Viel
PhD Candidate
Department of Epidemiology
Rollins School of Public Health
Emory University
Atlanta, GA 30322