Similar to talking with a human: If you use grade school talk, you don't get far. If you use post grad talk, you get lots further.
ChatGPT and Claude are able to carry on quite well at the post grad level. Not true of most humans.
I have had excellent success with ChatGPT 4o when comparing it to Claude and Gemini. It is by far the best for SAS code creation, debugging, etc.
I have also tried the plug-in for VS Code for SAS so that I may use GitHub's CoPilot, and it's also pretty good, but there were some features that were missing in the plug-in that I needed for my tasks, so I have to abandon it for now.
For your particular scenario, ChatGPT 4o can debug and work it's way out of logic issues, but the only annoying things right now for me is feeding ChatGPT background information (i.e. characteristics of a dataset, in which I will copy-paste the proc contents into chatgpt) and the lack of an AutoGPT so it can debug and test the code itself without me having to go back-and-forth. If ChatGPT could get better insight into the data structures referenced in my code + AutoGPT, I'd be in heaven.
Sometimes ChatGPT just simply falls short when it comes to advanced macros. Terribly frustrating. Error after error after error.
I let Claude have a look, and Claude sometimes magically finds the solution. Unreal. No errors in the execution.
But, generally ChatGPT seems to have an edge over Claude. And!!! ChatGPT allows attaching more types of stuff. INCLUDING SAS DATASETS THEMSELVES!!!!
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!
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.