<?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 Proc Transpose by three variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/450501#M113423</link>
    <description>&lt;P&gt;I need to transpose a very large dataset by three variables.&amp;nbsp; Here's the code I'm using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want; set mstar.bd_membership; if Companyid="0C000006SV" or CompanyID="0C000006SP";&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;proc sort;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc transpose data=want out=need;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;var value;&lt;BR /&gt;id data_bd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here's a snapshot of the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report Fiscal Committee Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fiscal&lt;BR /&gt;Obs CompanyID Year RYear ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PersonID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data_bd&lt;/P&gt;&lt;P&gt;1 0C0000AL9W 2015 2014 AUDIT PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;2 0C0000AL9W 2015 2014 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;3 0C0000AL9W 2015 2014 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;4 0C0000AL9W 2015 2014 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;5 0C0000AL9W 2015 2014 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;6 0C0000AL9W 2015 2014 AUDIT PS000000RW 60171 21000.00 60171&lt;BR /&gt;7 0C0000AL9W 2015 2014 BOARD PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;8 0C0000AL9W 2015 2014 BOARD PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;9 0C0000AL9W 2015 2014 BOARD PS000000RW 60117 USD 60117&lt;BR /&gt;10 0C0000AL9W 2015 2014 BOARD PS000000RW 60167 0 60167&lt;BR /&gt;11 0C0000AL9W 2015 2014 BOARD PS000000RW 60170 30000.00 60170&lt;BR /&gt;12 0C0000AL9W 2015 2014 BOARD PS000000RW 60171 40000.00 60171&lt;BR /&gt;13 0C0000AL9W 2015 2014 BOARD PS000000RW 60176 4 60176&lt;BR /&gt;14 0C0000AL9W 2015 2014 COMPE PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;15 0C0000AL9W 2015 2014 COMPE PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;16 0C0000AL9W 2015 2014 COMPE PS000000RW 60117 USD 60117&lt;BR /&gt;17 0C0000AL9W 2015 2014 COMPE PS000000RW 60167 1 60167&lt;BR /&gt;18 0C0000AL9W 2015 2014 COMPE PS000000RW 60170 4000.00 60170&lt;BR /&gt;19 0C0000AL9W 2015 2014 COMPE PS000000RW 60171 14000.00 60171&lt;BR /&gt;20 0C0000AL9W 2016 2015 AUDIT PS000000RW 60101 2016-04-19 60101&lt;BR /&gt;21 0C0000AL9W 2016 2015 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;22 0C0000AL9W 2016 2015 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;23 0C0000AL9W 2016 2015 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;24 0C0000AL9W 2016 2015 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;25 0C0000AL9W 2016 2015 AUDIT PS000000RW 60171 15000.00 60171&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this for two companies it works fine.&amp;nbsp; However, when I run it for 9000+ companies I get an error message in the log that reads&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;PersonID=PS000000RW FiscalYear=2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a size limit on how large a file SAS can transpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a printout of the sample output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 01:17:43 GMT</pubDate>
    <dc:creator>jbighitter</dc:creator>
    <dc:date>2018-04-03T01:17:43Z</dc:date>
    <item>
      <title>Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/450501#M113423</link>
      <description>&lt;P&gt;I need to transpose a very large dataset by three variables.&amp;nbsp; Here's the code I'm using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want; set mstar.bd_membership; if Companyid="0C000006SV" or CompanyID="0C000006SP";&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;proc sort;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc transpose data=want out=need;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;var value;&lt;BR /&gt;id data_bd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here's a snapshot of the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report Fiscal Committee Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fiscal&lt;BR /&gt;Obs CompanyID Year RYear ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PersonID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data_bd&lt;/P&gt;&lt;P&gt;1 0C0000AL9W 2015 2014 AUDIT PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;2 0C0000AL9W 2015 2014 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;3 0C0000AL9W 2015 2014 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;4 0C0000AL9W 2015 2014 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;5 0C0000AL9W 2015 2014 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;6 0C0000AL9W 2015 2014 AUDIT PS000000RW 60171 21000.00 60171&lt;BR /&gt;7 0C0000AL9W 2015 2014 BOARD PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;8 0C0000AL9W 2015 2014 BOARD PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;9 0C0000AL9W 2015 2014 BOARD PS000000RW 60117 USD 60117&lt;BR /&gt;10 0C0000AL9W 2015 2014 BOARD PS000000RW 60167 0 60167&lt;BR /&gt;11 0C0000AL9W 2015 2014 BOARD PS000000RW 60170 30000.00 60170&lt;BR /&gt;12 0C0000AL9W 2015 2014 BOARD PS000000RW 60171 40000.00 60171&lt;BR /&gt;13 0C0000AL9W 2015 2014 BOARD PS000000RW 60176 4 60176&lt;BR /&gt;14 0C0000AL9W 2015 2014 COMPE PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;15 0C0000AL9W 2015 2014 COMPE PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;16 0C0000AL9W 2015 2014 COMPE PS000000RW 60117 USD 60117&lt;BR /&gt;17 0C0000AL9W 2015 2014 COMPE PS000000RW 60167 1 60167&lt;BR /&gt;18 0C0000AL9W 2015 2014 COMPE PS000000RW 60170 4000.00 60170&lt;BR /&gt;19 0C0000AL9W 2015 2014 COMPE PS000000RW 60171 14000.00 60171&lt;BR /&gt;20 0C0000AL9W 2016 2015 AUDIT PS000000RW 60101 2016-04-19 60101&lt;BR /&gt;21 0C0000AL9W 2016 2015 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;22 0C0000AL9W 2016 2015 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;23 0C0000AL9W 2016 2015 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;24 0C0000AL9W 2016 2015 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;25 0C0000AL9W 2016 2015 AUDIT PS000000RW 60171 15000.00 60171&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this for two companies it works fine.&amp;nbsp; However, when I run it for 9000+ companies I get an error message in the log that reads&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;PersonID=PS000000RW FiscalYear=2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a size limit on how large a file SAS can transpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a printout of the sample output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 01:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/450501#M113423</guid>
      <dc:creator>jbighitter</dc:creator>
      <dc:date>2018-04-03T01:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/450506#M113425</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Is there a size limit on how large a file SAS can transpose?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Read the error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Check your data to ensure that you do not have duplicates. Otherwise, if you have&amp;nbsp;duplicates by,&amp;nbsp;person, year and committee what&amp;nbsp;would you expect to see if there are&amp;nbsp;multiple records, like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Obs CompanyID Year RYear ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PersonID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data_bd&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;1 0C0000AL9W 2015 2014 AUDIT PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;2 0C0000AL9W 2015 2014 AUDIT PS000000RW 60101 DEF 14A 60101&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;This is what SAS is seeing and saying, it cannot create two columns called _60101 within the group Person, FiscalYear, Committee.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;If you need to pre-summarize the data you need to explain how. If not, you need to explain how to&amp;nbsp;deal with the above case. One method is to add another variable that can act as a counter and include both those variables in your ID statement. So that your ID becomes data_BD + counter so it would be _60101_1, _60101_2.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;You may also want to add the PREFIX option since those numbers are not valid SAS names and maybe you want some&amp;nbsp;letters&amp;nbsp;in front to make it easier to reference them in the future.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;PS your variable names&amp;nbsp;in the code don't match with your sample data so it's hard to follow.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202158"&gt;@jbighitter&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I need to transpose a very large dataset by three variables.&amp;nbsp; Here's the code I'm using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want; set mstar.bd_membership; if Companyid="0C000006SV" or CompanyID="0C000006SP";&lt;/P&gt;
