<?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: Passing Filename as parameters to SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231801#M42211</link>
    <description>&lt;P&gt;Here is an example that might help you....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unix Shell Code called "sasparm.sh"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas sasparm.sas -sysparm "$1"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your SAS program code called "sasparm.sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mlogic mprint symbolgen;
%let var1="&amp;amp;sysparm";
data in;
  input_value=&amp;amp;var1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you invoke the script, you may invoke like this in the command line...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sasparm.sh filename&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Good Luck...!!!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2015 12:02:13 GMT</pubDate>
    <dc:creator>kannand</dc:creator>
    <dc:date>2015-10-27T12:02:13Z</dc:date>
    <item>
      <title>Passing Filename as parameters to SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231782#M42207</link>
      <description>&lt;P&gt;We need to call the sas program from unix shell with the filenames to be passed as parameters. Please help us how can we pass a parameter to sas program from command line as argument and how it has to be handleled inside the SAS program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scenario is to call a same sas program in the weekly and monthly job with the different set of files.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 09:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231782#M42207</guid>
      <dc:creator>Siddhartha</dc:creator>
      <dc:date>2015-10-27T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Filename as parameters to SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231788#M42208</link>
      <description>&lt;P&gt;Well, me personally, I would just have a folder, and put the relevant files in. &amp;nbsp;Then using specific software have the program run as and when on any files in that directory. &amp;nbsp;Far easier. &amp;nbsp;However if you have to then check out this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/03/16/pass-params-sysget.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2015/03/16/pass-params-sysget.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231788#M42208</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-27T10:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Filename as parameters to SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231801#M42211</link>
      <description>&lt;P&gt;Here is an example that might help you....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unix Shell Code called "sasparm.sh"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas sasparm.sas -sysparm "$1"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your SAS program code called "sasparm.sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mlogic mprint symbolgen;
%let var1="&amp;amp;sysparm";
data in;
  input_value=&amp;amp;var1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you invoke the script, you may invoke like this in the command line...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sasparm.sh filename&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Good Luck...!!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 12:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Filename-as-parameters-to-SAS-program/m-p/231801#M42211</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2015-10-27T12:02:13Z</dc:date>
    </item>
  </channel>
</rss>

