BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Rsadiq
Calcite | Level 5

22         %logout(s100_sr_hra_curr_qtr_pull_2016) ;
           _
           180
WARNING: Apparent invocation of macro LOGOUT not resolved.

ERROR 180-322: Statement is not valid or it is used out of proper order.

 

I keep getting this error is, and I am not sure why

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

A statement starting with %name tells SAS that you want to use the Macro Name, or in your case LOGOUT.

The macro must either be compilied in the session running, be in disk location that the autocall option can file macro code files ot compile or stored a precompiled macro library that SAS knows where to find.

 

Apparently your program has not met one of those requirements and so SAS cannot find the macro LOGOUT.

You may have to talk to the source of that part of your program to findout where the code for the Logout macro resides as I suspect you did not write that bit of code.

View solution in original post

1 REPLY 1
ballardw
Super User

A statement starting with %name tells SAS that you want to use the Macro Name, or in your case LOGOUT.

The macro must either be compilied in the session running, be in disk location that the autocall option can file macro code files ot compile or stored a precompiled macro library that SAS knows where to find.

 

Apparently your program has not met one of those requirements and so SAS cannot find the macro LOGOUT.

You may have to talk to the source of that part of your program to findout where the code for the Logout macro resides as I suspect you did not write that bit of code.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 2317 views
  • 0 likes
  • 2 in conversation