Has anyone done some research on github copilot? This AI plug-in (in VS Code) can support many mainstream programming languages, so can it also help us write SAS code? 😊
Hello,
I am very curious about any responses to your post.
Personally I have never tried Github Copilot.
(GitHub Copilot is powered by OpenAI Codex, a new AI system created by OpenAI.)
GitHub Copilot is trained on all languages that appear in public repositories. For each language, the quality of suggestions you receive may depend on the volume and diversity of training data for that language. For example, JavaScript is well-represented in public repositories and is one of GitHub Copilot's best supported languages. Languages with less representation in public repositories may produce fewer or less robust suggestions.
I do not think there's an enormous lot of SAS code in public repositories ... so I doubt the quality of the SAS code returned will be good.
See also here:
How good is an AI chatbot at SAS programming?
By Rick Wicklin on The DO Loop May 10, 2023
https://blogs.sas.com/content/iml/2023/05/10/ai-chatbot-sas-programmer.html
Koen
At the present time, I am skeptical about AI producing SAS code.
Here is an example where ChatGPT was asked to provide SAS code for a particular situation. It gives a sub-optimal reply (in other words, better code is possible and should be used) but you wouldn't know that, and if you go ahead and use this sub-optimal code, you get a syntax error, it doesn't work.
https://communities.sas.com/t5/SAS-Programming/Extracting-year-and-month-from-date9-date/td-p/856421
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.