BookmarkSubscribeRSS Feed
Sunny_Sun
Calcite | Level 5


Hi all,

I did a very simple step like the following:

Proc contents data=result.a_&scen. out=temp(keep=name) noprint; run;

But I get the following error in Unix system:

22: LINE and COLUMN cannot be determined.

NOTE 242-205: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN where the error has occurred.

ERROR 22-7: Invalid option name (.

Can you please let me know how to resolve it?

Many thanks,

Sunny

4 REPLIES 4
Sunny_Sun
Calcite | Level 5

Thanks for your help. However, I do not have any issue when I ran this in PC environment, it only happens in Unix system.

ballardw
Super User

Try running the code with option mprint; to see what is generated by your macro variable.

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