<?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: Proc DSTrans example. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250340#M56582</link>
    <description>&lt;P&gt;DSTRANS is used mainly by SAS solutions, such as SAS Decision Services, to convert DATA step to DS2 or C. &amp;nbsp;There are some references to it being &lt;A href="https://support.sas.com/documentation/cdl/en/ds2ref/68052/HTML/default/viewer.htm#titlepage.htm" target="_self"&gt;documented as part of the DS2 Language Reference&lt;/A&gt;, but I don't see it there. &amp;nbsp;At best, I'd say this isn't a highly-documented procedure as it was designed to facilitate SAS-provided solutions -- pushing DATA step work into databases or creating parallelized data flows.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2016 14:54:12 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-02-16T14:54:12Z</dc:date>
    <item>
      <title>Proc DSTrans example.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250239#M56578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while&amp;nbsp;reading on Proc DS2, i came across a comment&lt;BR /&gt;&lt;SPAN&gt;which said&amp;nbsp;PROC DSTRANS will help you by translating a subset of your DATA step code into DS2 code.&lt;BR /&gt;&lt;/SPAN&gt;However i am not able to find a good documentation on this procedure. &amp;nbsp;some have put the code but not the result or log.&lt;BR /&gt;i use the same code and it does not work for me ..&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could someone please guide me on this ... DS2 seems very promising. &amp;nbsp;(Fyi I am using sas 9.4 on Eg 7.1 in noprofile mode)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so I created a dummy code like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data side_L;
	SET Sashelp.geoexs;
		where side='L';
run;


data side_R;
	SET Sashelp.geoexs;
		where side='R';
run;&lt;/PRE&gt;&lt;P&gt;saved the code and then tried proc dstrans as follows&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC DSTRANS DS_TO_DS2  
	IN='F:\sas\sas statistic practise dsn/ds2_proc_dstrans.sas'
	OUTdir='F:\sas\sas statistic practise dsn/' 
	out='ds2_proc_dstrans_Converted.sas'  ;
RUN;
quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;23         PROC DSTRANS DS_TO_DS2
24         IN='F:\sas\sas statistic practise dsn/ds2_proc_dstrans.sas'
25         OUTdir='F:\sas\sas statistic practise dsn/'
26         out='ds2_proc_dstrans_Converted.sas'  ;
27         RUN;

3          data side_L;
           ____
           180
4          	SET Sashelp.geoexs;
            ___
            180
5          		where side='L';
             _____
             180
9          data side_R;
           ____
           180
ERROR: Could not compile source code.
10         	SET Sashelp.geoexs;
            ___
            180
11         		where side='R';
             _____
             180
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Feb 2016 04:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250239#M56578</guid>
      <dc:creator>smijosimon</dc:creator>
      <dc:date>2016-02-16T04:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc DSTrans example.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250244#M56579</link>
      <description>&lt;P&gt;Can you post references to PROC DSTRANS?&lt;/P&gt;
&lt;P&gt;I can't find anything either, except a random comment in someone's blog.&lt;/P&gt;
&lt;P&gt;That type of code translation seems a bit too good to be true to me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 05:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250244#M56579</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-16T05:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc DSTrans example.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250337#M56581</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the description that comes up on&amp;nbsp; SAS EG. However on clicking the product documentation links results in "no results found"&lt;BR /&gt;and some links say its explained in the "DS2 language reference guide", however i do not find any mention of it there too.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;makes me wonder if it was an internal training procedure &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="dstrans.png" alt="dstrans.png" src="https://communities.sas.com/t5/image/serverpage/image-id/1899i7600039A801C75E4/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="dstrans2.PNG" alt="dstrans2.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/1900iD16F32864D4FD55B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250337#M56581</guid>
      <dc:creator>smijosimon</dc:creator>
      <dc:date>2016-02-16T14:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc DSTrans example.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250340#M56582</link>
      <description>&lt;P&gt;DSTRANS is used mainly by SAS solutions, such as SAS Decision Services, to convert DATA step to DS2 or C. &amp;nbsp;There are some references to it being &lt;A href="https://support.sas.com/documentation/cdl/en/ds2ref/68052/HTML/default/viewer.htm#titlepage.htm" target="_self"&gt;documented as part of the DS2 Language Reference&lt;/A&gt;, but I don't see it there. &amp;nbsp;At best, I'd say this isn't a highly-documented procedure as it was designed to facilitate SAS-provided solutions -- pushing DATA step work into databases or creating parallelized data flows.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250340#M56582</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-02-16T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc DSTrans example.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250409#M56586</link>
      <description>Thanks Chris. That makes sense.</description>
      <pubDate>Tue, 16 Feb 2016 18:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-DSTrans-example/m-p/250409#M56586</guid>
      <dc:creator>smijosimon</dc:creator>
      <dc:date>2016-02-16T18:13:26Z</dc:date>
    </item>
  </channel>
</rss>

