BookmarkSubscribeRSS Feed
mokwenak
Calcite | Level 5
I’m currently using GitHub Copilot and would like to connect it to my SAS project so that I can use it to document and optimize my code. Is there an IDE that allows integration with SAS projects, or a way to connect the entire SAS codebase to Copilot? I’m using SAS 9.4 M5.
4 REPLIES 4
SASKiwi
PROC Star

Are you talking about an Enterprise Guide project or something else? My suspicion is that you would have to export the code out of an EG project and then get Copilot to analyse it. I doubt Copilot could unpack an EGP file.

mokwenak
Calcite | Level 5
Yes the enterprise guide project,the project is on my local pc but how to I connect GitHub to my code?
SASKiwi
PROC Star

Here is a doc link on how to set up Git for use with EG. 

vitorlima86
SAS Employee

Hi @mokwenak,

 

Yes, one option is to use VS Code with the SAS Extension for VS Code and GitHub Copilot.

 

Since Enterprise Guide (.egp) projects are essentially ZIP files, you can make a backup, rename the .egp file to .zip, and extract its contents. This provides access to the individual SAS programs, which can then be opened in VS Code and analyzed by GitHub Copilot for code documentation, optimization, refactoring, and other improvements. After making changes, you can either repackage the files into an EG project or continue working directly from VS Code.

 

Important: Back up the original .egp project before making any changes, and ensure Copilot is used only on SAS code files, as modifying Enterprise Guide metadata files could potentially corrupt the project.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1663 views
  • 0 likes
  • 3 in conversation