<?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 do I split up a large table from an imported xlsx file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923138#M363456</link>
    <description>&lt;P&gt;I don't have any insight in PRAMS, and maybe not so many other here at he communities, so a bit more details would be helpful to understand your challenge.&lt;/P&gt;
&lt;P&gt;"SAS is creating one giant table that includes each survey question for each variable."&lt;/P&gt;
&lt;P&gt;Please provide a PROC CONTENTS to describe your imported data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the State filter, isn't there a variable that holds that information?&lt;/P&gt;
&lt;P&gt;Again, more detail required to help you.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 10:29:12 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2024-04-05T10:29:12Z</dc:date>
    <item>
      <title>How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923064#M363423</link>
      <description>&lt;P&gt;I am using a dataset from PRAMS. I imported the file which has several different tabs for different variables. Under each tab, there are different survey questions in each individauls from each state replied. Since they are on the same tab however, SAS is creating one giant table that includes each survey question for each variable. This is causing there to be up to 800 obs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also wondering how I can code this so that I have a select few states from the set instead of all of them. Below you will find my code. I clearly am new to this, so any advice would be appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;libname Prams 'D:\PhotonUser\My Files\Home Folder\Prams';&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import substance use sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Substance_Use&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Substance Use";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import health ins. status prenatal sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Health_Ins_Prenatal&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Health Ins. Status Prenatal";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import health ins. status postpartum sheet */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Health_Ins_Postpartum&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Health Ins. Status Postpartum";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import depression sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Health_Depression&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Depression";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import pregnancy intention sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Preg_Intent&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Pregnancy Intention";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import health care services sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_Health_Srv&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Health Care Services";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* import intimate partner violence sheet */&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT FILE="D:\PhotonUser\My Files\Home Folder\Prams\Prams20.xlsx"&lt;/DIV&gt;&lt;DIV&gt;OUT=Prams20_IPV&lt;/DIV&gt;&lt;DIV&gt;DBMS=xlsx&lt;/DIV&gt;&lt;DIV&gt;REPLACE;&lt;/DIV&gt;&lt;DIV&gt;SHEET="Intimate Partner Violence (IPV)";&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 00:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923064#M363423</guid>
      <dc:creator>SAS0005</dc:creator>
      <dc:date>2024-04-05T00:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923138#M363456</link>
      <description>&lt;P&gt;I don't have any insight in PRAMS, and maybe not so many other here at he communities, so a bit more details would be helpful to understand your challenge.&lt;/P&gt;
&lt;P&gt;"SAS is creating one giant table that includes each survey question for each variable."&lt;/P&gt;
&lt;P&gt;Please provide a PROC CONTENTS to describe your imported data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the State filter, isn't there a variable that holds that information?&lt;/P&gt;
&lt;P&gt;Again, more detail required to help you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 10:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923138#M363456</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-04-05T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923173#M363474</link>
      <description>&lt;P&gt;I am a bit familiar with PRAMS. Apparently the access to the public use data sets requires some set up that I'm not going to attempt to get access at this time.&lt;/P&gt;
&lt;P&gt;I am a bit surprised that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465034"&gt;@SAS0005&lt;/a&gt; is dealing with such a spreadsheet as most of the CDC sponsored projects like this will also have data available in SAS data set forms and often has analysis code which can be pretty critical for the sample designs of such surveys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you go back to the source of your data and first see if you can get SAS data directly as Proc Import, or somewhat better the LIBNAME EXCEL or XLSX engines may have issues with inconsistent variable lengths and possibly types for the same variables given the way that the import and Libname engines work with Excel files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923173#M363474</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-05T14:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923180#M363478</link>
      <description>&lt;P&gt;It appears you've sourced your Excel from &lt;A href="https://www.cdc.gov/prams/prams-data/form/arf-access-form.htm" target="_blank" rel="noopener"&gt;https://www.cdc.gov/prams/prams-data/form/arf-access-form.htm&lt;/A&gt;&amp;nbsp;under the Selected ...Indicators section. These are REPORTS and not in a form that's ready made for import into a table for further processing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post processing such imports of Excel reports to get to a proper rectangular structure required by tables can be tedious (and would be for these reports).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1712326824436.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95243i15D03321D5232EE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1712326824436.png" alt="Patrick_0-1712326824436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I understand this right then you can register with PRAMS and get access to more detailed and much more suitable source data for use with SAS. Based on the codebooks it appears PRAMS is also using SAS.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1712327169984.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95244iF6221900903BBFA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1712327169984.png" alt="Patrick_1-1712327169984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923180#M363478</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-05T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923317#M363520</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465034"&gt;@SAS0005&lt;/a&gt;&amp;nbsp;I still recommend that you register with Prams and get the proper data for analysis. But just for fun and to improve my Python skills a bit...&lt;/P&gt;
