<?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: Creat new tabs from in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362009#M10885</link>
    <description>I have a Excel file with 500 columns, I like to regroup them into different sheets</description>
    <pubDate>Fri, 26 May 2017 15:35:52 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2017-05-26T15:35:52Z</dc:date>
    <item>
      <title>Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/361998#M10881</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question.&amp;nbsp;&amp;nbsp; I have a CSV file contain 500 variables.&amp;nbsp; I would like to regroup different variables into different tabs.&amp;nbsp;&amp;nbsp; For example, Variable1, Variable5, Variable18 in new tab1 in new CSV.&amp;nbsp;&amp;nbsp; Variable3, Variable7, Variable126 in new tab2 in new CSV, and so on. &amp;nbsp;&amp;nbsp;&amp;nbsp;Please let me know if SAS could do this.&amp;nbsp; Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/361998#M10881</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362003#M10882</link>
      <description>&lt;P&gt;There is no such thing as "Tabs" in a CSV file. &amp;nbsp;CSV=Comma Seperated Variable file and is plain text with row one having column headers, then each data item on separate rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I think your talking about is Excel which does have tabs, but to do so you would need to save it as XLSX and lose all the benefits of the CSV file format. &amp;nbsp;Why would you want to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362003#M10882</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-26T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362007#M10883</link>
      <description>Sorry, what I mean was exporting to different Sheets in the Excel format.</description>
      <pubDate>Fri, 26 May 2017 15:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362007#M10883</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362008#M10884</link>
      <description>&lt;P&gt;If you have SAS 9.4 you can use libname excel statement to create native XLSX files, and then just copy over datasets keeping the variables you want in each.&lt;/P&gt;
&lt;P&gt;If not, then you can export your data again using keep statements, but output to tagsets.excelxp and use the options to set sheet names on export.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362008#M10884</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-26T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362009#M10885</link>
      <description>I have a Excel file with 500 columns, I like to regroup them into different sheets</description>
      <pubDate>Fri, 26 May 2017 15:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362009#M10885</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362010#M10886</link>
      <description>My is 9.3</description>
      <pubDate>Fri, 26 May 2017 15:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362010#M10886</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362012#M10887</link>
      <description>&lt;P&gt;Without much information its hard to say. &amp;nbsp;Probably easiest to highlight columns in Excel and copy and paste. &amp;nbsp;If its a routine task, then get the data in CSV format, import the data, then export it again.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362012#M10887</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-26T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362016#M10888</link>
      <description>Routine project, looking for SAS do the automation</description>
      <pubDate>Fri, 26 May 2017 15:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362016#M10888</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362024#M10889</link>
      <description>&lt;P&gt;How to export them?&amp;nbsp; Please advice.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362024#M10889</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-26T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362098#M10890</link>
      <description>&lt;P&gt;AFTER you have the csv imported into SAS then something like this may get you started. It creates an XML file that Excel can open and if desired save as XLSX. If ODS EXCEL works for then use XLSX for the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp file='path\filename.xml'
options (sheet_interval='PROC');

proc print data= have;
   var &amp;lt;your list of variable names that you want on the  
        tab goes here&amp;gt;;
run;

proc print data=have;
   var &amp;lt;your list of variable names that you want on the 
       second tab goes here&amp;gt;;
run;

proc print data=have;
   var &amp;lt;your list of variable names that you want on the 
       third tab goes here&amp;gt;;
run;
ods tagsets.excelxp close;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 21:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362098#M10890</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-26T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362109#M10891</link>
      <description>&lt;P&gt;How to label different name into different tabs? &amp;nbsp;For example, tab1 name = text 1, tab2 name = text 2, tab3 name = text 3, etc. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the option "&lt;SPAN&gt;sheet_interval"&lt;/SPAN&gt;&amp;nbsp;below use for? &amp;nbsp;I google "sheet_interval" could be&amp;nbsp;&lt;SPAN&gt;Table, Page, Bygroup, Proc, or None. &amp;nbsp; What are they refer to?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 00:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/362109#M10891</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-27T00:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/363852#M10969</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;How to label different name into different tabs? &amp;nbsp;For example, tab1 name = text 1, tab2 name = text 2, tab3 name = text 3, etc. &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use the option SHEET_NAME='Text' to specify the text for a tab and the name will have a counter appended for each sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;What is the option "&lt;SPAN&gt;sheet_interval"&lt;/SPAN&gt;&amp;nbsp;below use for? &amp;nbsp;I google "sheet_interval" could be&amp;nbsp;&lt;SPAN&gt;Table, Page, Bygroup, Proc, or None. &amp;nbsp; What are they refer to?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Pretty much exactly what the option name says: what rule is used to create a new sheet. Since some procedures can create more than one table then you may want each table on a different sheet if so then use the 'TABLE' option. ByGroup requests a separate sheet for each level of a BY variable in a procedure using the BY statement. PROC means to place all of the output from one Procedure . NONE means all output is sent to the same sheet. PAGE means for those procedures that create their own "page" output then each page goes to a separate sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sheet_interval option can be changed while still writing to the same output file by inserting an addtion ODS EXCEL or ODS tagsets.excel statement referencing the desired option for the next output but not including a file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/363852#M10969</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-02T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creat new tabs from</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/363873#M10970</link>
      <description>&lt;P&gt;Thank you so much for your valuable informantion.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creat-new-tabs-from/m-p/363873#M10970</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-06-02T16:45:58Z</dc:date>
    </item>
  </channel>
</rss>

