<?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: SAS in Unix environment, parallel computing problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215485#M267643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gergely for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your recommendations, I added a new parameter just for giving a number to the combination of factors. However, in my final output, this does not assemble the 243 results, instead, a lot of them. I mean, many combinations are repeated and many others are missing (for instance I got combinations 5, 10, 16, and so on, and the combinations at the beginning at between those are missing, and for these combinations I got several repeated results).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(answering your question about that is not parallel, I don't have too much experience in that kind of programming; in this case am working through a server of a supercomputer which according to their manuals, when one send the job with the csv file containing the parameters, the cluster splices the job in parallel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mauricio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 14:25:52 GMT</pubDate>
    <dc:creator>mauflagrum</dc:creator>
    <dc:date>2015-05-15T14:25:52Z</dc:date>
    <item>
      <title>SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215483#M267641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that somebody would help me. I am working with SAS in Unix environment through a remote server, and in order to make my simulations faster, I have to run in parallel my program. For doing so, I have five parameters that change into 243 possible combinations, which are storage in a csv file (the one that the server reads in order to change those values in my code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am performing are two models in meta-analysis using PROC MIXED. My problem basically is that when I try to put all the output together, with the following code, I just recover the simulations corresponding to the last combinations of factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname r " ";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods noresults;&lt;/P&gt;&lt;P&gt;options nonotes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Reading the parameters from the csv file*/&lt;/P&gt;&lt;P&gt;%let varw = %scan(&amp;amp;sysparm,1,':');&lt;/P&gt;&lt;P&gt;%let varv = %scan(&amp;amp;sysparm,2,':');&lt;/P&gt;&lt;P&gt;%let varr = %scan(&amp;amp;sysparm,3,':');&lt;/P&gt;&lt;P&gt;%let varu = %scan(&amp;amp;sysparm,4,':');&lt;/P&gt;&lt;P&gt;%let smd = %scan(&amp;amp;sysparm,5,':');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*macro for generating the data and performing the four-level meta-analysis*/&lt;/P&gt;&lt;P&gt;%macro fourlevel;&lt;/P&gt;&lt;P&gt;%let k=3; /*number of studies*/&lt;/P&gt;&lt;P&gt;%let c = 30; /*number of countries*/&lt;/P&gt;&lt;P&gt;%let oc=2; /*number of outcomes*/&lt;/P&gt;&lt;P&gt;%let dataset = 10;&lt;/P&gt;&lt;P&gt;%do d=1 %to &amp;amp;dataset; /*number of simulated datasets for each combination*/&lt;/P&gt;&lt;P&gt;/* simulating sample level residuals (level-1)*/&lt;/P&gt;&lt;P&gt;data sample;&lt;/P&gt;&lt;P&gt;do country = 1 to &amp;amp;c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do study = 1 to &amp;amp;k;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do outcome = 1 to &amp;amp;oc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; r = normal(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;/* simulating outcome level residuals (level-2)*/&lt;/P&gt;&lt;P&gt;data outcome; &lt;/P&gt;&lt;P&gt;do country = 1 to &amp;amp;c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do study = 1 to &amp;amp;k;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do outcome = 1 to &amp;amp;oc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u = normal(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;/*simulating random study-effects (level 3)*/&lt;/P&gt;&lt;P&gt;data study; &lt;/P&gt;&lt;P&gt;do country = 1 to &amp;amp;c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do study = 1 to &amp;amp;k;&lt;/P&gt;&lt;P&gt;&amp;nbsp; v = normal(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;/*simulating random country-effects (level 4)*/&lt;/P&gt;&lt;P&gt;data country;&lt;/P&gt;&lt;P&gt;do country = 1 to &amp;amp;c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; w = normal(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge country study;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by country;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge all outcome;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by country study ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge all sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by country study outcome;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;set all;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; w = w*sqrt(&amp;amp;varw);&lt;/P&gt;&lt;P&gt;&amp;nbsp; v = v*sqrt(&amp;amp;varv);&lt;/P&gt;&lt;P&gt;&amp;nbsp; u = u*sqrt(&amp;amp;varu);&lt;/P&gt;&lt;P&gt;&amp;nbsp; r = r*sqrt(&amp;amp;varr);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; d = &amp;amp;smd + w + v + u + r; &lt;/P&gt;&lt;P&gt;&amp;nbsp; precision=1/&amp;amp;varr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*keep country study outcome d precision;*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*performing the meta-analysis*/&lt;/P&gt;&lt;P&gt;/*four level*/&lt;/P&gt;&lt;P&gt;proc mixed data= all ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class country study outcome;&lt;/P&gt;&lt;P&gt;&amp;nbsp; weight precision;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model d = /solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random intercept / sub = outcome (study*country);&lt;/P&gt;&lt;P&gt;&amp;nbsp; random intercept /sub = study(country);&lt;/P&gt;&lt;P&gt;&amp;nbsp; random intercept /sub = country;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parms 1 1 1 1/hold = 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods output solutionF=fixed1 covparms=random1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do out = 1 %to 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data fixed&amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fixed&amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model = &amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; k = &amp;amp;k;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d = &amp;amp;d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oc = &amp;amp;oc; &lt;/P&gt;&lt;P&gt;&amp;nbsp; varw=&amp;amp;varw;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varv=&amp;amp;varv;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varr=&amp;amp;varr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varu=&amp;amp;varu;&lt;/P&gt;&lt;P&gt;&amp;nbsp; smd=&amp;amp;smd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc append base=fixedall&amp;amp;out new=fixed&amp;amp;out FORCE NOWARN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data random&amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set random&amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model = &amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; k = &amp;amp;k;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d = &amp;amp;d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oc = &amp;amp;oc; &lt;/P&gt;&lt;P&gt;&amp;nbsp; varw=&amp;amp;varw;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varv=&amp;amp;varv;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varr=&amp;amp;varr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; varu=&amp;amp;varu;&lt;/P&gt;&lt;P&gt;&amp;nbsp; smd=&amp;amp;smd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc append base=randomall&amp;amp;out new=random&amp;amp;out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend fourlevel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%fourlevel;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data r.fixedall1;&lt;/P&gt;&lt;P&gt;set fixedall1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data r.randomall1;&lt;/P&gt;&lt;P&gt;set randomall1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 11:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215483#M267641</guid>
      <dc:creator>mauflagrum</dc:creator>
      <dc:date>2015-05-15T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215484#M267642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The code you posted does not run in parallel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there a wrapper code, that runs this 243 times?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Perhaps include one more parameter in the &amp;amp;sysparm vector.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then you will have one aditional line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;%let &lt;STRONG&gt;combinationNum&lt;/STRONG&gt; = %scan(&amp;amp;sysparm,&lt;STRONG&gt;6&lt;/STRONG&gt;,':');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; 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; font-size: 13px; background-color: #ffffff;"&gt;And change the last 2 data steps to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data r.fixedall&amp;amp;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;combinationNum.&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set fixedall1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data r.randomall&amp;amp;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;combinationNum.&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set randomall1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;At the very end you have to asseble the 243 results with 2 additional data steps:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data r.fixedall_final;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; r.fixedall:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data r.&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;randomall&lt;/SPAN&gt;_final;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; r.&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;randomall&lt;/SPAN&gt;:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 12:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215484#M267642</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-15T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215485#M267643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gergely for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your recommendations, I added a new parameter just for giving a number to the combination of factors. However, in my final output, this does not assemble the 243 results, instead, a lot of them. I mean, many combinations are repeated and many others are missing (for instance I got combinations 5, 10, 16, and so on, and the combinations at the beginning at between those are missing, and for these combinations I got several repeated results).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(answering your question about that is not parallel, I don't have too much experience in that kind of programming; in this case am working through a server of a supercomputer which according to their manuals, when one send the job with the csv file containing the parameters, the cluster splices the job in parallel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mauricio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 14:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215485#M267643</guid>
      <dc:creator>mauflagrum</dc:creator>
      <dc:date>2015-05-15T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215486#M267644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your CSV file looks now something like this:&lt;/P&gt;&lt;P&gt;1:2:3:4:5:&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;0.1:0.22:1.3:2.4:1.5:&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;0.1:0.22:1.3:2.4:1.5:&lt;STRONG&gt;243&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;And when you run this program through the supercomputer, you have the following datasets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final1, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final2, ..., &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final243,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;randomall_final1, random&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;all_final2, ..., &lt;SPAN style="font-size: 13.3333330154419px;"&gt;randomall_final243,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;And the problem is, that for example the &lt;STRONG&gt;content&lt;/STRONG&gt; of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final3, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final4, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;fixedall_final5 &lt;STRONG&gt;is the same&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;First of all double check your CSV file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The last 2 data steps I wrote should be not included into your program!&amp;nbsp; You should run them separately, after running the 243 scenarios!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is the libname statment exactly this in your program? (So you have not changed it in the post to hide the path?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;libname r " ";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I think the system runs your 243 tasks in paralell, but allways 5 or 6 instances at a time. And somehow the results overwrite eachother.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Does the supercomputer system manual contain something about how to write the code? Maybe restrictions about the usage of libraries? About usage of WORK libraries?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If still not working, you could try to include the &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;combinationNum.&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt; suffix to all the dataset names that you use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 22:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215486#M267644</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-15T22:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215487#M267645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It have been a long time since my last update. I've been working more in my code, and just until now I realized that actually it is running in parallel in the HPC cluster, however the problem lies on the fact that when it runs, the final data set is sometimes in use by one process and for that reason I lose several rows in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error messages that I got in my log file look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: SimSun-18030, SimSun, monospace; font-size: 14.6666660308838px;"&gt;ERROR: A lock is not available for WORK.FIXEDALL1.DATA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: SimSun-18030, SimSun, monospace; font-size: 14.6666660308838px;"&gt;ERROR: Lock held by process 37767.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to tackle this problem using a macro as described here: &lt;A href="http://www.lexjansen.com/pharmasug/2005/posters/po33.pdf"&gt;http://www.lexjansen.com/pharmasug/2005/posters/po33.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is still giving me incomplete outputs, now I wonder if maybe using a data set stored in RAM memory instead of the slave core could help me out. I have a little notion that using PROC IML could help me, but so far I don't have a clue of how to do it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 13:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215487#M267645</guid>
      <dc:creator>mauflagrum</dc:creator>
      <dc:date>2015-05-25T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215488#M267646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your trying to have the separate parallel processes write back to the same FIXEDALL dataset?&lt;/P&gt;&lt;P&gt;You probable should be having each thread write its own summary file and then combine them after all of the threads are finished.&lt;/P&gt;&lt;P&gt;If you want to have them write to a common table then it will need to be a table that supports concurrent access such as a database system or SAS/Share server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 16:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215488#M267646</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-05-25T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS in Unix environment, parallel computing problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215489#M267647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, I just did what you suggested about having each thread in its own summary, and it finally worked. Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 16:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-in-Unix-environment-parallel-computing-problem/m-p/215489#M267647</guid>
      <dc:creator>mauflagrum</dc:creator>
      <dc:date>2015-05-25T16:38:56Z</dc:date>
    </item>
  </channel>
</rss>

