<?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: Macro Code issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845848#M334395</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes,I have included all the option in my code which helps in macro code debugging, but the issue is that it didn't generate any kind of error in log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm once, Am I calling macro in correct way?(the one from datastep). any suggestion would you like to give on macro calling for which I should be careful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 05:48:45 GMT</pubDate>
    <dc:creator>Kaps</dc:creator>
    <dc:date>2022-11-23T05:48:45Z</dc:date>
    <item>
      <title>Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845661#M334333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing issue related to macro. I have created macro &lt;STRONG&gt;Trans_data_IncrementLoad&lt;/STRONG&gt; and&amp;nbsp; &lt;STRONG&gt;Business_freez_dates&lt;/STRONG&gt; which contains multiple do loop and if condition. In&amp;nbsp;&lt;STRONG&gt;Trans_data_IncrementLoad&lt;/STRONG&gt;&amp;nbsp; macro there are multiple do loop and inside one of do loop I am using&lt;STRONG&gt; oracle pass through&lt;/STRONG&gt; , which &lt;STRONG&gt;insert data into trans_data&lt;/STRONG&gt; table by joining 2 table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Macro&amp;nbsp;&lt;STRONG&gt;Business_freez_dates&lt;/STRONG&gt;&amp;nbsp; also contains multiple do loops and if condition and it create the dataset which contains the business date's for which incremental load should happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once dataset created which contains the business date's for which incremental load should happen, I'm calling&amp;nbsp;&lt;STRONG&gt;Trans_data_IncrementLoad&lt;/STRONG&gt;&amp;nbsp;macro from data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue facing:&amp;nbsp;&lt;/STRONG&gt;Now issue is that most of the time my code running successfully but sometime it seems that code not completing it's execution. ex: suppose 100 obs needed to be inserted into &lt;STRONG&gt;trans_data&lt;/STRONG&gt; but it inserting only 10 obs in &lt;STRONG&gt;trans_data&lt;/STRONG&gt; table, but later if I run the code again then it properly inserting 100 obs in &lt;STRONG&gt;trans_data.&amp;nbsp;&lt;/STRONG&gt;I am really not able to figure out why this kind of issue coming. I am attaching the screenshot of code structure, it's not entire code but sample of code.&lt;/P&gt;&lt;P&gt;screenshot 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaps_0-1669123968377.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77538i53F7F11DC02C7950/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kaps_0-1669123968377.png" alt="Kaps_0-1669123968377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Screenshot 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaps_1-1669124059130.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77539i5C3BF47AE7F91C0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kaps_1-1669124059130.png" alt="Kaps_1-1669124059130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;screenshot 3:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaps_3-1669124155300.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77541i927FCBCAA1437D33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kaps_3-1669124155300.png" alt="Kaps_3-1669124155300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your valuable solution/suggestion/advice and would be very grateful for your valuable input.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 13:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845661#M334333</guid>
      <dc:creator>Kaps</dc:creator>
      <dc:date>2022-11-22T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845686#M334335</link>
      <description>&lt;P&gt;That's too much code to "dry troubleshoot".&lt;/P&gt;
&lt;P&gt;Check the log with all possible troubleshooting options active, like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options symbolgen mprint mlogic msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845686#M334335</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-11-22T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845690#M334336</link>
      <description>&lt;P&gt;Do you ever get any errors/warnings in the log?&amp;nbsp; Is there any pattern to when the code 'works'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post the full log from a run where the code works, and the full log from a run when the code doesn't work?&amp;nbsp; If you can post those logs (as text) you should be able to compare them (and in particular record counts) to see where they start to differ.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 15:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845690#M334336</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-11-22T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845777#M334365</link>
      <description>&lt;P&gt;Code needs to be provided as text, in the window that appears when you click on the "little running man" icon. Do not provide code as screen captures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are errors in the log, show us the ENTIRE log (not selected parts of the log, not just the errors, not what you think we need, we want to see the ENTIRE log). Logs should be provided as text (not screen captures), pasted into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not ignore these instructions.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845777#M334365</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-22T21:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845844#M334392</link>
      <description>&lt;P&gt;Thanks for your valuable advice and Yes, will take of this in next post&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 05:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845844#M334392</guid>
      <dc:creator>Kaps</dc:creator>
      <dc:date>2022-11-23T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845848#M334395</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes,I have included all the option in my code which helps in macro code debugging, but the issue is that it didn't generate any kind of error in log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm once, Am I calling macro in correct way?(the one from datastep). any suggestion would you like to give on macro calling for which I should be careful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 05:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Code-issue/m-p/845848#M334395</guid>
      <dc:creator>Kaps</dc:creator>
      <dc:date>2022-11-23T05:48:45Z</dc:date>
    </item>
  </channel>
</rss>

