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
Content-Type: text/plain; charset="us-ascii"
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
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.
Senior Programmer Analyst, IM&R
Russell Investment Group
Global Leaders in Multi-Manager Investing
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Kevin Roland Viel
Sent: Thursday, August 03, 2006 9:05 AM
Subject: Solaris and INFILE
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.
Department of Epidemiology
Rollins School of Public Health
Atlanta, GA 30322