<?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 Can't pass data sets from Python to SAS through SASpy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-pass-data-sets-from-Python-to-SAS-through-SASpy/m-p/935140#M367675</link>
    <description>&lt;P&gt;I installed and configured Saspy in my Python Jupyter notebook yesterday, and it seemed to work well. Today, I added this code, but the SAS log tells me that the sasMSE dataset cannot be found. Furthermore, the code I wrote yesterday which worked well yesterday (and I didn't change that code at all today), where I tried to convert a CSV file to a SAS dataset, also has the same error today: the dataset cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect there must be some issue with my connection to SAS, but I can't tell that there's anything wrong at first glance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-09 132103.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98257i5ABDA0B3A8DA49BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-09 132103.png" alt="Screenshot 2024-07-09 132103.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dfMSE=pd.DataFrame(MSE)
sasMSE=sas.df2sd(dfMSE, 'cfc')

msesascode="""

data sasMSE;
set sasMSE;
MSE='0';
Breakpoint=_N_;

PROC gplot
data=sasMSE;
plot MSE*Breakpoint;
run;
"""

sas.submitLST(msesascode)&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Jul 2024 12:22:21 GMT</pubDate>
    <dc:creator>hussier1</dc:creator>
    <dc:date>2024-07-09T12:22:21Z</dc:date>
    <item>
      <title>Can't pass data sets from Python to SAS through SASpy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-pass-data-sets-from-Python-to-SAS-through-SASpy/m-p/935140#M367675</link>
      <description>&lt;P&gt;I installed and configured Saspy in my Python Jupyter notebook yesterday, and it seemed to work well. Today, I added this code, but the SAS log tells me that the sasMSE dataset cannot be found. Furthermore, the code I wrote yesterday which worked well yesterday (and I didn't change that code at all today), where I tried to convert a CSV file to a SAS dataset, also has the same error today: the dataset cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect there must be some issue with my connection to SAS, but I can't tell that there's anything wrong at first glance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-09 132103.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98257i5ABDA0B3A8DA49BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-09 132103.png" alt="Screenshot 2024-07-09 132103.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dfMSE=pd.DataFrame(MSE)
sasMSE=sas.df2sd(dfMSE, 'cfc')

msesascode="""

data sasMSE;
set sasMSE;
MSE='0';
Breakpoint=_N_;

PROC gplot
data=sasMSE;
plot MSE*Breakpoint;
run;
"""

sas.submitLST(msesascode)&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-pass-data-sets-from-Python-to-SAS-through-SASpy/m-p/935140#M367675</guid>
      <dc:creator>hussier1</dc:creator>
      <dc:date>2024-07-09T12:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't pass data sets from Python to SAS through SASpy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-pass-data-sets-from-Python-to-SAS-through-SASpy/m-p/935147#M367680</link>
      <description>&lt;P&gt;Did the step to create the SAS dataset work?&amp;nbsp; Does Python report any errors when you run that step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did the SAS code run?&amp;nbsp; What does the SAS log returned by SAS look like? I would be surprised if it ran since it looks to me like you are trying to use a SAS dataset you never created.&amp;nbsp; Shouldn't the name of the SAS dataset be the second argument you passed to the df2ds() function?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-pass-data-sets-from-Python-to-SAS-through-SASpy/m-p/935147#M367680</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-09T13:04:27Z</dc:date>
    </item>
  </channel>
</rss>

