SAS Enterprise Guide

Desktop productivity for business analysts and programmers
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 4 replies
  • 2854 views
  • 1 like
  • 5 in conversation