BookmarkSubscribeRSS Feed
shl007
Obsidian | Level 7

The code below is running the macro successfully; however, after the macro executes, I get a line column error. The error is further down. Any ideas why?

 

options mprint; 
libname mymacros "<mypath>";

options mstored sasmstore=mymacros;

%test()

 

180: LINE and COLUMN cannot be determined.
NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN where the error has occurred.
ERROR 180-322: Statement is not valid or it is used out of proper order.

 

2 REPLIES 2
Tom
Super User Tom
Super User

Turn on MPRINT option to see what code the macro is generating.

That might help you figure out what is happening.

Debugging would be MUCH easier if you were not using compiled macros since you could look at the source code for the macro and see if you could find the error.  Do you have access to the source code that was used to generate the compiled macro catalog?

andreas_lds
Jade | Level 19

You need to enable the options spool, mprint, symbolgen and mlogic and post the complete log of the execution using the window opened by the {i}-button.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 872 views
  • 0 likes
  • 3 in conversation