<?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: Proc Compare for Excel Date Format Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207430#M51525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't put the variable names within &amp;lt;&amp;gt; I put those there to indicate that you put a list of variables and I did not know all of the variables that you want to set the format for. This uses the same syntax as the FORMAT statement in a data step:&lt;/P&gt;&lt;P&gt;Format &amp;lt;list of variable names&amp;gt; &amp;lt;format for those variables&amp;gt; &amp;lt;another list of variables&amp;gt; &amp;lt;format for other variables&amp;gt; ;&lt;/P&gt;&lt;P&gt;Such as:&lt;/P&gt;&lt;P&gt;Format thisdate thatdate mmddyy10. thisnum thatnum theothernum F7.2 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 21:54:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-04-30T21:54:51Z</dc:date>
    <item>
      <title>Proc Compare for Excel Date Format Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207427#M51522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encountering some issues with the Proc Compare procedure using SAS Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;I’ve tried to lay out the two main challenges I’m facing with the Compare procedure and maybe you could provide some guidance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;Date format – I’d like the output to show the actual date “06/23/2015” instead of “42178”.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;Y-axis format – I’d like the output under Obs to say “Test 6” instead of “6”&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; &lt;IMG alt="SAS Output.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10223_SAS Output.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="SAS Original Excel.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10224_SAS Original Excel.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;Here's my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI Semilight',sans-serif; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/iPlan/ExcelCompareWorksheets.xlsx'&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;&amp;nbsp; out=work.myexcel&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;&amp;nbsp; dbms=xlsx;&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;&amp;nbsp; range='NewGoat$C2:CJ89';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/iPlan/ExcelCompareWorksheets.xlsx'&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;&amp;nbsp; out=work.myexcel2&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;&amp;nbsp; dbms=xlsx;&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;&amp;nbsp; range='OldGoat$C2:CJ89'; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc compare base=myexcel compare=myexcel2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for reading and offering any guidance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 16:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207427#M51522</guid>
      <dc:creator>haotiansas</dc:creator>
      <dc:date>2015-04-30T16:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare for Excel Date Format Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207428#M51523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priory to the proc compare you would need to assign a format to display the values as needed. For your dates a format of mmddyy10. would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets library=work nodetails memtype=data;&amp;nbsp; /* assumes the two sets are in the library work*/&lt;/P&gt;&lt;P&gt;modify myexcel; format &amp;lt;names of your date variables&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P&gt;modify myexcel2; format &amp;lt;names of your date variables&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure there is a good easy way to replicate the proc compare output and change the OBS to read Test xxx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 17:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207428#M51523</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-30T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare for Excel Date Format Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207429#M51524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for the tip! I used your code and ran into the following errors;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote27_1430429364466" style="color: #0000ff;"&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 57 ! format &amp;lt;Finish&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; _&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 22&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 76&lt;/P&gt;&lt;P class="sasError" id="sasLogError1_1430429364466" style="color: #ff0000;"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError2_1430429364466" style="color: #ff0000;"&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 58 modify myexcel2;&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 58 ! format &amp;lt;Start&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; _&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 22&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; 76&lt;/P&gt;&lt;P class="sasError" id="sasLogError3_1430429364466" style="color: #ff0000;"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError4_1430429364466" style="color: #ff0000;"&gt; ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P class="sasSource" style="color: #000000;"&gt; 59 quit;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote28_1430429364466" style="color: #0000ff;"&gt; NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote29_1430429364466" style="color: #0000ff;"&gt; NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;My code:&lt;/P&gt;&lt;P class="sasNote" style="color: #0000ff;"&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/iPlan/ExcelCompareWorksheets.xlsx'&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;&amp;nbsp; out=work.myexcel&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;&amp;nbsp; dbms=xlsx;&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;&amp;nbsp; range='NewGoat$B2:BJ89'; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/iPlan/ExcelCompareWorksheets.xlsx'&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;&amp;nbsp; out=work.myexcel2&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;&amp;nbsp; dbms=xlsx;&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;&amp;nbsp; range='OldGoat$B2:BJ89'; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets library=work nodetails memtype=data;&amp;nbsp; /* assumes the two sets are in the library work*/&lt;/P&gt;&lt;P&gt;modify myexcel; format &amp;lt;Finish&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P&gt;modify myexcel2; format &amp;lt;Start&amp;gt; mmddyy10. ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc compare base=myexcel compare=myexcel2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 21:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207429#M51524</guid>
      <dc:creator>haotiansas</dc:creator>
      <dc:date>2015-04-30T21:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare for Excel Date Format Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207430#M51525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't put the variable names within &amp;lt;&amp;gt; I put those there to indicate that you put a list of variables and I did not know all of the variables that you want to set the format for. This uses the same syntax as the FORMAT statement in a data step:&lt;/P&gt;&lt;P&gt;Format &amp;lt;list of variable names&amp;gt; &amp;lt;format for those variables&amp;gt; &amp;lt;another list of variables&amp;gt; &amp;lt;format for other variables&amp;gt; ;&lt;/P&gt;&lt;P&gt;Such as:&lt;/P&gt;&lt;P&gt;Format thisdate thatdate mmddyy10. thisnum thatnum theothernum F7.2 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 21:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Compare-for-Excel-Date-Format-Question/m-p/207430#M51525</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-30T21:54:51Z</dc:date>
    </item>
  </channel>
</rss>

