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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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