&lt;P&gt;proc print; run;&lt;/P&gt;
&lt;P&gt;proc sort;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc transpose data=want out=need;&lt;BR /&gt;by personid fiscalyear committeeid;&lt;BR /&gt;var value;&lt;BR /&gt;id data_bd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Here's a snapshot of the data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Report Fiscal Committee Data&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fiscal&lt;BR /&gt;Obs CompanyID Year RYear ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PersonID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data_bd&lt;/P&gt;
&lt;P&gt;1 0C0000AL9W 2015 2014 AUDIT PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;2 0C0000AL9W 2015 2014 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;3 0C0000AL9W 2015 2014 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;4 0C0000AL9W 2015 2014 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;5 0C0000AL9W 2015 2014 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;6 0C0000AL9W 2015 2014 AUDIT PS000000RW 60171 21000.00 60171&lt;BR /&gt;7 0C0000AL9W 2015 2014 BOARD PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;8 0C0000AL9W 2015 2014 BOARD PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;9 0C0000AL9W 2015 2014 BOARD PS000000RW 60117 USD 60117&lt;BR /&gt;10 0C0000AL9W 2015 2014 BOARD PS000000RW 60167 0 60167&lt;BR /&gt;11 0C0000AL9W 2015 2014 BOARD PS000000RW 60170 30000.00 60170&lt;BR /&gt;12 0C0000AL9W 2015 2014 BOARD PS000000RW 60171 40000.00 60171&lt;BR /&gt;13 0C0000AL9W 2015 2014 BOARD PS000000RW 60176 4 60176&lt;BR /&gt;14 0C0000AL9W 2015 2014 COMPE PS000000RW 60101 2015-04-27 60101&lt;BR /&gt;15 0C0000AL9W 2015 2014 COMPE PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;16 0C0000AL9W 2015 2014 COMPE PS000000RW 60117 USD 60117&lt;BR /&gt;17 0C0000AL9W 2015 2014 COMPE PS000000RW 60167 1 60167&lt;BR /&gt;18 0C0000AL9W 2015 2014 COMPE PS000000RW 60170 4000.00 60170&lt;BR /&gt;19 0C0000AL9W 2015 2014 COMPE PS000000RW 60171 14000.00 60171&lt;BR /&gt;20 0C0000AL9W 2016 2015 AUDIT PS000000RW 60101 2016-04-19 60101&lt;BR /&gt;21 0C0000AL9W 2016 2015 AUDIT PS000000RW 60102 DEF 14A 60102&lt;BR /&gt;22 0C0000AL9W 2016 2015 AUDIT PS000000RW 60117 USD 60117&lt;BR /&gt;23 0C0000AL9W 2016 2015 AUDIT PS000000RW 60167 0 60167&lt;BR /&gt;24 0C0000AL9W 2016 2015 AUDIT PS000000RW 60170 6000.00 60170&lt;BR /&gt;25 0C0000AL9W 2016 2015 AUDIT PS000000RW 60171 15000.00 60171&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run this for two companies it works fine.&amp;nbsp; However, when I run it for 9000+ companies I get an error message in the log that reads&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60101" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60102" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60117" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60167" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60170" occurs twice in the same BY group.&lt;BR /&gt;ERROR: The ID value "_60171" occurs twice in the same BY group.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;PersonID=PS000000RW FiscalYear=2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a size limit on how large a file SAS can transpose?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a printout of the sample output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 02:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/450506#M113425</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-03T02:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451672#M113915</link>
      <description>&lt;P&gt;Thanks for responding.&amp;nbsp; It was a data problem.&amp;nbsp; I had to re-import the data fields as they had truncated at 5 characters causing instances with "BOARD" and "BOARD COMPENSATION COMMITTEE" to both be classified as "BOARD" creating the duplication problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have another issue with the data if you have a moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using PROC IMPORT to bring in 15000+ .dat files.&amp;nbsp; I'm sure there is an easier way, but brute force often works for me.&lt;/P&gt;&lt;P&gt;The problem is the field length for VAR6 is set to $808, When I print and/or combine the files I get the WARNING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING: Data too long for column "Value"; truncated to 145 characters to fit.&lt;BR /&gt;NOTE: There were 4785 observations read from the data set WORK.TEST787.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.06 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to modify PROC IMPORT so that the data is not truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a copy of the log file and an example of the data I'm importing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 20:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451672#M113915</guid>
      <dc:creator>jbighitter</dc:creator>
      <dc:date>2018-04-05T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451675#M113917</link>
      <description />
      <pubDate>Thu, 05 Apr 2018 20:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451675#M113917</guid>
      <dc:creator>jbighitter</dc:creator>
      <dc:date>2018-04-05T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451677#M113918</link>
      <description>&lt;P&gt;Set the GUESSINGROWS=MAX option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202158"&gt;@jbighitter&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for responding.&amp;nbsp; It was a data problem.&amp;nbsp; I had to re-import the data fields as they had truncated at 5 characters causing instances with "BOARD" and "BOARD COMPENSATION COMMITTEE" to both be classified as "BOARD" creating the duplication problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do have another issue with the data if you have a moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using PROC IMPORT to bring in 15000+ .dat files.&amp;nbsp; I'm sure there is an easier way, but brute force often works for me.&lt;/P&gt;
