<?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>SergioSanchez Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>SergioSanchez Tracker</description>
    <pubDate>Wed, 03 Jun 2026 10:01:03 GMT</pubDate>
    <dc:date>2026-06-03T10:01:03Z</dc:date>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145739#M29057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding, I'll keep in mind your advices &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145739#M29057</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-22T16:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145737#M29055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for all your help. it's much appreciated for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145737#M29055</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-19T12:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145734#M29052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached one screenshot of my dataset. The key is only var1 (numeric, 8 length) . It's something like a social Security but with less length. I need almost all field because I need to check if this variables match it with other variables that&amp;nbsp; there are in the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 08:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145734#M29052</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-19T08:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145731#M29049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your ideas to improve the code. All code related to deal with memory system simply don't work due to limitations of size (only 4 gb) and the impossibility to change it fo a new powerfull one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd try splitting in more datasets (perhaps 20 or 25)&amp;nbsp; but how is the bes option for merge all those datasets?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I make an array in the merge statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 11:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145731#M29049</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-18T11:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145724#M29042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your comments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made one text splitting the dataset in 10 smaller datasets, the results given are below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options fullstimer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data = Dataset_A out = Dataset_B (compress=binary);&lt;/P&gt;&lt;P&gt;by KEY;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 32498768 observations read from the data set Dataset_A.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.PERSONSHORT has 32498768 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: Compressing data set Dataset_B decreased size by 71.08 percent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compressed is 391645 pages; un-compressed would require 1354116 pages.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44:04.28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:54.30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:13.66&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66929k&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OS Memory&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100216k&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16/09/2014&amp;nbsp; 17:22:45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I splitt the dataset with a macro (thanks to Selvaratnam Sridharma for the tool &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if 0 then set ec_dim_per nobs=count;&lt;/P&gt;&lt;P&gt;34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput('numobs',put(count,8.));&lt;/P&gt;&lt;P&gt;35&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;36&amp;nbsp;&amp;nbsp; %let n=%sysevalf(&amp;amp;numobs/&amp;amp;num,ceil);&lt;/P&gt;&lt;P&gt;37&amp;nbsp;&amp;nbsp; data %do J=1 %to &amp;amp;num ; DATASET_B_&amp;amp;J&amp;nbsp; %end; ;&lt;/P&gt;&lt;P&gt;38&amp;nbsp;&amp;nbsp; set DATASET_B;&lt;/P&gt;&lt;P&gt;39&amp;nbsp;&amp;nbsp; %do I=1 %to &amp;amp;num;&lt;/P&gt;&lt;P&gt;40&amp;nbsp;&amp;nbsp; if %eval(&amp;amp;n*(&amp;amp;i-1)) &amp;lt;_n_ &amp;lt;= %eval(&amp;amp;n*&amp;amp;I)&lt;/P&gt;&lt;P&gt;41&amp;nbsp;&amp;nbsp; then output DATASET_B_&amp;amp;I;&lt;/P&gt;&lt;P&gt;42&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;43&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;44&amp;nbsp;&amp;nbsp; %mend split;&lt;/P&gt;&lt;P&gt;45&amp;nbsp;&amp;nbsp; %split (10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA STEP stopped due to looping.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 32498768 observations read from the data set WORK.DATASET_B.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_1 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_2 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_3 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_4 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_5 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_6 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_7 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_8 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_9 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_10 has 3249875 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15:13.22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 49.68 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: This SAS session is using a registry in WORK.&amp;nbsp; All changes will be lost at the end of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another macro (this time made by me &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;)&amp;nbsp; to run all the proc sort throught the datasets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;46&amp;nbsp;&amp;nbsp; %macro sort;&lt;/P&gt;&lt;P&gt;47&amp;nbsp;&amp;nbsp; %do i=1 %to 10;&lt;/P&gt;&lt;P&gt;48&amp;nbsp;&amp;nbsp; proc sort data = DATASET_B_&amp;amp;i;&lt;/P&gt;&lt;P&gt;49&amp;nbsp;&amp;nbsp; by KEY;&lt;/P&gt;&lt;P&gt;50&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;51&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;52&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;53&amp;nbsp;&amp;nbsp; %mend sort;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;54&amp;nbsp;&amp;nbsp; %short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_1.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_1 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4:19.91&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.59 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_2.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_2 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5:08.46&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.56 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_3.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_3 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:29.01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.51 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_4.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_4 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4:03.43&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_5.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_5 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6:03.90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18.95 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_6.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_6 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6:44.73&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.23 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_7.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_7 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:48.26&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18.72 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_8.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_8 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3:36.37&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.17 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249877 observations read from the data set WORK.DATASET_B_9.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_9 has 3249877 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4:41.83&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 3249875 observations read from the data set WORK.DATASET_B_10.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DATASET_B_10 has 3249875 observations and 31 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3:17.87&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.48 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sum of the all sorts procedures are almost 41 min without counting the 15 min for the macro to work. And we still need a merge to build the dataset again (by the way, what do you think is the best way to merge all the datasets?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see split in 10 dataset isn't faster than the original proc sort. If I able to free space I'd try with perhaps 20 small datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AmySwinford, I have SAS/ACCESS ready for use in my PC but I never use it and to be honest I don´t know where to start to make it work in local mode (server/cliente in the same machine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I think defragmenting&lt;/SPAN&gt; the hard disk is a very good idea &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;, I´d try if my user have admin privileges,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145724#M29042</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-17T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145720#M29038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaap for this "free of charge lessons" :smileylaugh:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`d try to increase the amount of memory in the buffer and total too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your questions, I coul say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;- The most of the datases I need the hole set, in case I only need subset it´s already implemented in the code&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;- Is some dataset there is no order at all, in other the order is not the one I need &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;- In fact it is not what I was thinking, but it works is doesn´t matter.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;What about multiprocessing in local, I'd try to explain myselft. Is posible to run the two short in parallel?. I read about this but I know sure if it could be posible running a local sesion and "emulate" a server on local machine.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145720#M29038</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-16T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145718#M29036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I left here a proc sort, this proc sort is one of the bigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;72&amp;nbsp;&amp;nbsp; proc sort data = dataset_1= dataset_2;&lt;/P&gt;&lt;P&gt;73&amp;nbsp;&amp;nbsp; by key;&lt;/P&gt;&lt;P&gt;74&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTA: Se han leído &lt;STRONG&gt;32498768&lt;/STRONG&gt; observaciones del conj. datos WORK.EC_DIM_PER.&lt;/P&gt;&lt;P&gt;NOTA: El conj. datos WORK.PERSORDENADO tiene 32498768 observaciones y 31 variables.&lt;/P&gt;&lt;P&gt;NOTA: PROCEDIMIENTO SORT utilizado (Tiempo de proceso total):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tiempo real&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; 45:25.58&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tiempo de cpu del usuario&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 42.85 segundos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tiempo de cpu del sistema&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:40.40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memoria&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 131842k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaap, I atttach you a proc sort screenshort, I hope it can resolved your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ballardw, Hash hasn`t enough memory for run in my PC. It couldn't load the entire table in memory. Please see my post &lt;SPAN style="color: #000000; font-family: arial, sans-serif; background-color: #ffffff;"&gt;above&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your help&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11845i09EF4A000257B1E8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Proc Contents.jpg" title="Proc Contents.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145718#M29036</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-16T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145714#M29032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;client installation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sorry Linush, I don't know what you mean with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;One of the task of my job is to make sure that the data load from the source is the same that the data that is working with so we take the data set from the source, order it, take the data that is loaded in the system, order it and verify if the data are the same, wich data are in the source and not in the system and viceversa.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is something like this below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;set b (where= vardate1&amp;lt;= date1 and vardate2&amp;lt;=date2 and vardate3&amp;lt;=date3 and vardate4&amp;lt;=date4);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt;set y (where= vardate1&amp;lt;= date1 and vardate2&amp;lt;=date2 and vardate3&amp;lt;=date3 and vardate4&amp;lt;=date4);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data = a;&lt;/P&gt;&lt;P&gt;order by key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data = x (rename=(var_f = key));&lt;/P&gt;&lt;P&gt;order by key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data h i j;&lt;/P&gt;&lt;P&gt;merge a (in=w) b(in=q);&lt;/P&gt;&lt;P&gt;if w then output h;&lt;/P&gt;&lt;P&gt;else if g then output i;&lt;/P&gt;&lt;P&gt;else output j;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the proc sort takes tooooooooo much time, so I´m trying to replace this piece of the code.&lt;/P&gt;&lt;P&gt;A good alternative was to use a hash object but muy PC hasn't enough memory for perform it with success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145714#M29032</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-15T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145711#M29029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I increase the amount of memory without any result. I need more physical memory installed in my pc, only&amp;nbsp; 4 gb is very short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only two images to show you the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before (1.jpg) and after (2.jpg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P:S : A better way to sort a dataset of 40 millions rows instead of Proc report ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10776i1D8CD4E8DF6BAC77/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="2.jpg" title="2.jpg" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10777i9C6DECB849F3238E/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="1.jpg" title="1.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145711#M29029</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-15T15:03:01Z</dc:date>
    </item>
    <item>
      <title>Is there any solution for this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145708#M29026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m trying to improve my time processing and so I am development a hash object for a faster sort but an error about the amount of memory ocurrs and I not sure if there is any option to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;if 0 then set a;&lt;/P&gt;&lt;P&gt;declare hash epi (dataset:"a", ordered:"y");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epi.definekey ("key1","key2");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epi.definedata (all:"yes");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epi.definedone ();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epi.output (dataset: "fastorder");&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Hash object added 7864304 items when memory failure occurred.&lt;/P&gt;&lt;P&gt;FATAL: Insufficient memory to execute DATA step program. Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.06 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.78 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.20 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1137687k&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OS Memory&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1217248k&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/09/2014&amp;nbsp; 15:48:46&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-solution-for-this/m-p/145708#M29026</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-15T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137590#M27821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Tom escribió:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;%LOCAL will insure that the macro variables are defined in the current macro's symbol table.&amp;nbsp; So changes made to them will not impact any existing macro variables that were created before the macro started running.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tom for share your knowledge with me &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; and thanks damanaulakh88 for your code, it was my first &lt;SPAN style="color: #000000; font-family: arial, sans-serif; background-color: #ffffff;"&gt;approach&lt;/SPAN&gt; to the problem but for some reason I still don't resolved why the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;counting1-:counting4&lt;/SPAN&gt; are not store like macro variables, in fact they don't appear when you submit %put _all_ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what could be the reason fo it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137590#M27821</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-12T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137587#M27818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Jaap Karman escribió:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When you have SAS running on several servers you can connect those using SAS/connect.&lt;BR /&gt;By doing that you can remote submit SAS-programs between the sas sessions, doing up/down loads and using remote library servers (RLS).&lt;/P&gt;
