<?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 Too many dots in the diff line for just two fields in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/274428#M54750</link>
    <description>&lt;P&gt;Morning everyone,&lt;/P&gt;&lt;P&gt;I have a simple compare program in EG that is suppose to output the compared results to Excel. Two of those fields are marked with lines of way to many dots, way to many ! Please see below. Should be just couple of dots likes the other columns to mark the two compared the fields are having the same values. Because of the dots, my output Excel file become huge in size. Any clues as what maybe happening? I am attaching the screens shots of the code and output.&lt;/P&gt;&lt;P&gt;Let me know when you have a chance. Thanks for your time guiding me with SAS.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc compare base=&amp;amp;temp..&amp;amp;tbl_name._stg&amp;amp;src_stg.&lt;BR /&gt;compare=&amp;amp;temp..&amp;amp;tbl_name._trg&amp;amp;src_trg.&lt;BR /&gt;out=outdiffpm outnoequal outbase outcomp outdif noprint;&lt;BR /&gt;/* out=outdiffpm outnoequal outbase outcomp noprint;*/&lt;BR /&gt;TITLE1 "&amp;amp;src_sys. - &amp;amp;tbl_name. Base (Staging Not in Target) - Compare (Target Not in Staging) - &amp;amp;sysdate9.";&lt;BR /&gt;TITLE2 color=red justify=left "src_sys_key_1_tx = xxrgn_id (16=CO,28=GA,12=HI,10=NW,14=OH)";&lt;BR /&gt;TITLE3 color=red justify=left "src_sys_key_2_tx = MSMELG0T.INDV_HRN";&lt;BR /&gt;TITLE4 color=red justify=left "src_sys_key_3_tx = MSMELG0T.GRP_ID";&lt;BR /&gt;TITLE5 color=red justify=left "src_sys_key_4_tx = MSMELG0T.SGRP_ID";&lt;BR /&gt;TITLE6 color=red justify=left "src_sys_key_5_tx = MSMELG0T.faml_subscr_id";&lt;BR /&gt;TITLE7 color=red justify=left "src_sys_key_6_tx = MSMELG0T.mbr_eff_dt";&lt;BR /&gt;TITLE8 color=red justify=left "src_sys_key_7_tx = MSMELG0T.mbr_can_dt";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*ID rgn_cd&lt;BR /&gt;src_sys_key_1_tx&lt;BR /&gt;src_sys_key_2_tx&lt;BR /&gt;src_sys_key_3_tx;&lt;BR /&gt;VAR rundate;*/&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html FILE="&amp;amp;path.CO_&amp;amp;tbl_name._pcomp_outdiffpm_&amp;amp;sysdate9..xls"&lt;BR /&gt;headtext="&amp;lt;style&amp;gt; td {mso-number-format:\@}&amp;lt;/style&amp;gt;";&lt;/P&gt;&lt;P&gt;proc print data=outdiffpm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12609i8DFC5935AC8F4B30/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture debug.JPG" title="Capture debug.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12610i34B6EA7B729323B5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture debug.JPG" title="Capture debug.JPG" /&gt;</description>
    <pubDate>Wed, 01 Jun 2016 17:16:25 GMT</pubDate>
    <dc:creator>hannahl37</dc:creator>
    <dc:date>2016-06-01T17:16:25Z</dc:date>
    <item>
      <title>Too many dots in the diff line for just two fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/274428#M54750</link>
      <description>&lt;P&gt;Morning everyone,&lt;/P&gt;&lt;P&gt;I have a simple compare program in EG that is suppose to output the compared results to Excel. Two of those fields are marked with lines of way to many dots, way to many ! Please see below. Should be just couple of dots likes the other columns to mark the two compared the fields are having the same values. Because of the dots, my output Excel file become huge in size. Any clues as what maybe happening? I am attaching the screens shots of the code and output.&lt;/P&gt;&lt;P&gt;Let me know when you have a chance. Thanks for your time guiding me with SAS.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc compare base=&amp;amp;temp..&amp;amp;tbl_name._stg&amp;amp;src_stg.&lt;BR /&gt;compare=&amp;amp;temp..&amp;amp;tbl_name._trg&amp;amp;src_trg.&lt;BR /&gt;out=outdiffpm outnoequal outbase outcomp outdif noprint;&lt;BR /&gt;/* out=outdiffpm outnoequal outbase outcomp noprint;*/&lt;BR /&gt;TITLE1 "&amp;amp;src_sys. - &amp;amp;tbl_name. Base (Staging Not in Target) - Compare (Target Not in Staging) - &amp;amp;sysdate9.";&lt;BR /&gt;TITLE2 color=red justify=left "src_sys_key_1_tx = xxrgn_id (16=CO,28=GA,12=HI,10=NW,14=OH)";&lt;BR /&gt;TITLE3 color=red justify=left "src_sys_key_2_tx = MSMELG0T.INDV_HRN";&lt;BR /&gt;TITLE4 color=red justify=left "src_sys_key_3_tx = MSMELG0T.GRP_ID";&lt;BR /&gt;TITLE5 color=red justify=left "src_sys_key_4_tx = MSMELG0T.SGRP_ID";&lt;BR /&gt;TITLE6 color=red justify=left "src_sys_key_5_tx = MSMELG0T.faml_subscr_id";&lt;BR /&gt;TITLE7 color=red justify=left "src_sys_key_6_tx = MSMELG0T.mbr_eff_dt";&lt;BR /&gt;TITLE8 color=red justify=left "src_sys_key_7_tx = MSMELG0T.mbr_can_dt";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*ID rgn_cd&lt;BR /&gt;src_sys_key_1_tx&lt;BR /&gt;src_sys_key_2_tx&lt;BR /&gt;src_sys_key_3_tx;&lt;BR /&gt;VAR rundate;*/&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html FILE="&amp;amp;path.CO_&amp;amp;tbl_name._pcomp_outdiffpm_&amp;amp;sysdate9..xls"&lt;BR /&gt;headtext="&amp;lt;style&amp;gt; td {mso-number-format:\@}&amp;lt;/style&amp;gt;";&lt;/P&gt;&lt;P&gt;proc print data=outdiffpm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12609i8DFC5935AC8F4B30/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture debug.JPG" title="Capture debug.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12610i34B6EA7B729323B5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture debug.JPG" title="Capture debug.JPG" /&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/274428#M54750</guid>
      <dc:creator>hannahl37</dc:creator>
      <dc:date>2016-06-01T17:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Too many dots in the diff line for just two fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/274434#M54753</link>
      <description>&lt;P&gt;Without any input data sets it's a bit hard to point to specifics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First guess: those values that look like dates are character and actually longer than they appear. Since those variables end in DT one suspects they were originally DATETIME variables with around 20 characters. The ... match the length of the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could take the outdiffpm dataset through a datastep and change the value from ............... to .... as desired.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/274434#M54753</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-01T17:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Too many dots in the diff line for just two fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275116#M54973</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added some code in the orignal attempting replacing the 'too many dots' to just 4 dots. &amp;nbsp;The code is below, it somehow does not do the tricks. &amp;nbsp;Can you let me know if there is anything worng ? &amp;nbsp;I can provide more details if you need me send logs or etc. Just not sure if you need to diagonose this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc compare base=&amp;amp;temp..&amp;amp;tbl_name._stg&amp;amp;src_stg.&lt;BR /&gt;compare=&amp;amp;temp..&amp;amp;tbl_name._trg&amp;amp;src_trg.&lt;BR /&gt;out=outdiffpm outnoequal outbase outcomp outdif noprint;&lt;BR /&gt;TITLE1 "Compare.";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data outdiffpm;&lt;BR /&gt;set outdiffpm;&lt;BR /&gt;array Var _numeric_;&lt;BR /&gt;do over Var;&lt;BR /&gt;if Var=: '.' then Var='....';&lt;BR /&gt;end;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods html FILE="&amp;amp;path.CO_&amp;amp;tbl_name._pcomp_outdiffpm_&amp;amp;sysdate9..xls"&lt;BR /&gt;headtext="&amp;lt;style&amp;gt; td {mso-number-format:\@}&amp;lt;/style&amp;gt;";&lt;BR /&gt;proc print data=outdiffpm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 20:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275116#M54973</guid>
      <dc:creator>hannahl37</dc:creator>
      <dc:date>2016-06-03T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Too many dots in the diff line for just two fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275117#M54974</link>
      <description>Here is the log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 The SAS System 13:31 Friday, June 3, 2016&lt;BR /&gt;&lt;BR /&gt;1 %_eg_hidenotesandsource;&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;5 %_eg_hidenotesandsource;&lt;BR /&gt;SYMBOLGEN: Macro variable SASWORKLOCATION resolves to "C:\Users\F245210\AppData\Local\Temp\SEG8480\SAS Temporary&lt;BR /&gt;Files\_TD9048_CNPTCAM3492313_\Prc2/"&lt;BR /&gt;SYMBOLGEN: Macro variable SASWORKLOCATION resolves to "C:\Users\F245210\AppData\Local\Temp\SEG8480\SAS Temporary&lt;BR /&gt;Files\_TD9048_CNPTCAM3492313_\Prc2/"&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;38&lt;BR /&gt;39 proc compare base=&amp;amp;temp..&amp;amp;tbl_name._stg&amp;amp;src_stg.&lt;BR /&gt;SYMBOLGEN: Macro variable TEMP resolves to kaki&lt;BR /&gt;SYMBOLGEN: Macro variable TBL_NAME resolves to mbrshp&lt;BR /&gt;SYMBOLGEN: Macro variable SRC_STG resolves to O&lt;BR /&gt;40 compare=&amp;amp;temp..&amp;amp;tbl_name._trg&amp;amp;src_trg.&lt;BR /&gt;SYMBOLGEN: Macro variable TEMP resolves to kaki&lt;BR /&gt;SYMBOLGEN: Macro variable TBL_NAME resolves to mbrshp&lt;BR /&gt;SYMBOLGEN: Macro variable SRC_TRG resolves to O&lt;BR /&gt;41 out=outdiffpm outnoequal outbase outcomp outdif noprint;&lt;BR /&gt;SYMBOLGEN: Macro variable SRC_SYS resolves to CM&lt;BR /&gt;SYMBOLGEN: Macro variable TBL_NAME resolves to mbrshp&lt;BR /&gt;SYMBOLGEN: Macro variable SYSDATE9 resolves to 03JUN2016&lt;BR /&gt;42 TITLE1 "&amp;amp;src_sys. - &amp;amp;tbl_name. Base (Staging Not in Target) - Compare (Target Not in Staging) - &amp;amp;sysdate9.";&lt;BR /&gt;43 TITLE2 color=red justify=left "src_sys_key_1_tx = xxrgn_id (16=CO,28=GA,12=HI,10=NW,14=OH)";&lt;BR /&gt;44 TITLE3 color=red justify=left "src_sys_key_2_tx = MSMELG0T.INDV_HRN";&lt;BR /&gt;45 TITLE4 color=red justify=left "src_sys_key_3_tx = MSMELG0T.GRP_ID";&lt;BR /&gt;46 TITLE5 color=red justify=left "src_sys_key_4_tx = MSMELG0T.SGRP_ID";&lt;BR /&gt;47 TITLE6 color=red justify=left "src_sys_key_5_tx = MSMELG0T.faml_subscr_id";&lt;BR /&gt;48 TITLE7 color=red justify=left "src_sys_key_6_tx = MSMELG0T.mbr_eff_dt";&lt;BR /&gt;49 TITLE8 color=red justify=left "src_sys_key_7_tx = MSMELG0T.mbr_can_dt";&lt;BR /&gt;50&lt;BR /&gt;51 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 4 observations read from the data set KAKI.MBRSHP_STGO.&lt;BR /&gt;NOTE: There were 4 observations read from the data set KAKI.MBRSHP_TRGO.&lt;BR /&gt;NOTE: The data set WORK.OUTDIFFPM has 12 observations and 42 variables.&lt;BR /&gt;NOTE: Compressing data set WORK.OUTDIFFPM decreased size by 0.00 percent.&lt;BR /&gt;Compressed is 1 pages; un-compressed would require 1 pages.&lt;BR /&gt;NOTE: PROCEDURE COMPARE used (Total process time):&lt;BR /&gt;real time 0.12 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;52 data outdiffpm;&lt;BR /&gt;53 set outdiffpm;&lt;BR /&gt;54 array Var _numeric_;&lt;BR /&gt;55 do over Var;&lt;BR /&gt;56 if Var=: '.' then Var='....';&lt;BR /&gt;57 end;&lt;BR /&gt;58 run ;&lt;BR /&gt;&lt;BR /&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;56:22 56:31&lt;BR /&gt;NOTE: There were 12 observations read from the data set WORK.OUTDIFFPM.&lt;BR /&gt;NOTE: The data set WORK.OUTDIFFPM has 12 observations and 42 variables.&lt;BR /&gt;NOTE: Compressing data set WORK.OUTDIFFPM decreased size by 0.00 percent.&lt;BR /&gt;Compressed is 1 pages; un-compressed would require 1 pages.&lt;BR /&gt;2 The SAS System 13:31 Friday, June 3, 2016&lt;BR /&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;59&lt;BR /&gt;60&lt;BR /&gt;61 ods html FILE="&amp;amp;path.CO_&amp;amp;tbl_name._pcomp_outdiffpm_&amp;amp;sysdate9..xls"&lt;BR /&gt;SYMBOLGEN: Macro variable PATH resolves to C:\SAS\OOB\CM\&lt;BR /&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;BR /&gt;SYMBOLGEN: Macro variable TBL_NAME resolves to mbrshp&lt;BR /&gt;SYMBOLGEN: Macro variable SYSDATE9 resolves to 03JUN2016&lt;BR /&gt;62 headtext="&amp;lt;style&amp;gt; td {mso-number-format:\@}&amp;lt;/style&amp;gt;";&lt;BR /&gt;NOTE: Writing HTML Body file: C:\SAS\OOB\CM\CO_mbrshp_pcomp_outdiffpm_03JUN2016.xls&lt;BR /&gt;63 /*proc export */&lt;BR /&gt;64 /* data=outdiffpm (obs=100)*/&lt;BR /&gt;65 /* dbms=xlsx */&lt;BR /&gt;66 /* outfile="&amp;amp;path.CO_&amp;amp;tbl_name._pcomp_outdiffpm_&amp;amp;sysdate9..xls"*/&lt;BR /&gt;67 /* if string=: '.' then string=substr(string,1,3); */&lt;BR /&gt;68 /* replace;*/&lt;BR /&gt;69 /*run;*/&lt;BR /&gt;70&lt;BR /&gt;71 proc print data=outdiffpm;&lt;BR /&gt;72 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Access by observation number not available. Observation numbers will be counted by PROC PRINT.&lt;BR /&gt;NOTE: There were 12 observations read from the data set WORK.OUTDIFFPM.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.40 seconds&lt;BR /&gt;cpu time 0.09 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;73&lt;BR /&gt;74 ods html close;&lt;BR /&gt;75&lt;BR /&gt;76&lt;BR /&gt;77&lt;BR /&gt;78 %_eg_hidenotesandsource;&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;90&lt;BR /&gt;91&lt;BR /&gt;92 %_eg_hidenotesandsource;&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;95</description>
      <pubDate>Fri, 03 Jun 2016 20:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275117#M54974</guid>
      <dc:creator>hannahl37</dc:creator>
      <dc:date>2016-06-03T20:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Too many dots in the diff line for just two fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275132#M54978</link>
      <description>&lt;P&gt;I replaced the _numeric_ to _character_ in the loop. &amp;nbsp;It is now working. &amp;nbsp;Thank you and have a good weekend&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 23:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-dots-in-the-diff-line-for-just-two-fields/m-p/275132#M54978</guid>
      <dc:creator>hannahl37</dc:creator>
      <dc:date>2016-06-03T23:24:26Z</dc:date>
    </item>
  </channel>
</rss>

