BookmarkSubscribeRSS Feed
Fistful_Dollars
Obsidian | Level 7

Many times when I copy/paste code from another .sas program, notepad or anywhere else directly in a new SAS EG program, and try to run it, I will get an error and it won't run properly or at all.

 

I copy/pasted a macro and libnames that work perfectly in one SAS EG program file into another SAS EG program, and I get the following error.  It appears it's not even reading the code at all.  Is this a common issue with SAS and is there any way to work around it?

 

SAS_Error.png

 

Thanks.

4 REPLIES 4
Reeza
Super User

It appears it's not even reading the code at all.  Is this a common issue with SAS and is there any way to work around it?

 

This is not a common issue and you may want to contact SAS Tech Support. 

 


@Fistful_Dollars wrote:

Many times when I copy/paste code from another .sas program, notepad or anywhere else directly in a new SAS EG program, and try to run it, I will get an error and it won't run properly or at all.

 

I copy/pasted a macro and libnames that work perfectly in one SAS EG program file into another SAS EG program, and I get the following error.  It appears it's not even reading the code at all.  Is this a common issue with SAS and is there any way to work around it?

 

SAS_Error.png

 

Thanks.


 

Kurt_Bremser
Super User

There are multiple reasons for a workspace server not starting.

The first that come to my mind:

The WORK directory can't be allocated.

You can't start another process (maxuproc in UNIX)

TomKari
Onyx | Level 15

This doesn't sound like what's happening to you, but I've noticed that EG can be slow to copy TO the clipboard. If I select my stuff, hit "CTRL+C", and switch right over to the other screen and paste, my stuff hasn't been put on the clipboard. If I go back to EG, select my stuff, click Edit+Copy, and wait till the little spinney stops, my stuff will be on the clipboard.

 

Tom

34reqrwe
Quartz | Level 8

SAS enterprise guide needs to make a connection to the server before it can run code . Your problem appears not to be with copying/pasting/running code , the problem is making a connection to the server. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2436 views
  • 1 like
  • 5 in conversation