&lt;P&gt;When downloading and looking into these prams Excel reports found &lt;A href="https://www.cdc.gov/prams/prams-data/selected-mch-indicators.html" target="_self"&gt;here&lt;/A&gt; I realised that for each table a named ranges had been defined (Table1, Table2, etc.) and that all tables in all sheets have the same structure. In the following an approach how to read such Excel data into a SAS table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've run the Python script separately but there are also various methods how to run a Python script directly out of a SAS session (available methods depend on SAS version) or alternatively you can also call SAS out of Python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Using Python read each table (range) into a data frame and then export to a .csv&lt;/P&gt;
&lt;PRE&gt;import pandas as pd
from openpyxl import load_workbook
from openpyxl.utils.cell import range_boundaries
import re

workbook_path = r"C:\temp\prams_test\\"
workbook_name = "PRAMS-MCH-Indicators-2020-508.xlsx"
outfile_root  = r"C:\temp\prams_test\source_csv\\"

wb = load_workbook(workbook_path + workbook_name)

def replace_non_alphanumeric(string, replacement=''):
    return re.sub(r'[^0-9a-zA-Z_]+', replacement, string.strip())

def extract_tables(ws, sheet_name):
    dfs_tmp = {}

    for name, table_range in ws.tables.items():
        # Get position of data table defined by named range
        min_col, min_row, max_col, max_row = range_boundaries(table_range)

        # read value of cell relative to top left corner of named range
        reference_cell = ws[table_range.split(':')[0]]
        table_name = reference_cell.offset(row=-1).value
        table_name = table_name.replace(',',' ')

        # Convert table to DataFrame
        table = ws.iter_rows(min_row, max_row, min_col, max_col, values_only=True)
        header = next(table)
        df = pd.DataFrame(table, columns=header)

        # add columns workbook, sheet_name and table_name to data frame
        df.insert(0, "workbook_name", workbook_name)
        df.insert(1, "sheet_name", sheet_name)
        df.insert(2, "table_name", table_name)

        # write data frame to .csv without header row and index column
        df.iloc[1:].to_csv(outfile_root
                                  + replace_non_alphanumeric(workbook_name.split('.')[0]).lower()
                            + "_" + replace_non_alphanumeric(sheet_name).lower()
                            + "_" + replace_non_alphanumeric(table_name).lower() + ".csv"
                            , index=False, header=False)
        dfs_tmp[name] = df

    return dfs_tmp


# Dictionary to store all the dfs in.
# Format: {table_name1: df, table_name2: df, ...}
dfs = {}

for ws in wb.worksheets:
    dfs.update(extract_tables(ws, ws.title))&lt;/PRE&gt;
&lt;P&gt;Above creates per table a separate .csv with a naming convention: &amp;lt;workbook name&amp;gt;_&amp;lt;sheet name&amp;gt;_&amp;lt;table name (derived from the table title)&amp;gt;.csv&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1712460415405.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95277i6A11536F43BC4995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1712460415405.png" alt="Patrick_0-1712460415405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2: Read the .csv's into SAS&lt;/P&gt;
&lt;P&gt;You can use a wildcard in the csv name to for example read all the tables belonging to a workbook or to only read the tables belonging to a single worksheet. And you can of course also already sub-set your data as part of reading it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile "C:\temp\prams_test\source_csv\pramsmchindicators2020508_breastfeedingpractices_*.csv"
         truncover dsd dlm=",";

  attrib
    workbook    informat=$200.    label='Name of Excel Workbook'
    sheet       informat=$31.     label='Name of Excel Sheet'
    table_name  informat=$200.    label='Name of table in Excel Sheet'
    site_name   informat=$100.    label='State'
    denominator informat=best32.  label='N (Denominator) - Unweighted Sample Size'
    numerator   informat=best32.  label='N (Numerator) - Unweighted Frequency'
    weight      informat=best32.  label='Weighted %'
    lower95     informat=best32.  label='Lower 95% - Confidence Interval'
    upper95     informat=best32.  label='Upper 95% - Confidence Interval'
    ;

  input
    workbook
    sheet
    table_name  
    site_name   
    denominator 
    numerator   
    weight      
    lower95     
    upper95     
    ;

 if site_name in ('Alabama','Florida');
