<?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 importing uneven data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/importing-uneven-data/m-p/70527#M7052</link>
    <description>Hi, &lt;BR /&gt;
i have an excel file like this &lt;BR /&gt;
Full Name			Phone	Event	Event Date	Hall	Area	Row	Seats	Price	Price Level	Price Types	&lt;BR /&gt;
&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361640 		12/04/2008 14:24	Phone		Holland, P	Sales	6 		$95.00 				&lt;BR /&gt;
&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	32-33	18.5	Band A	Standard	Clearing&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	34-35	15.5	Band A	Senior Citizen	Clearing&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	36-37	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361678 		12/04/2008 17:50	Phone		Lycett, S	Sales	14 		$220.00 				&lt;BR /&gt;
&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	32-34	15.5	Band A	Senior Citizen	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	35-39	18.5	Band A	Standard	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	40-41	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	B	32-35	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361686 		12/04/2008 18:41	internet		Internet	Sales	3 		$50.50 				&lt;BR /&gt;
&lt;BR /&gt;
HOW can i import into sas with the following output&lt;BR /&gt;
&lt;BR /&gt;
Full Name	   Phone	Event	    Event Date   Hall	  Area	 Row	Seats	Price	Price Level	Price Types	Transaction No. Transaction Date	Transaction Type	User Name:	Status: Number of Tickets:		Total Amount&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
smith alison  23533  cinderella  12/12/2009 10.30  central theatre  balcony  A  13-14  10.00  bandA  clearing  12132 15/05/2008  card   scott  paid   2    20.00&lt;BR /&gt;
&lt;BR /&gt;
john martin  23253  cinderella  12/12/2009 13.30  central theatre  balcony  A  44-52  12.00  bandA  clearing  12132 15/05/2008  card   scott  paid  8    96.00</description>
    <pubDate>Wed, 21 Jan 2009 15:03:12 GMT</pubDate>
    <dc:creator>ssas</dc:creator>
    <dc:date>2009-01-21T15:03:12Z</dc:date>
    <item>
      <title>importing uneven data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/importing-uneven-data/m-p/70527#M7052</link>
      <description>Hi, &lt;BR /&gt;
i have an excel file like this &lt;BR /&gt;
Full Name			Phone	Event	Event Date	Hall	Area	Row	Seats	Price	Price Level	Price Types	&lt;BR /&gt;
&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361640 		12/04/2008 14:24	Phone		Holland, P	Sales	6 		$95.00 				&lt;BR /&gt;
&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	32-33	18.5	Band A	Standard	Clearing&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	34-35	15.5	Band A	Senior Citizen	Clearing&lt;BR /&gt;
Smith S			235977	Cinderella 2008	21/12/2008 14:00	The Central Theatre	Balcony	A	36-37	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361678 		12/04/2008 17:50	Phone		Lycett, S	Sales	14 		$220.00 				&lt;BR /&gt;
&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	32-34	15.5	Band A	Senior Citizen	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	35-39	18.5	Band A	Standard	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	A	40-41	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Allen A			07913 037009	Cinderella 2008	24/12/2008 14:00	The Central Theatre	Balcony	B	32-35	13.5	Band A	Under 16	Clearing&lt;BR /&gt;
Transaction No.		Transaction Date	Transaction Type		User Name:	Status:	Number of Tickets:		Total Amount				&lt;BR /&gt;
&lt;BR /&gt;
361686 		12/04/2008 18:41	internet		Internet	Sales	3 		$50.50 				&lt;BR /&gt;
&lt;BR /&gt;
HOW can i import into sas with the following output&lt;BR /&gt;
&lt;BR /&gt;
Full Name	   Phone	Event	    Event Date   Hall	  Area	 Row	Seats	Price	Price Level	Price Types	Transaction No. Transaction Date	Transaction Type	User Name:	Status: Number of Tickets:		Total Amount&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
smith alison  23533  cinderella  12/12/2009 10.30  central theatre  balcony  A  13-14  10.00  bandA  clearing  12132 15/05/2008  card   scott  paid   2    20.00&lt;BR /&gt;
&lt;BR /&gt;
john martin  23253  cinderella  12/12/2009 13.30  central theatre  balcony  A  44-52  12.00  bandA  clearing  12132 15/05/2008  card   scott  paid  8    96.00</description>
      <pubDate>Wed, 21 Jan 2009 15:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/importing-uneven-data/m-p/70527#M7052</guid>
      <dc:creator>ssas</dc:creator>
      <dc:date>2009-01-21T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: importing uneven data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/importing-uneven-data/m-p/70528#M7053</link>
      <description>If I'm understanding this correctly, your Excel data has one or more rows for each transaction and price type, then one row with the summary charge in that transaction. Something like...&lt;BR /&gt;
&lt;BR /&gt;
*Standard&lt;BR /&gt;
*Senior&lt;BR /&gt;
TOTAL&lt;BR /&gt;
*Standard&lt;BR /&gt;
TOTAL&lt;BR /&gt;
*Standard&lt;BR /&gt;
*Under 16&lt;BR /&gt;
*Senior&lt;BR /&gt;
TOTAL&lt;BR /&gt;
&lt;BR /&gt;
Sound correct? If so, I would write some DATA step code to read this file. Do a Save As from Excel as a CSV or Tab-delimited file and then read in the result with a DATA step. The name for these types of raw data files is hierarchical, and there's an example of code to read one of them here...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/654.html" target="_blank"&gt;http://support.sas.com/kb/24/654.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
There's also alternative code from Warren Repole here...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.repole.com/dinosaur/hierarchical.html" target="_blank"&gt;http://www.repole.com/dinosaur/hierarchical.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I can't think of a way to use the importing choices in Enterprise Guide to read this in since it involves mixed record types. You could fool around with the Excel file up front as an alternative, but unless you're an Excel grandmaster that would probably be more trouble than writing the DATA step code. Hope this helps!</description>
      <pubDate>Wed, 21 Jan 2009 20:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/importing-uneven-data/m-p/70528#M7053</guid>
      <dc:creator>RichardH_sas</dc:creator>
      <dc:date>2009-01-21T20:55:37Z</dc:date>
    </item>
  </channel>
</rss>

