<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Copilot for New SAS Programmers: What Works, What Doesn’t? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Copilot-for-New-SAS-Programmers-What-Works-What-Doesn-t/m-p/987677#M43858</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;AI remains the biggest buzz in 2026 and there’s no way we can turn our backs on it. The best way to tackle AI is to adapt to AI and make it a part of our daily corporate tasks. Right from emails to documentation to even SAS Programming, I believe that AI is here as an assistant, augmenter and accelerator to improve the way we work.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;As a part of my trainer role, I work with many young students who have knowledge of some programming language which they learnt in their schools. I also work with experienced programmers who’ve been coding for years. Copilot is going to change / already changing the way programmers do coding.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Disclaimer: Though I have used Copilot as an example in this article, please feel free to read it as ChatGPT, Claude or any other AI system.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Based on my experience of coding and working with coders so far, here are my 2 cents on what works and what doesn’t when you use Copilot to help you with SAS Programming especially when you’re a new SAS programmer who’ve less than 1 year of coding knowledge.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;What Works&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Learning SAS Syntax&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;SAS Programming has a very rich set of functions, formats, procedures and statements. A new programmer might feel like drowning in the jargon ocean. Copilot is a great support in this scenario.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Understanding syntax becomes easier and new programmers can focus on building logic than memorizing syntax!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_9-1778467899457.png" style="width: 443px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114897iB7DCAD3C66FDC2CF/image-dimensions/443x354?v=v2" width="443" height="354" role="button" title="SB711_9-1778467899457.png" alt="SB711_9-1778467899457.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;STRONG&gt;&lt;U&gt;Taking over coding done by ex-colleague&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Understanding coding done by someone else can be mindboggling. Copilot to the rescue! It can be used to simplify and understand existing coding which otherwise will take long time if you’ve to do it all by yourself.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_10-1778468023725.png" style="width: 445px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114898iA44395DB2006B7B3/image-dimensions/445x319?v=v2" width="445" height="319" role="button" title="SB711_10-1778468023725.png" alt="SB711_10-1778468023725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_11-1778468060167.png" style="width: 454px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114899i8EC679C9DF63CF44/image-dimensions/454x395?v=v2" width="454" height="395" role="button" title="SB711_11-1778468060167.png" alt="SB711_11-1778468060167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Getting your problem statement converted into SAS Code&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;When the timelines are tight and you’ve to churn out quick reports as a new programmer, things can get overwhelming. Copilot works excellently in such scenarios in my experience.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_12-1778468123500.png" style="width: 479px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114900i188001D0028FC34C/image-dimensions/479x154?v=v2" width="479" height="154" role="button" title="SB711_12-1778468123500.png" alt="SB711_12-1778468123500.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_13-1778468131684.png" style="width: 524px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114901i925DC7FFC0FBAE96/image-dimensions/524x420?v=v2" width="524" height="420" role="button" title="SB711_13-1778468131684.png" alt="SB711_13-1778468131684.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;&lt;U&gt;Comparing this vs. that&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Many times, I have personally used Copilot to understand differences between similar-natured functions or concepts. Examples will be – Scan vs Substr, Compute Server vs CAS, Data Step vs. Proc SQL and so on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot summarizes in bullet points, and you can also save the results as a PDF ready reckoner.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_14-1778469064642.png" style="width: 545px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114902i1E9FCFC61B8FED53/image-dimensions/545x422?v=v2" width="545" height="422" role="button" title="SB711_14-1778469064642.png" alt="SB711_14-1778469064642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;What Doesn’t Work&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Using Copilot as a SAS Programmer&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Well, if you think that your entire coding workload can be handled by Copilot, probably you’re on the wrong track. Code generated by Copilot is not guaranteed to be 100% correct whether syntax or logic. Also, it might not be designed for efficiency in performance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;So, caution needs to be maintained when it comes to relying on Copilot code. Copy-paste approach is quite dangerous. You still have to thoroughly test and edit the code as necessary to suit your use case.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;U&gt;Traditional SAS code vs. CAS-compliant code&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot is prone to goof up when it comes to generating CAS-compliant code. It doesn’t well-differentiate between SAS library vs. CAS library or single-threaded vs. multi-threaded options unless you specify very very explicitly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results and what’s potentially wrong with the results&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Prompt:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_16-1778469763386.png" style="width: 455px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114903i276CDC5B5B0ED77E/image-dimensions/455x165?v=v2" width="455" height="165" role="button" title="SB711_16-1778469763386.png" alt="SB711_16-1778469763386.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Results:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_17-1778469819396.png" style="width: 547px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114904i11D3D097392E5C38/image-dimensions/547x249?v=v2" width="547" height="249" role="button" title="SB711_17-1778469819396.png" alt="SB711_17-1778469819396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot suggested the code in PROC FEDSQL instead of a Data Step. Also note that the tables are in the work and pvbase libraries, which are not CAS libraries.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Complex Data step programming or Macro coding&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot is known to struggle with SAS code when it comes to Macro quoting functions or excessive use of Proc SQL where Data step is simpler or vice-versa or assumptions like data is sorted even when it’s not. Copilot also might “hallucinate” and suggest non-existent proc options or CAS actions and so on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;We all need to note here that Copilot and other AI systems are updated and refined through successive model releases. This will lead to improvements and refinements in accuracy and consistency of results.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results and what’s potentially wrong with the results&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_18-1778469923716.png" style="width: 555px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114905iA2283B960D4B4AB5/image-dimensions/555x111?v=v2" width="555" height="111" role="button" title="SB711_18-1778469923716.png" alt="SB711_18-1778469923716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Copilot is indeed valuable aid for new programmers but only when it’s coupled with programmer’s own intelligence, diligence and evaluation of Copilot-generated SAS code.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2026 03:26:54 GMT</pubDate>
    <dc:creator>SB711</dc:creator>
    <dc:date>2026-05-11T03:26:54Z</dc:date>
    <item>
      <title>Copilot for New SAS Programmers: What Works, What Doesn’t?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copilot-for-New-SAS-Programmers-What-Works-What-Doesn-t/m-p/987677#M43858</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;AI remains the biggest buzz in 2026 and there’s no way we can turn our backs on it. The best way to tackle AI is to adapt to AI and make it a part of our daily corporate tasks. Right from emails to documentation to even SAS Programming, I believe that AI is here as an assistant, augmenter and accelerator to improve the way we work.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;As a part of my trainer role, I work with many young students who have knowledge of some programming language which they learnt in their schools. I also work with experienced programmers who’ve been coding for years. Copilot is going to change / already changing the way programmers do coding.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Disclaimer: Though I have used Copilot as an example in this article, please feel free to read it as ChatGPT, Claude or any other AI system.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Based on my experience of coding and working with coders so far, here are my 2 cents on what works and what doesn’t when you use Copilot to help you with SAS Programming especially when you’re a new SAS programmer who’ve less than 1 year of coding knowledge.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;What Works&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Learning SAS Syntax&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;SAS Programming has a very rich set of functions, formats, procedures and statements. A new programmer might feel like drowning in the jargon ocean. Copilot is a great support in this scenario.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Understanding syntax becomes easier and new programmers can focus on building logic than memorizing syntax!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_9-1778467899457.png" style="width: 443px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114897iB7DCAD3C66FDC2CF/image-dimensions/443x354?v=v2" width="443" height="354" role="button" title="SB711_9-1778467899457.png" alt="SB711_9-1778467899457.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;STRONG&gt;&lt;U&gt;Taking over coding done by ex-colleague&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Understanding coding done by someone else can be mindboggling. Copilot to the rescue! It can be used to simplify and understand existing coding which otherwise will take long time if you’ve to do it all by yourself.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_10-1778468023725.png" style="width: 445px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114898iA44395DB2006B7B3/image-dimensions/445x319?v=v2" width="445" height="319" role="button" title="SB711_10-1778468023725.png" alt="SB711_10-1778468023725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_11-1778468060167.png" style="width: 454px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114899i8EC679C9DF63CF44/image-dimensions/454x395?v=v2" width="454" height="395" role="button" title="SB711_11-1778468060167.png" alt="SB711_11-1778468060167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Getting your problem statement converted into SAS Code&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;When the timelines are tight and you’ve to churn out quick reports as a new programmer, things can get overwhelming. Copilot works excellently in such scenarios in my experience.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_12-1778468123500.png" style="width: 479px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114900i188001D0028FC34C/image-dimensions/479x154?v=v2" width="479" height="154" role="button" title="SB711_12-1778468123500.png" alt="SB711_12-1778468123500.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_13-1778468131684.png" style="width: 524px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114901i925DC7FFC0FBAE96/image-dimensions/524x420?v=v2" width="524" height="420" role="button" title="SB711_13-1778468131684.png" alt="SB711_13-1778468131684.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;&lt;U&gt;Comparing this vs. that&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Many times, I have personally used Copilot to understand differences between similar-natured functions or concepts. Examples will be – Scan vs Substr, Compute Server vs CAS, Data Step vs. Proc SQL and so on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot summarizes in bullet points, and you can also save the results as a PDF ready reckoner.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_14-1778469064642.png" style="width: 545px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114902i1E9FCFC61B8FED53/image-dimensions/545x422?v=v2" width="545" height="422" role="button" title="SB711_14-1778469064642.png" alt="SB711_14-1778469064642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;What Doesn’t Work&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Using Copilot as a SAS Programmer&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Well, if you think that your entire coding workload can be handled by Copilot, probably you’re on the wrong track. Code generated by Copilot is not guaranteed to be 100% correct whether syntax or logic. Also, it might not be designed for efficiency in performance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;So, caution needs to be maintained when it comes to relying on Copilot code. Copy-paste approach is quite dangerous. You still have to thoroughly test and edit the code as necessary to suit your use case.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;U&gt;Traditional SAS code vs. CAS-compliant code&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot is prone to goof up when it comes to generating CAS-compliant code. It doesn’t well-differentiate between SAS library vs. CAS library or single-threaded vs. multi-threaded options unless you specify very very explicitly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results and what’s potentially wrong with the results&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Prompt:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_16-1778469763386.png" style="width: 455px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114903i276CDC5B5B0ED77E/image-dimensions/455x165?v=v2" width="455" height="165" role="button" title="SB711_16-1778469763386.png" alt="SB711_16-1778469763386.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Results:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_17-1778469819396.png" style="width: 547px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114904i11D3D097392E5C38/image-dimensions/547x249?v=v2" width="547" height="249" role="button" title="SB711_17-1778469819396.png" alt="SB711_17-1778469819396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot suggested the code in PROC FEDSQL instead of a Data Step. Also note that the tables are in the work and pvbase libraries, which are not CAS libraries.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;Complex Data step programming or Macro coding&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Copilot is known to struggle with SAS code when it comes to Macro quoting functions or excessive use of Proc SQL where Data step is simpler or vice-versa or assumptions like data is sorted even when it’s not. Copilot also might “hallucinate” and suggest non-existent proc options or CAS actions and so on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;We all need to note here that Copilot and other AI systems are updated and refined through successive model releases. This will lead to improvements and refinements in accuracy and consistency of results.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Example of Copilot prompt and partial results and what’s potentially wrong with the results&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SB711_18-1778469923716.png" style="width: 555px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114905iA2283B960D4B4AB5/image-dimensions/555x111?v=v2" width="555" height="111" role="button" title="SB711_18-1778469923716.png" alt="SB711_18-1778469923716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Copilot is indeed valuable aid for new programmers but only when it’s coupled with programmer’s own intelligence, diligence and evaluation of Copilot-generated SAS code.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 03:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copilot-for-New-SAS-Programmers-What-Works-What-Doesn-t/m-p/987677#M43858</guid>
      <dc:creator>SB711</dc:creator>
      <dc:date>2026-05-11T03:26:54Z</dc:date>
    </item>
  </channel>
</rss>

