<?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 anyone explain what this step is doing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/343990#M79017</link>
    <description>&lt;P&gt;can anyone help me on understanding what this is doing. it is in datastep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assign=(not(index(_alo_,";")) and not(missing(_alo_)) and (column not in ("VAL"));&lt;/P&gt;&lt;P&gt;if assignment then do;&lt;BR /&gt;call execute(catx(" ",&lt;BR /&gt;"length "||strip(column)||" $32;&lt;BR /&gt;_whr_="""||strip(_whr_)||""";origin="||quote(strip(origin))||";"||strip(_alo_)||";&lt;BR /&gt;VALUE=strip("||strip(column)||");COLUMN="""||strip(column)||""";output;"));&lt;BR /&gt;end;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 09:32:00 GMT</pubDate>
    <dc:creator>alexdsa310</dc:creator>
    <dc:date>2017-03-24T09:32:00Z</dc:date>
    <item>
      <title>can anyone explain what this step is doing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/343990#M79017</link>
      <description>&lt;P&gt;can anyone help me on understanding what this is doing. it is in datastep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assign=(not(index(_alo_,";")) and not(missing(_alo_)) and (column not in ("VAL"));&lt;/P&gt;&lt;P&gt;if assignment then do;&lt;BR /&gt;call execute(catx(" ",&lt;BR /&gt;"length "||strip(column)||" $32;&lt;BR /&gt;_whr_="""||strip(_whr_)||""";origin="||quote(strip(origin))||";"||strip(_alo_)||";&lt;BR /&gt;VALUE=strip("||strip(column)||");COLUMN="""||strip(column)||""";output;"));&lt;BR /&gt;end;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/343990#M79017</guid>
      <dc:creator>alexdsa310</dc:creator>
      <dc:date>2017-03-24T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone explain what this step is doing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/343996#M79020</link>
      <description>&lt;P&gt;Without the rest of the data step (how is variable assignment created?) and some example data (post in a &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;data step&lt;/A&gt;), it is impossible to tell.&lt;/P&gt;
&lt;P&gt;I can only see that some datastep statements are created with call execute.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/343996#M79020</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-24T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone explain what this step is doing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/344037#M79030</link>
      <description>&lt;P&gt;Very likely it does nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first line creates a variable called ASSIGN (or possibly gives a value to an existing variable named ASSIGN). &amp;nbsp;The value will be 0 or 1, depending on whether the comparisons to the right of the equal sign are true or false.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next line (probably) refers to the wrong variable name. &amp;nbsp;It begins:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if assignment then ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like it should begin:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if assign then ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could be wrong, but since there is likely no variable named ASSIGNMENT, the rest of the program doesn't do anything. &amp;nbsp;Even if the code worked, it is written somewhat carelessly. &amp;nbsp;Notice that within CATX there is just one comma separating the delimiter from the character strings to be concatenated. &amp;nbsp;That means there is only a single character string, and CATX is just overly complicating the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to know what CALL EXECUTE does, you have some studying ahead of you. &amp;nbsp;It is not a simple topic.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 11:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-anyone-explain-what-this-step-is-doing/m-p/344037#M79030</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-24T11:45:14Z</dc:date>
    </item>
  </channel>
</rss>

