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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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