&lt;P&gt;RLS is making the library transparent in a functional way looking at it on the local machine while it on server side.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When you are using SAS/Access to a RDBMS you are also connecting to External data. But in that case is not a SAS session running at the other side.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much Jaap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 09:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137587#M27818</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-11T09:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137585#M27816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tom, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a few questions for us &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry Jaap but I don't know what is RLS. Could you light to me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom, I've never seen before the statement "&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: white;"&gt;%local&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt; tables i ;". Would you explain to me how to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 07:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137585#M27816</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-11T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137582#M27813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that´s right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very good answer, clean and easy, but unfortunately it´s doens't work for me because the datasets are not in my local drive, but if in a remote server so I don't see how many observations are in these datasets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7367_Captura.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said to Jaap in my sashelp.vmacro table I see all the macros I created with the select into: but when I try to access to them but without success&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I got it. There was a sintax issue, now the code iterates but without stores de results of the query in the macro variables counting1,counting2&amp;nbsp; and so on &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro countobs(table) ;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;%do i=1 %to 29;&lt;/P&gt;&lt;P&gt;select count (*) into :counting&amp;amp;i from dmpro.&amp;amp;&amp;amp;table&amp;amp;i;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPRINT(COUNTOBS):&amp;nbsp;&amp;nbsp; select count (*) into :counting25 from libname.table25;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 14:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137582#M27813</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-10T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137579#M27810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go to sashelp.Vmacro I can see all the macro variables I created with the select into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I don't know how to call that macros (table1,table2, and so on)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137579#M27810</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-10T10:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137577#M27808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Hima for your effort but&amp;nbsp; my macro's level is not enought for your code :smileycry::smileycry:, but it's much apreciated for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ballardw, that is not he problem as you can see in the code below &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom, I have to run several test that count observations in various dataset so First I import the results from past days to a dataset, the spreedsheet is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test table descript&amp;nbsp; count&amp;nbsp;&amp;nbsp; date&lt;/P&gt;&lt;P&gt;===&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =====&amp;nbsp;&amp;nbsp; ========&amp;nbsp; =====&amp;nbsp;&amp;nbsp; ====&lt;/P&gt;&lt;P&gt;test1 table1 zzzzzzzz 25 10/09/2014&lt;/P&gt;&lt;P&gt;.... .... .... .. .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is take test1 to test 50, table1 to table50, descript1 to descript50 and convert into macro variables throught the proc sql statement select into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this I'm thinking about get the count value for each test and table and store it in others macrovariables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, with the values of count1-count50 perform a proc sql insert into, into the dataset I imported from excel to acumulate the results of the days and export again to excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have managed the first step with de proc sql I posted in the post above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second step is to count the observations and here is where I locked because when I try to run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;76&amp;nbsp;&amp;nbsp; %countobs&lt;/P&gt;&lt;P&gt;MLOGIC(COUNTOBS):&amp;nbsp; Beginning execution.&lt;/P&gt;&lt;P&gt;MPRINT(COUNTOBS):&amp;nbsp;&amp;nbsp; proc sql;&lt;/P&gt;&lt;P&gt;MLOGIC(COUNTOBS):&amp;nbsp; %DO loop beginning; index variable I; start value is 1; stop value is 29;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by value is 1.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "COUNTOBS".&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count (*) into :counting&amp;amp;i from dmpro.&amp;amp;table.i;&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; 76&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference TABLA not resolved.&lt;/P&gt;&lt;P&gt;MPRINT(COUNTOBS):&amp;nbsp;&amp;nbsp; select count (*) into :counting1 from dmpro.&amp;amp;;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MLOGIC(COUNTOBS):&amp;nbsp; %DO loop index variable I is now 2; loop will iterate again.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "COUNTOBS".&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count (*) into :counting&amp;amp;i from dmpro.&amp;amp;table.i;&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; 76&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference TABLA not resolved.&lt;/P&gt;&lt;P&gt;MPRINT(COUNTOBS):&amp;nbsp;&amp;nbsp; select count (*) into :counting2 from dmpro.&amp;amp;;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I write %put _user_ I can see all the tables (from table1 to table50) with its values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 07:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137577#M27808</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-10T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Help developing a macro with iterations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137573#M27804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with macro variables created throught a proc sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql inobs=50;&lt;/P&gt;&lt;P&gt;select trim(testnumber), trim(table) into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :p1-:p50,&lt;/P&gt;&lt;P&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :table1-:tabla50&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; &lt;/P&gt;&lt;P&gt;from testimportcont;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'd like to iterate through the table ir order to store new macro variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro counting;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;%do i=1 %to 50;&lt;/P&gt;&lt;P&gt;select count (*) into :counting1-:counting50 from libtest.&amp;amp;tabla&amp;amp;i; &lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work and I don't know how to continue....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my weakness are to work with macros, the other are iterate with variables &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-developing-a-macro-with-iterations/m-p/137573#M27804</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-09T16:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert an automatic macro variable as a value in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-an-automatic-macro-variable-as-a-value-in-proc-sql/m-p/136712#M27661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both for your quickly answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 12:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-an-automatic-macro-variable-as-a-value-in-proc-sql/m-p/136712#M27661</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-09T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Insert an automatic macro variable as a value in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-an-automatic-macro-variable-as-a-value-in-proc-sql/m-p/136709#M27658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to insert values in a table with proc sql using a macro variable like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;insert into dummy (a, b, c, d, date)&lt;/P&gt;&lt;P&gt;values (&amp;amp;a., &amp;amp;b., &amp;amp;c., &amp;amp;d., &amp;amp;SYSDATE9);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any option to achiveve the goal?. I try too with symget'SYSDATE9' and something else without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 11:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-an-automatic-macro-variable-as-a-value-in-proc-sql/m-p/136709#M27658</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-09-09T11:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Datasets with where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Datasets-with-where-statement/m-p/176192#M45184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RW9, I have installed the ODBC driver and it's too slow but thanks for your tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, so data step it's not bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys for your help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 11:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Datasets-with-where-statement/m-p/176192#M45184</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-27T11:39:20Z</dc:date>
    </item>
  </channel>
</rss>

