BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

In Base SAS we have a common program header added to each program via a short cut key command. 

It includes things like Program Name, Version, Edit History etc - some documentation. 

 

Is there a way to replicate this functionality in EG?

Perhaps a keyboard shortcut to add the text the same way?

The header would look something like this. I'm open to alternatives. 

(PS. Yes, I know we should be using a versioning software etc, but that's not going to happen so I have to work around that for now)

 

/*Sample Header
Program Name: Sample.sas
Version: 2.3
Author: Johnny Appleseed
Description: This program does nothing do not use it ever

Version History:
1.0 -> Implementation
2.0 -> Fix bug1-bug10, see details in basecamp
2.3 -> Add feature x

*/
1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

Hi,

I use a keyboard macro to add code headers.  I assign the macro to CTRL-H to insert the header.  Works in both Base SAS and EG. 

 

I blogged about it a little bit: http://bi-notes.com/2013/03/sas-enteprise-guide-editor-tips/ .

 

Or see papers like:

http://support.sas.com/resources/papers/proceedings15/3502-2015.pdf

http://www.lexjansen.com/pnwsug/2009/Lund,%20Pete%20-%20Remembering%20the%20Past.pdf

 

When working in a group, you can export your keyboard macro definitions as a .kmf file, and put that in a shared location that group members can use to import from.

 

When I started with EG, was pleasantly surprised to see how much of much of my PC SAS tools/setup worked without adaptation.  (Unfortunately, not customizable function keys... I still miss those. : )

--Q.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.

View solution in original post

2 REPLIES 2
Quentin
Super User

Hi,

I use a keyboard macro to add code headers.  I assign the macro to CTRL-H to insert the header.  Works in both Base SAS and EG. 

 

I blogged about it a little bit: http://bi-notes.com/2013/03/sas-enteprise-guide-editor-tips/ .

 

Or see papers like:

http://support.sas.com/resources/papers/proceedings15/3502-2015.pdf

http://www.lexjansen.com/pnwsug/2009/Lund,%20Pete%20-%20Remembering%20the%20Past.pdf

 

When working in a group, you can export your keyboard macro definitions as a .kmf file, and put that in a shared location that group members can use to import from.

 

When I started with EG, was pleasantly surprised to see how much of much of my PC SAS tools/setup worked without adaptation.  (Unfortunately, not customizable function keys... I still miss those. : )

--Q.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
Reeza
Super User
Thanks Quentin!

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
  • 2 replies
  • 4819 views
  • 7 likes
  • 2 in conversation