BookmarkSubscribeRSS Feed
shellp55
Quartz | Level 8
Hi

I'm sure from this question you'll note that I'm a newbie!

How do I edit the code generated in EG to produce what I want? Or is this even an option?

Or would you just copy and paste the code in a SAS program?

Thanks.
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Look at pages 2,3, and 4 in this paper. The general outline of how to add to or alter code is here. Basically, EG will give you places where it is appropriate for you to enter your own code. If you wanted to change some -statement- within the code that EG has built, however, you'd have to go back and reselect or change your choices in the various task panes (for example you want to change AGE to HEIGHT -- but EG has already put AGE in the code that you see in the Preview Code window -- to get HEIGHT, you'd have to reopen the task and select HEIGHT instead of AGE.)

Anyway, the directions in this paper are very good:
http://www2.sas.com/proceedings/sugi30/019-30.pdf

cynthia
Doc_Duke
Rhodochrosite | Level 12
Chris also describes the tools in his "SAS for Dummies" book (which is actually a book about EGuide 4.1).

The "insert code" tools works very well. There are a few times where it hasn't had an insertion point where I needed it. If so, I would "Add as Code Template" (right click on the task to see that choice) and then edit directly. I also do that when I want to make a macro out of a task.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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