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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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