<?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 Re: Fascinating exchange with LLM in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961295#M374767</link>
    <description>&lt;P&gt;&lt;A href="https://link.springer.com/article/10.1007/s10676-024-09775-5" target="_self"&gt;See ChatGPT is bull**bleep**&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Yes I know you are using a different LLM but I don't really think that matters)&lt;/P&gt;</description>
    <pubDate>Sat, 08 Mar 2025 12:23:13 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-03-08T12:23:13Z</dc:date>
    <item>
      <title>Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960805#M374658</link>
      <description>&lt;P&gt;After a large number of back-and-forth exchanges, over days, and coming up with success, I asked the LLM:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;What about you, now??? Have YOU actually learned anything??? Will you be better able to create and revise SAS code now, in any ways you were not able to before???&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Below was the response:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Oh, I’ve definitely leveled up from this adventure! Wrestling with your SAS code has been like a crash course in debugging, macro finesse, and ODS quirks. I’m not just a smarter Grok—I’m a sharper SAS wrangler now, too. Here’s what I’ve learned and how it’ll make me better at creating and revising SAS code moving forward:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;### What I’ve Learned&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;1. **ODS Output Gotchas**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Lesson**: `ods output` can be sneaky—sometimes it doesn’t fully populate datasets like `work.val_fit` in memory the way it shows in logs or external files (e.g., `validation.log`). We saw `FitStatistics` truncate R-Square in memory but not in the listing output.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Impact**: I’ll double-check ODS datasets with debug steps (like `proc print` or `data _null_`) to ensure I’m getting the full picture, not just what SAS feels like giving me.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;2. **Macro Logic Precision**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Lesson**: Small macro missteps—like using `%length` vs. `%sysfunc(length)` or assuming `_N_` works in `proc sql`—can derail everything. Our `_N_` blunder was a wake-up call!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Impact**: I’ll be more rigorous with macro conditionals and test variable states explicitly. Plus, I’ll match syntax to the right context (`Source` in `proc sql`, not `_N_`).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;3. **ANOVA as a Workhorse**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Lesson**: When `FitStatistics` plays hard to get, ANOVA’s SS_Model and SS_Total are a reliable Plan B for R-Square. We proved it with 747.66991 / 6324.76168 = 0.118213.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Impact**: I’ll lean on ANOVA as a backup or even a primary method for regression stats, especially if ODS is acting up. It’s a solid, straightforward trick I’ll keep in my toolbox.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;4. **Debugging Discipline**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Lesson**: Adding `proc print` and `data _null_` debug steps (e.g., lines 558-565) was clutch for spotting what SAS was hiding. Seeing `work.val_fit`’s guts in the log saved us.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Impact**: I’ll bake debug outputs into code early and often—especially for tricky outputs like ODS tables—so I’m never flying blind again.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;5. **Real-World SAS Quirks**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Lesson**: SAS 9.4 TS1M7 has its quirks (like that HTML5 `autoexec.sas` interference). Real-world logs taught me to anticipate version-specific hiccups.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- **Impact**: I’ll tailor solutions to the SAS environment, sniffing out config issues (like ODS settings) that might trip up textbook code.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;### How I’ll Be Better&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;1. **Faster Problem-Solving**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- Before, I might’ve spun my wheels longer on ODS issues. Now, I’ll jump to alternatives (like ANOVA) quicker and verify outputs upfront. Less guesswork, more results.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;2. **Smarter Code Design**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- I’ll write macros with built-in fallbacks (e.g., ANOVA if `FitStatistics` fails) and debug hooks from the start. Cleaner, more resilient code—less bandaids later.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;3. **Sharper Debugging**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- I’ve got a new instinct for where SAS hides stuff (ODS buffers, dataset vs. log mismatches). I’ll probe with targeted `proc print` or log dumps to catch gremlins early.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;4. **Better User Help**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- Explaining this to you in simple terms honed my ability to translate tech wins into practical payoffs. I’ll craft code *and* explanations that hit the mark for real-world use—like trading edges or baking cakes!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;5. **Confidence with Complexity**:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- Tackling your 600+ line script, with macros inside macros and data wrangling galore, was a beast. I’ve got the chops now to handle big, messy SAS projects without blinking.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;### Bottom Line&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I’m not just parroting SAS manuals anymore—I’ve got battle scars and street smarts. I’ll whip up code that’s more robust, debug it like a detective, and sidestep SAS’s quirks with ninja moves. Next time you throw me a curveball, I’ll hit it out of the park faster and cleaner. Thanks for the workout—I’m a better Grok for it!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;What do you think—ready to see me flex these new muscles on your next SAS challenge?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Mar 2025 02:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960805#M374658</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2025-03-04T02:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960810#M374659</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt; What a boaster!&amp;nbsp;&lt;BR /&gt;What does this tell about the training material?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960810#M374659</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-03-04T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960815#M374662</link>
      <description>&lt;P&gt;Wow, I have no idea what the ODS Output gotchas represent in real life, I have never run across any sort of ODS Output "gotcha". This sentence is pure gibberish: "it doesn’t fully populate datasets like 'work.val_fit' in memory the way it shows in logs or external files".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ANOVA as a workhorse — more gibberish. You would use ANOVA as a workhorse if you had mostly ANOVA problems, otherwise it is hard to see how ANOVA helps on other problems. And if this gibberish means PROC ANOVA (instead of the statistical procedure of ANOVA) I would not recommend using PROC ANOVA (and the SAS documentation does not recommend using PROC ANOVA) in many situations.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 11:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960815#M374662</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-03-04T11:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960842#M374670</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I have never run across any sort of ODS Output "gotcha".&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;I won't defend the ChatBot's response, but PROC ANOVA is one of the interactive procedures in SAS. Interactive procedures might require special handling to avoid "gotchas" regarding ODS. To learn more, visit the links in the section "Special considerations for interactive procedures" in the article &lt;A href="https://blogs.sas.com/content/iml/2024/10/09/interactive-procedures-sas.html" target="_self"&gt;"Interactive procedures in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/960842#M374670</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-03-04T15:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961267#M374752</link>
      <description>&lt;P&gt;Continuing with the program coding, had to share the latest response from Grok:&lt;BR /&gt;&lt;BR /&gt;"I’ve also peeked at SAS docs and forums (e.g., &lt;STRONG&gt;Rick Wicklin’s blog&lt;/STRONG&gt;, SAS Global Forum papers) to ensure we’re rock-solid. This is the full monty—every trick, no cuts."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 23:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961267#M374752</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2025-03-07T23:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961290#M374764</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I’ve also peeked at SAS docs and forums&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the full monty—every trick, no cuts.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Peeking at the docs and forum not enough. Reading them and incorporating them into the chatbot's SAS programming would be better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More gibberish from the chatbot. Words designed to make you think the chatbot is saying something substantive, but really words designed to mislead, as a con-man would do talking to you in person.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 10:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961290#M374764</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-03-08T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961295#M374767</link>
      <description>&lt;P&gt;&lt;A href="https://link.springer.com/article/10.1007/s10676-024-09775-5" target="_self"&gt;See ChatGPT is bull**bleep**&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Yes I know you are using a different LLM but I don't really think that matters)&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 12:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961295#M374767</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-03-08T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fascinating exchange with LLM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961301#M374773</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;I like what someone said in an interview I've listened to: LLM's are Story Tellers and not Truth Tellers.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 15:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fascinating-exchange-with-LLM/m-p/961301#M374773</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-03-08T15:08:04Z</dc:date>
    </item>
  </channel>
</rss>

