BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi All

Im running a piece of script that i run every month. It was totally fine last month no errors or warnings.
But this month i get this error, this is within a data step within a macro and the macro then fails to continue.

666 if index(page, "?" ) > 0 then page = substr( page, 1, index( page,
666! "?")-1);
------
49
NOTE 49-169: The meaning of an identifier after a quoted string may change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended.

This "note" shouldnt effect the macro script but it does.

please help...

Thanks

Spud
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You are seeing a SAS NOTE - if your program is failing in execution there must be another ERROR: type message, possibly BEFORE or AFTER this line of code.

Scott Barry
SBBWorks, Inc.
Peter_C
Rhodochrosite | Level 12
spud,

probably, you also have unbalanced quotation marks

good luck

PeterC
ballardw
Super User
If you haven't solved the problem I'd try:

if index(page, "?" ) > 0 then page = substr( page, 1, (index( page, "?")-1));

The extra parantheses should force an evaluation of the number.
Russ_SAS
SAS Employee
The following SAS Usage note discusses the note you are getting:

http://support.sas.com/kb/3/353.html

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 11337 views
  • 0 likes
  • 5 in conversation