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
Diamond | Level 26
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.

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

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