<?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: How To Create Sub-Broker Report in SAS ?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629738#M186305</link>
    <description>&lt;P&gt;Also show the code you already tried, and describe where it does not meet your expectations.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 09:07:44 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-03-05T09:07:44Z</dc:date>
    <item>
      <title>How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629736#M186303</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;I Have attached the output Report.....and &lt;BR /&gt;inside i put the existing dataset..&lt;BR /&gt;So please anyone just saw the existing dataset and &lt;BR /&gt;give a solution for this how to transform existing data into out output Report&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (17).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36611i81825947B95D92CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (17).png" alt="Screenshot (17).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (19).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36612i3FA36D162CC9F95F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (19).png" alt="Screenshot (19).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629736#M186303</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629737#M186304</link>
      <description>&lt;P&gt;Provide example data in a data step with datalines,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;NOT IN PICTURES!!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629737#M186304</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629738#M186305</link>
      <description>&lt;P&gt;Also show the code you already tried, and describe where it does not meet your expectations.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629738#M186305</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629739#M186306</link>
      <description>&lt;P&gt;Actually i got in CSV and Excel files only so after import into SAS i send that pictures...For your i am provide that CSV and Excel files here please find it.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629739#M186306</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629740#M186307</link>
      <description>&lt;P&gt;I had provide 5 csv files please find another one excel file...I provide just justification about this please find that also..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit by KB, text from file:&lt;/P&gt;
&lt;PRE&gt;Report Name:
SUB-BROKER ACTIVE AM REPORT

Task
Data is available in different csv files like

Inwards day data is available in RAD1.CSV
NCA day data is available in RAD2.CSV

Inwards month data is available in RAD4.CSV
NCA mont data is available in RADD6.CASV

Inwards last month data is available in RAD3.CSV
NCA last month data is avilable in RAD5.CSV


Extract all the excel files into SAS
and manage the data according to your output report.

create macros for date file and give dates and monts dynamically

your output report should match 100% in all aspects like data &amp;amp; formatting  with output what i given.&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629740#M186307</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629741#M186308</link>
      <description>&lt;P&gt;So show what you have already done, in code, to get from those csv files to your expected result.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629741#M186308</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629742#M186309</link>
      <description>&lt;P&gt;Because you didn't ask for help importing the csv-files: Please post the code you are using to read &lt;STRONG&gt;&lt;FONT color="#800000"&gt;ALL&lt;/FONT&gt;&lt;/STRONG&gt; this files, and include the code required to get to the point where you actually are. And by "post" i mean as text using the little running man icon, &lt;FONT color="#800000"&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/FONT&gt; as attachments!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629742#M186309</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-03-05T09:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629743#M186310</link>
      <description>&lt;P&gt;I Can't understand how this existing data transformed into output report..please give a solution for this ....&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629743#M186310</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629744#M186311</link>
      <description>&lt;P&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD1.csv" out=work.RAD1&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD2.csv" out=work.RAD2&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD3.csv" out=work.RAD3&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD4.csv" out=work.RAD4&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro import(file,dname);&lt;BR /&gt;proc import datafile="&amp;amp;file" out=&amp;amp;dname&lt;BR /&gt;dbms=excel replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;%import(C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD6.xls,RAD6);&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629744#M186311</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T09:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629745#M186312</link>
      <description>These for import 5 CSV files into SAS&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD1.csv" out=work.RAD1&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD2.csv" out=work.RAD2&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD3.csv" out=work.RAD3&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD4.csv" out=work.RAD4&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD5.csv" out=work.RAD5&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;these code for import 1 excel file into SAS.&lt;BR /&gt;&lt;BR /&gt;%macro import(file,dname);&lt;BR /&gt;proc import datafile="&amp;amp;file" out=&amp;amp;dname&lt;BR /&gt;dbms=excel replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;%import(C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD6.xls,RAD6);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please write a programme how to get that required output...</description>
      <pubDate>Thu, 05 Mar 2020 09:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629745#M186312</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-03-05T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629762#M186321</link>
      <description>&lt;P&gt;So you first need to join all those imported tables, and get them into the right order for the report. Do that first. You can calculate the differences in this step, and assign proper labels to all your columns.&lt;/P&gt;
&lt;P&gt;(Joining tables is very simple SAS technique and can't be a problem if you already advanced to complex reporting)&lt;/P&gt;
&lt;P&gt;Then you should start experimenting with proc report, using the relevant columns for grouping, and the numeric columns for analysis.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629762#M186321</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Sub-Broker Report in SAS ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629938#M186426</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313738"&gt;@Mohan_Reddy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;These for import 5 CSV files into SAS&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD1.csv" out=work.RAD1&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD2.csv" out=work.RAD2&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD3.csv" out=work.RAD3&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD4.csv" out=work.RAD4&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile="C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD5.csv" out=work.RAD5&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;these code for import 1 excel file into SAS.&lt;BR /&gt;&lt;BR /&gt;%macro import(file,dname);&lt;BR /&gt;proc import datafile="&amp;amp;file" out=&amp;amp;dname&lt;BR /&gt;dbms=excel replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;%import(C:\Users\Coputer15\Desktop\Sub-Broker active AM Report\RAD6.xls,RAD6);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please write a programme how to get that required output...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Given your proc import code I am going to bet that you have none of the AM_CODE or TM_CODE values of OTHER that appear in your data. You may also not have any OTHER value for STATE_HEAD_CODE. I suspect that you may have different lengths for the AM_NAME, SH_NAME and TM_NAME variables in the different data sets. Which can lead to issues when the data is combined as well. And depending on the actual data files (I didn't look at all of them) there is a chance that you have a couple of variables that are numeric in one set and character in another.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked at proc contents for your imported data sets to verify that variables have the same type and length so there won't be problems when combining the data?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 20:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Create-Sub-Broker-Report-in-SAS/m-p/629938#M186426</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-05T20:14:26Z</dc:date>
    </item>
  </channel>
</rss>