run;

proc print data=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1712462661281.png" style="width: 777px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95280i5F52B81783744E4F/image-dimensions/777x94?v=v2" width="777" height="94" role="button" title="Patrick_0-1712462661281.png" alt="Patrick_0-1712462661281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw: The value for table name is sourced from the title above the table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1712460946530.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95279i1BF4713071B9EA52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_2-1712460946530.png" alt="Patrick_2-1712460946530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And because this cell was not part of the named range for the table I needed below code to derive it&lt;/P&gt;
&lt;PRE&gt;        # read value of cell relative to top left corner of named range
        reference_cell = ws[table_range.split(':')[0]]
        table_name = reference_cell.offset(row=-1).value
        table_name = table_name.replace(',',' ')&lt;/PRE&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;</description>
      <pubDate>Sun, 07 Apr 2024 04:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923317#M363520</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-07T04:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split up a large table from an imported xlsx file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923338#M363523</link>
      <description>&lt;P&gt;So assuming you are right and those are the XLSX files of interest they should not be hard to read with SAS because all of the variables appear to be numeric.&amp;nbsp; You just need to start reading in cell A4 and tell SAS to not invent variable names.&amp;nbsp; You can then read the whole sheet and transpose it to get the metadata for the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried it for the first two sheets for one of the files and the metadata (column headers) are exactly the same.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x  "C:\downloads\PRAMS-MCH-Indicators-2016-2021.xlsx";

proc import dbms=xlsx datafile=x out=meta_2016 replace ;
  getnames=NO;
  range='2016$A1:';
run;
proc import dbms=xlsx datafile=x out=data_2016 replace ;
  getnames=NO;
  range='2016$A4:';
run;

proc transpose data=meta_2016(obs=3) out=names_2016;
  var _all_;
run;

proc import dbms=xlsx datafile=x out=meta_2017 replace ;
  getnames=NO;
  range='2017$A1:';
run;
proc import dbms=xlsx datafile=x out=data_2017 replace ;
  getnames=NO;
  range='2017$A4:';
run;

proc transpose data=meta_2017(obs=3) out=names_2017;
  var _all_;
run;

proc compare data=names_2016 compare=names_2017;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can process the headers to generate your own unique variable names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data newnames_2017 ;
  set names_2017 ;
  length varname $32 label $256 indicator variable $200 ;
  retain indicator variable ;
  if _N_=1 then varname='STATE';
  else do;
    if col1 ne ' ' then do;
      ind_num+1;
      indicator=col1;
      var_num=0;
    end;
    if col2 ne ' ' then do;
      variable=col2;
      var_num+1;
      sub_num=0;
    end;
    sub_num+1;
    varname=cats('var',ind_num,'_',var_num,'_',sub_num);
    label=catx(' - ',indicator,variable,col3);
  end;
run;

proc print;
 var _name_ varname label ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So you get something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1712502022669.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95285i672490E4CC243A71/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1712502022669.png" alt="Tom_0-1712502022669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which you can use to generate code to RENAME the variables and attach a label.&lt;/P&gt;
&lt;P&gt;Or perhaps use to reshape the data into more normal form since it looks like that third level of name is the same for every variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1712502130601.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95286iD57E03AAC3FD540F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_1-1712502130601.png" alt="Tom_1-1712502130601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 15:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-split-up-a-large-table-from-an-imported-xlsx-file/m-p/923338#M363523</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-07T15:02:21Z</dc:date>
    </item>
  </channel>
</rss>

