<?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: Transpost in DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652971#M19318</link>
    <description>&lt;P&gt;Thanks. The code runs but gives an "error fetching data - ...table not exist". The temp table from the previous step does exist.&lt;/P&gt;&lt;P&gt;The incoming table has columns DATE, STATUS and COUNT_1. What should the incoming-outgoing column mapping look like? Would an error there give this error message?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 19:06:40 GMT</pubDate>
    <dc:creator>crawfe</dc:creator>
    <dc:date>2020-06-03T19:06:40Z</dc:date>
    <item>
      <title>Transpose in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652956#M19316</link>
      <description>&lt;P&gt;Hi, I am trying to transpose daily data using UserWrittenCode in DI Studio&lt;/P&gt;
&lt;P&gt;which I will append each day to a master table.&lt;/P&gt;
&lt;P&gt;HAVE (data):&lt;/P&gt;
&lt;P&gt;DATE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT_1&lt;/P&gt;
&lt;P&gt;06/01/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Done&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;06/01/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;06/01/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IP &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;06/01/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAIL &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WANT (test1):&lt;/P&gt;
&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Done&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAIL&lt;/P&gt;
&lt;P&gt;06/01/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you see an error in this code? Thanks!&lt;/P&gt;
&lt;P&gt;%let etls_tableExists = %eval(%sysfunc(exist(&amp;amp;_OUTPUT, DATA)));&lt;BR /&gt;%if (&amp;amp;etls_tableExists) %then %do;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;drop table &amp;amp;_OUTPUT.;&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;PROC TRANSPOSE data=&amp;amp;_INPUT out=test1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by DATE;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;id STATUS;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;var COUNT_1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;DATA &amp;amp;_OUTPUT. ;&lt;BR /&gt;SET test1;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 12:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652956#M19316</guid>
      <dc:creator>crawfe</dc:creator>
      <dc:date>2020-06-10T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transpost in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652959#M19317</link>
      <description>&lt;P&gt;Sorry, I can't really see any errors in your code. The only way the output from PROC TRANSPOSE differs from your WANT data is that it has a _NAME_ variable, which you may want to drop. Other than that, no.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your problem with the code?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 18:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652959#M19317</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-06-03T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transpost in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652971#M19318</link>
      <description>&lt;P&gt;Thanks. The code runs but gives an "error fetching data - ...table not exist". The temp table from the previous step does exist.&lt;/P&gt;&lt;P&gt;The incoming table has columns DATE, STATUS and COUNT_1. What should the incoming-outgoing column mapping look like? Would an error there give this error message?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 19:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652971#M19318</guid>
      <dc:creator>crawfe</dc:creator>
      <dc:date>2020-06-03T19:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transpost in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652977#M19319</link>
      <description>As often suggested here, please post the log of the previous step that creates the input table and the step containing the error.</description>
      <pubDate>Wed, 03 Jun 2020 19:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/652977#M19319</guid>
      <dc:creator>DavePrinsloo</dc:creator>
      <dc:date>2020-06-03T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transpost in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653068#M19320</link>
      <description>&lt;P&gt;You would not have happened to have the same input as output? In that case you are deleting the input before trying to read it. If you move the deletion code down to execute after the transpose code, that may help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 05:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653068#M19320</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-06-04T05:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transpost in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653070#M19321</link>
      <description>&lt;P&gt;Is there a reason why you need user written code and can't use the DIS Transpose transformation?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 05:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653070#M19321</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-04T05:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653736#M19322</link>
      <description>&lt;P&gt;I was frustrated with the transform so I was trying the code. I did get the Transpose transform to work eventually. It is very demanding.&lt;/P&gt;&lt;P&gt;For future reference: Each output column needs to match and have the exact spelling from the input row names (not surprising). My problem was that the transform was automatically creating an output table name with an underscore; if you didn't select the option to allow for special characters, in the output table properties&lt;STRIKE&gt;,&lt;/STRIKE&gt; it wouldn't work (should be built-in IMO).&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 17:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Transpose-in-DI-Studio/m-p/653736#M19322</guid>
      <dc:creator>crawfe</dc:creator>
      <dc:date>2020-06-05T17:07:11Z</dc:date>
    </item>
  </channel>
</rss>