&lt;P&gt;The problem is the field length for VAR6 is set to $808, When I print and/or combine the files I get the WARNING&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WARNING: Data too long for column "Value"; truncated to 145 characters to fit.&lt;BR /&gt;NOTE: There were 4785 observations read from the data set WORK.TEST787.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.06 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to modify PROC IMPORT so that the data is not truncated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a copy of the log file and an example of the data I'm importing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 20:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451677#M113918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-05T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451767#M113955</link>
      <description>&lt;P&gt;Do all of your DAT files have the same structure?&amp;nbsp; If so then don't use PROC IMPORT.&amp;nbsp; Just write your own DATA step to read the file(s).&lt;/P&gt;
&lt;P&gt;You could even read them all in at once.&amp;nbsp; Although 15,000 seems like a lot of files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 05:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451767#M113955</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-04-06T05:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Transpose by three variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451768#M113956</link>
      <description>&lt;P&gt;If you want to print long text then use PROC REPORT, it is smarter than PROC PRINT and can wrap long strings for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use PROC PRINT, but NOT to the listing output destination. Instead send it to another ODS destination, like PDF, RTF, HTML or EXCEL.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 05:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Transpose-by-three-variables/m-p/451768#M113956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-04-06T05:31:33Z</dc:date>
    </item>
  </channel>
</rss>

