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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 12232 views
  • 0 likes
  • 5 in conversation