<?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: Arrays in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322481#M62026</link>
    <description>&lt;P&gt;Please explain what this is supposed to do?&lt;/P&gt;
&lt;PRE&gt;data MacSerial2;
set MacSerial2;
do i= 1 to 5;
%let Tech = Tech[i]
%let targetno2 = serial#[i]
%let targetno3 = company[i]

end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help to provide a couple rows of input data and what you expect to happen with that input.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 20:27:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-04T20:27:24Z</dc:date>
    <item>
      <title>Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322453#M62022</link>
      <description>&lt;P&gt;I have a table that loops kinda like below only with every combination of those three variables. And I would like to create a report based on every horizonal Column of that table E.g. one report would where comany = next, serial # = 965465, Tech= Superman and another where company = next , serial # = 56465, Tech = Jed.I'm not sure the best way to do this but I tried this and it failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data MacSerial2;&lt;BR /&gt;set MacSerial2;&lt;BR /&gt;do i= 1 to 5;&lt;BR /&gt;%let Tech = Tech[i]&lt;BR /&gt;%let targetno2 = serial#[i]&lt;BR /&gt;%let targetno3 = company[i]&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Serial #&lt;/TD&gt;&lt;TD&gt;Tech&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Next&lt;/TD&gt;&lt;TD&gt;965465&lt;/TD&gt;&lt;TD&gt;Superman&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Next&lt;/TD&gt;&lt;TD&gt;56465&lt;/TD&gt;&lt;TD&gt;Jed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Google&lt;/TD&gt;&lt;TD&gt;2463&lt;/TD&gt;&lt;TD&gt;Jed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Google&lt;/TD&gt;&lt;TD&gt;1583&lt;/TD&gt;&lt;TD&gt;Justice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Matt&lt;/TD&gt;&lt;TD&gt;15612&lt;/TD&gt;&lt;TD&gt;bad&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322453#M62022</guid>
      <dc:creator>pscott</dc:creator>
      <dc:date>2017-01-04T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322454#M62023</link>
      <description>&lt;P&gt;Without question, the best way would be to produce a report based on just the first observation.&amp;nbsp; Once you have that working,&amp;nbsp;you can worry about how to extend that to additional observations.&amp;nbsp; The reporting requirements will dictate the methods you use to generate multiple reports.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322454#M62023</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-04T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322455#M62024</link>
      <description>Yes I have the report working properly I just need the variables to work properly!</description>
      <pubDate>Wed, 04 Jan 2017 18:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322455#M62024</guid>
      <dc:creator>pscott</dc:creator>
      <dc:date>2017-01-04T18:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322456#M62025</link>
      <description>&lt;P&gt;OK, since we're talking without specifics here, this would be one way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;set macserial2;&lt;/P&gt;
&lt;P&gt;call execute( ... statements that would generate a report for a single observation ...);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That approach generates the reporting statements for each observation individually.&amp;nbsp; There might be other ways, such as using a BY variable instead.&amp;nbsp; And note that CALL EXECUTE does have its tricky points if any macro language is involved.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322456#M62025</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-04T18:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322481#M62026</link>
      <description>&lt;P&gt;Please explain what this is supposed to do?&lt;/P&gt;
&lt;PRE&gt;data MacSerial2;
set MacSerial2;
do i= 1 to 5;
%let Tech = Tech[i]
%let targetno2 = serial#[i]
%let targetno3 = company[i]

end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help to provide a couple rows of input data and what you expect to happen with that input.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322481#M62026</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-04T20:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322487#M62027</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98336"&gt;@pscott&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a table that loops kinda like below only with every combination of those three variables. And I would like to create a report based on every horizonal Column of that table E.g. one report would where comany = next, serial # = 965465, Tech= Superman and another where company = next , serial # = 56465, Tech = Jed.I'm not sure the best way to do this but I tried this and it failed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have no idea what this means. Post an example please, you'll get an answer much faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, what are you defining as a report? Is that a sheet in Excel, a PDF page, a single Excel file and one for each company, or a single PDF file for each? &amp;nbsp;And what do you mean with the variable = (company=next...), are they printed across, or down or sideways...literally no clue with what you've stated here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're using arrays incorrectly and mixed with macro's, which doesn't make sense in your sample code. &amp;nbsp;Help us help you by detailing your question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arrays/m-p/322487#M62027</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-04T20:36:56Z</dc:date>
    </item>
  </channel>
</rss>

