<?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: The first variable did not show observe on the output (compare music and music2) in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433189#M4525</link>
    <description>&lt;P&gt;Your code wouldn't run properly so your log should have errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See my comments below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile '&amp;amp;dirLSB.Bands.csv' DLM=',' dsd missover termstr=CRLF; %* needs double not single quotes. Macro variables do not resolve in single quotes so the file would not be read;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2; *This line does nothing and shouldn't be here. Delete it;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace; %* this is missing DBMS=CSV;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&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/188695"&gt;@jc3992&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile '&amp;amp;dirLSB.Bands.csv' DLM=',' dsd missover termstr=CRLF;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&gt;
&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included my output as attached. Any hint or correction is appreciated!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 17:14:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-01T17:14:00Z</dc:date>
    <item>
      <title>The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433179#M4522</link>
      <description>&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile '&amp;amp;dirLSB.Bands.csv' DLM=',' dsd missover termstr=CRLF;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included my output as attached. Any hint or correction is appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433179#M4522</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-02-01T17:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433181#M4523</link>
      <description>&lt;P&gt;Much more interesting than the output would be the infile to run the code against.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433181#M4523</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-01T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433188#M4524</link>
      <description>&lt;PRE&gt;data music;
	infile '/folders/myfolders/Bands.csv' DLM=',' dsd missover;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;


data music2;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&gt;&lt;P&gt;I used this instead and it worked. Thanks:)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:11:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433188#M4524</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-02-01T17:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433189#M4525</link>
      <description>&lt;P&gt;Your code wouldn't run properly so your log should have errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See my comments below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile '&amp;amp;dirLSB.Bands.csv' DLM=',' dsd missover termstr=CRLF; %* needs double not single quotes. Macro variables do not resolve in single quotes so the file would not be read;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2; *This line does nothing and shouldn't be here. Delete it;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace; %* this is missing DBMS=CSV;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&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/188695"&gt;@jc3992&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile '&amp;amp;dirLSB.Bands.csv' DLM=',' dsd missover termstr=CRLF;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&gt;
&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included my output as attached. Any hint or correction is appreciated!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433189#M4525</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433209#M4526</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188695"&gt;@jc3992&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;%let dirLSB=/folders/myfolders/;

data music;
	infile &lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;'&amp;amp;dirLSB.Bands.csv'&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;DLM=',' dsd missover termstr=CRLF;
	length Band_name$ 30 Gig_date$ 10;
	input Band_name$ Gig_date$ Eight_PM Nine_PM Ten_PM Eleven_PM;
run;
proc print data=music;
run;

data music2;
proc import datafile="&amp;amp;dirLSB.Bands2.csv" out=music2 replace;
run;

proc compare base=music compare=music2;
title 'music vs music2';
run;&lt;/PRE&gt;
&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included my output as attached. Any hint or correction is appreciated!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;data music would not be created properly (no records) because the single quotes in the infile statement keep the macro variable from resolving.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433209#M4526</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-01T18:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: The first variable did not show observe on the output (compare music and music2)</title>
      <link>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433293#M4531</link>
      <description>&lt;P&gt;Thank you very much!! It works! thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/The-first-variable-did-not-show-observe-on-the-output-compare/m-p/433293#M4531</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-02-01T21:42:46Z</dc:date>
    </item>
  </channel>
</rss>

