Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2008, 04:27 PM
Michael Walker
Guest
 
Posts: n/a
Default NewBie Question - array's and using the index function

Hi all,

I have a quick newbie question with my base sas code I have written that
doesn't seem to be doing its thing - what am I doing wrong.
i basically have a whole lot of query strings from search engines - each
one uses different name pairs that contain the search string that the
searcher typed in, which I want to catch and write away

e.g strings look like this
rlz=1C1GGLS_enZA291&sourceid=chrome&ie=UTF-8&q=test
and
rlz=1C1GGLS_enZA291&sourceid=chrome&ie=UTF-8&query=test33
and
rlz=1C1GGLS_enZA291&sourceid=chrome&ie=UTF-8&keyword=testingme

So here is what i have written just to evaluate if my logic works which it
doesn't seem to be... Please help


tempRefQString = lowcase(URLDecode(Referrer_Query_String));
/* Store's the URL's in a var*/

ARRAY KeyWordsPosArray (3) q query keyword;
/* Array of the various CGI name value pairs I need to look for in theURL*/
do i = 1 to 3 ;
if index(tempRefQString, KeyWordsPosArray(i)) gt 0 then do;
KN_ReferrerExternalSearchWord = 'Y';

/* If any of the array values are in the query string then mark as Y
KN_ReferrerExternalSearchWord - so that I know they are being picked up I
will do further string manipulations*/
end;
end;


Thanks in advance
Michael
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Popular Tags in the Forum
array, function, index, newbie, question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:53 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.