<?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: file zipping thru macro in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20812#M3828</link>
    <description>Thanks SBB,I corrected it.</description>
    <pubDate>Thu, 13 May 2010 06:03:15 GMT</pubDate>
    <dc:creator>ren2010</dc:creator>
    <dc:date>2010-05-13T06:03:15Z</dc:date>
    <item>
      <title>file zipping thru macro</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20810#M3826</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have a requirement,where i need to zip 100 plus files into one file,here is the sample code i am working on;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
options mprint mlogic;&lt;BR /&gt;
 %let outaz=P:\test\AA_201004.zip;&lt;BR /&gt;
%let libd7=E:\test\data\AZ\,aa_test_2007.sas7bdat;&lt;BR /&gt;
%let libd8=E:\test\data\AZ\,aa_test_2008.sas7bdat;&lt;BR /&gt;
%let libd9=E:\test\data\AZ\,aa_test_2009.sas7bdat;&lt;BR /&gt;
%let libd10=E:\test\data\AZ\,aa_test_2010.sas7bdat;&lt;BR /&gt;
%let libh7=E:\test\data\AZ\,aa_test1_2007.sas7bdat;&lt;BR /&gt;
%let libh8=E:\test\data\AZ\,aa_test1_2008.sas7bdat;&lt;BR /&gt;
%let libh9=E:\test\data\AZ\,aa_test1_2009.sas7bdat;&lt;BR /&gt;
%let libh10=E:\\test\data\AZ\,aa_test1_2010.sas7bdat;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro qc (outaz,lib);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
x %bquote("d:\program files (x86)\winzip\WINZIP32.EXE") &lt;BR /&gt;
&lt;BR /&gt;
-a &lt;BR /&gt;
&lt;BR /&gt;
%bquote("&amp;amp;out.") &lt;BR /&gt;
&lt;BR /&gt;
"&amp;amp;lib.";&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libd7.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libd8.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libd9.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libd10.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libd7.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libh8.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libh9.);&lt;BR /&gt;
%qc (&amp;amp;outaz.,&amp;amp;libh10.);&lt;BR /&gt;
&lt;BR /&gt;
I am getting an error " More positional parameters found than defined"&lt;BR /&gt;
&lt;BR /&gt;
Please Help</description>
      <pubDate>Thu, 13 May 2010 02:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20810#M3826</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-05-13T02:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: file zipping thru macro</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20811#M3827</link>
      <description>Suggest you activate the OPTIONS below in order to see the macro compilation and macro variable resolution to debug the problem:&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS SOURCE SOURCE2 MGEN SGEN MLOGIC NOMPRINT;&lt;BR /&gt;
&lt;BR /&gt;
As the diagnostic stated, you are passing data-strings to your macro execution command which are being interpreted as positional parameters (more than 2).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 13 May 2010 02:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20811#M3827</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-13T02:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: file zipping thru macro</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20812#M3828</link>
      <description>Thanks SBB,I corrected it.</description>
      <pubDate>Thu, 13 May 2010 06:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/file-zipping-thru-macro/m-p/20812#M3828</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-05-13T06:03:15Z</dc:date>
    </item>
  </channel>
</rss>

