<?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: Detecting merge steps in pseudocode mappings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Detecting-merge-steps-in-pseudocode-mappings/m-p/759984#M240266</link>
    <description>&lt;P&gt;Followed how closely for cases one and two?&lt;/P&gt;
&lt;P&gt;A data step may any number of statements before a Set or Merge depending on coding style. For example you might have someone assign a bunch of lengths, formats or labels for some reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also some techniques with multiple SET statements that are used to combine/interleave more than one data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does every single data step end with a Run? If not you may be opening can worms for logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for a truly memorable question, what does the expected output from the process look like? I have no idea what you may want/expect the output to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 15:11:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-08-06T15:11:32Z</dc:date>
    <item>
      <title>Detecting merge steps in pseudocode mappings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detecting-merge-steps-in-pseudocode-mappings/m-p/759899#M240232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write some code that will scan pseudo sas code stored in a mapping sheet which merges or concatenates data sets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example 1 I want to see if there is "data" followed by "merge" and "run".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lines "ANY TEXT..." just mean that any other code or text may be present in those lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****example 1****&lt;/P&gt;&lt;P&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;BR /&gt;DATA NEW;&lt;BR /&gt;MERGE DSONE(IN=A) DSTWO(IN=B);&lt;BR /&gt;RUN;&lt;BR /&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example 2 I want to see if there is "data" followed by "set" followed by at least 2 data sets, and want to ignore the (in=) parts.&lt;/P&gt;&lt;P&gt;****example 2****&lt;/P&gt;&lt;P&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;BR /&gt;DATA NEW;&lt;BR /&gt;SET DSONE(IN=X) DSTWO(IN=Y) DSTHREE;&lt;BR /&gt;RUN;&lt;BR /&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example 3 I want to see if there is "proc sql" followed by "join" and "quit"&lt;/P&gt;&lt;P&gt;****example 3****&lt;/P&gt;&lt;P&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;select customers.city, sales.totals&lt;BR /&gt;from sales natural inner join customers&lt;BR /&gt;where country='United States';&lt;BR /&gt;QUIT;&lt;BR /&gt;ANY TEXT DKASJLFLDLSAJFKLDFJD;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detecting-merge-steps-in-pseudocode-mappings/m-p/759899#M240232</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2021-08-06T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting merge steps in pseudocode mappings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detecting-merge-steps-in-pseudocode-mappings/m-p/759984#M240266</link>
      <description>&lt;P&gt;Followed how closely for cases one and two?&lt;/P&gt;
&lt;P&gt;A data step may any number of statements before a Set or Merge depending on coding style. For example you might have someone assign a bunch of lengths, formats or labels for some reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also some techniques with multiple SET statements that are used to combine/interleave more than one data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does every single data step end with a Run? If not you may be opening can worms for logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for a truly memorable question, what does the expected output from the process look like? I have no idea what you may want/expect the output to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 15:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detecting-merge-steps-in-pseudocode-mappings/m-p/759984#M240266</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-06T15:11:32Z</dc:date>
    </item>
  </channel>
</rss>

