<?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: What does this LOG mean and how can I make this code work? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444599#M282978</link>
    <description>&lt;P&gt;This is the LOG for your code.&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         libname testdata '/folders/myfolders';
 NOTE: Libref TESTDATA refers to the same physical library as WEEK_6.
 NOTE: Libref TESTDATA was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders
 74         
 75         /*
 76         for test purposes only .. create tb200 using sashelp.class
 77         data testdata.tb2000;
 78           set sashelp.class;
 79         run;
 80         */
 81         
 82         %MACRO pam(lib=work,dsn=_LAST_,obs=5);
 83           proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=&amp;amp;obs);
 84             title "Listing of first &amp;amp;obs. records from &amp;amp;lib..&amp;amp;dsn.";
 85             title2 "on &amp;amp;sysday, &amp;amp;sysdate.";
 86           run;
 87         %mend pam;
 88         
 89         %pam(lib=testdata, dsn=tb2000,obs=8)
 MPRINT(PAM):   proc print data=testdata.tb2000 (obs=8);
 ERROR: File TESTDATA.TB2000.DATA does not exist.
 MPRINT(PAM):   title "Listing of first 8 records from testdata.tb2000";
 MPRINT(PAM):   title2 "on Sunday, 11MAR18";
 MPRINT(PAM):   run;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Mar 2018 21:46:11 GMT</pubDate>
    <dc:creator>jc3992</dc:creator>
    <dc:date>2018-03-11T21:46:11Z</dc:date>
    <item>
      <title>What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444595#M282974</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I had been stuck in this code for an afternoon and cannot pass it on,&lt;/P&gt;&lt;P&gt;and there was not an error nor any output to this code.&lt;/P&gt;&lt;P&gt;I have to post it to ask for help~~~&lt;/P&gt;&lt;P&gt;Thanks for any guidance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options MPRINT;

%MACRO pam(lib=,dsn=,obs=);
%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;
%let lib=WORK;
%let dsn=tb2000;
%let obs=5;
libname &amp;amp;lib "&amp;amp;dirdata";
run;
data &amp;amp;dsn;
infile "&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn";
proc print data=&amp;amp;dsn &amp;amp;obs; 
title "Listing of first 5 records from &amp;amp;lib, &amp;amp;dsn,";
title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
run;
%mend pam(lib=, dsn=,obs=);


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG showed:&lt;/P&gt;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         options MPRINT;
 74         
 75         %MACRO pam(lib=,dsn=,obs=);
 76         %let dirdata=/folders/myfolders;
 77         %let dirOUT=/folders/myfolders;
 78         %let lib=WORK;
 79         %let dsn=tb2000;
 80         %let obs=5;
 81         libname &amp;amp;lib "&amp;amp;dirdata";
 82         run;
 83         data &amp;amp;dsn;
 84         infile "&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn";
 85         proc print data=&amp;amp;dsn &amp;amp;obs;
 86         title "Listing of first 5 records from &amp;amp;lib, &amp;amp;dsn,";
 87         title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
 88         run;
 89         %mend pam(lib=, dsn=,obs=);
 WARNING: Extraneous text on %MEND statement ignored for macro definition PAM.
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/PRE&gt;&lt;P&gt;What did I miss in the code..:(&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444595#M282974</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T21:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444596#M282975</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Extraneous text on %MEND statement ignored for macro definition PAM.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Isn't that text clear?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%mend;&lt;/FONT&gt; suffices. No extra parameters.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444596#M282975</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-11T21:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444597#M282976</link>
      <description>&lt;P&gt;Since I saw your other post earlier, I think that the following is what you're trying to do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname testdata '/folders/myfolders';

/*
for test purposes only .. create tb200 using sashelp.class
data testdata.tb2000;
  set sashelp.class;
run;
*/

%MACRO pam(lib=work,dsn=_LAST_,obs=5);
  proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=&amp;amp;obs); 
    title "Listing of first &amp;amp;obs. records from &amp;amp;lib..&amp;amp;dsn.";
    title2 "on &amp;amp;sysday, &amp;amp;sysdate.";
  run;
%mend pam;

%pam(lib=testdata, dsn=tb2000,obs=8)
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444597#M282976</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-11T21:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444598#M282977</link>
      <description>&lt;P&gt;hmm.&lt;/P&gt;&lt;P&gt;even if I get no errors for this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options MPRINT;

%MACRO pam;
%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;

libname &amp;amp;lib "&amp;amp;dirdata";
data &amp;amp;dsn;
infile "&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn";
run;

proc print data=&amp;amp;dsn; 
title "Listing of first 5 records from &amp;amp;lib, &amp;amp;dsn,";
title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG showed:&lt;/P&gt;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         options MPRINT;
 74         
 75         %MACRO pam;
 76         %let dirdata=/folders/myfolders;
 77         %let dirOUT=/folders/myfolders;
 78         
 79         libname &amp;amp;lib "&amp;amp;dirdata";
 80         data &amp;amp;dsn;
 81         infile "&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn";
 82         run;
 83         
 84         proc print data=&amp;amp;dsn;
 85         title "Listing of first 5 records from &amp;amp;lib, &amp;amp;dsn,";
 86         title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
 87         run;
 88         %mend;
 89         
 90         
 91         
 92         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 105        &lt;/PRE&gt;&lt;P&gt;But I still have not got any output.&lt;/P&gt;&lt;P&gt;I will run your code to give a try...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I should get an output with those two titles...:(&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444598#M282977</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T21:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444599#M282978</link>
      <description>&lt;P&gt;This is the LOG for your code.&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         libname testdata '/folders/myfolders';
 NOTE: Libref TESTDATA refers to the same physical library as WEEK_6.
 NOTE: Libref TESTDATA was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders
 74         
 75         /*
 76         for test purposes only .. create tb200 using sashelp.class
 77         data testdata.tb2000;
 78           set sashelp.class;
 79         run;
 80         */
 81         
 82         %MACRO pam(lib=work,dsn=_LAST_,obs=5);
 83           proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=&amp;amp;obs);
 84             title "Listing of first &amp;amp;obs. records from &amp;amp;lib..&amp;amp;dsn.";
 85             title2 "on &amp;amp;sysday, &amp;amp;sysdate.";
 86           run;
 87         %mend pam;
 88         
 89         %pam(lib=testdata, dsn=tb2000,obs=8)
 MPRINT(PAM):   proc print data=testdata.tb2000 (obs=8);
 ERROR: File TESTDATA.TB2000.DATA does not exist.
 MPRINT(PAM):   title "Listing of first 8 records from testdata.tb2000";
 MPRINT(PAM):   title2 "on Sunday, 11MAR18";
 MPRINT(PAM):   run;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444599#M282978</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T21:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444600#M282979</link>
      <description>&lt;P&gt;The file '/folders/myfolders/tb2000.sas7bdat' doesn't exist, thus you can't print it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 21:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444600#M282979</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-11T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444602#M282980</link>
      <description>&lt;P&gt;I have uploaded it to the library "Week_6"&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the LOG has not showed that it does not exist.&lt;/P&gt;&lt;P&gt;My code is as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options MPRINT;

%MACRO pam;

%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;

libname Week_6 "&amp;amp;dirdata";
data pam;
infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat";
proc print data=pam;
run;

%macro pam;
title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn,";
title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
proc print data=&amp;amp;lib..&amp;amp;dsn(obs=5);
run;
title;
%mend pam;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG:&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 2          TITLE;
 3          FOOTNOTE;
 4          OPTIONS LOCALE=en_US DFLANG=LOCALE;
 5          DATA _NULL_;
 6          RUN;
 7          OPTIONS VALIDVARNAME=V7;
 8          OPTIONS VALIDMEMNAME=COMPAT;
 9          FILENAME _HTMLOUT TEMP;
 10         FILENAME _RTFOUT TEMP ENCODING='UTF-8';
 11         FILENAME _PDFOUT TEMP;
 12         FILENAME _GSFNAME TEMP;
 13         FILENAME _DATAOUT TEMP;
 14         %LET SYSCC=0;
 15         %LET _CLIENTAPP='SAS Studio';
 16         %LET _CLIENTAPPABREV=Studio;
 17         %LET _CLIENTAPPVERSION=3.7;
 18         %LET _CLIENTVERSION=3.7;
 19         %LET _CLIENTMODE=basic;
 20         %LET _SASSERVERNAME=%BQUOTE(localhost);
 21         %LET _SASHOSTNAME=%BQUOTE(localhost);
 22         %LET _SASPROGRAMFILEHOST=%BQUOTE(localhost);
 23         %LET _CLIENTUSERID=%BQUOTE(sasdemo);
 24         %LET _CLIENTUSERNAME=%BQUOTE(sasdemo);
 25         %LET CLIENTMACHINE=%BQUOTE(10.0.2.2);
 26         %LET _CLIENTMACHINE=%BQUOTE(10.0.2.2);
 27         %let SASWORKLOCATION="%sysfunc(getoption(work))/";
 28         FILENAME _CWD '.';
 29         DATA _NULL_;
 30         CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
 31         RUN;
 32         FILENAME _CWD;
 33         
 34         %LET _SASPROGRAMFILE = %NRQUOTE(%NRSTR(/folders/myfolders/Programs/Week_6/ChenJenli_jc3992_Assignment5.sas));
 35         %LET _BASEURL = %BQUOTE(http://localhost:10080/SASStudio/);
 36         %LET _EXECENV=SASStudio;
 37         DATA _NULL_;
 38         CALL SYMPUT("GRAPHINIT","");
 39         CALL SYMPUT("GRAPHTERM","");
 40         RC=TSLVL('GEOCODE','N');
 41         _ERROR_=0;
 42         IF (RC^=' ') THEN DO;
 43         CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
 44         CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
 45         END;
 46         RUN;
 47         DATA _NULL_;
 48         RC=SYSPROD("PRODNUM002");
 49         IF (RC^=1) THEN DO;
 50         CALL SYMPUT("GRAPHINIT","");
 51         CALL SYMPUT("GRAPHTERM","");
 52         END;
 53         RUN;
 54         %LET _DATAOUT_MIME_TYPE=;
 55         %LET _DATAOUT_NAME=;
 56         %LET _DATAOUT_TABLE=;
 57         %LET _DATAOUT_URL=;
 58         %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
 59         %LET _SASWS_ = %BQUOTE(/folders/myfolders);
 60         %LET _SASWSTEMP_=%BQUOTE(/folders/myfolders/.sasstudio/.images/5758c3cf-6519-489b-8bcc-fb17f767c995);
 61         ODS LISTING CLOSE;
 62         ODS AUTONAVIGATE OFF;
 63         ODS GRAPHICS ON;
 64         ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&amp;amp;_SASWSTEMP_" ENCODING=utf8  FILE=_HTMLOUT (TITLE='Results:
 64       ! ChenJenli_jc3992_Assignment5.sas') STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' OUTLINE='ON' SVG_MODE='INLINE'
 64       ! CSS_PREFIX='.ods_5758c3cf-6519-489b-8bcc-fb17f767c995' BODY_ID='div_5758c3cf-6519-489b-8bcc-fb17f767c995' );
 65         ODS RTF (ID=WEB) STYLE=Rtf FILE=_RTFOUT sasdate;
 66         ODS PDF (ID=WEB) STYLE=Pearl FILE=_PDFOUT;
 67         &amp;amp;GRAPHINIT;
 68         OPTIONS FIRSTOBS=1;
 69         OPTIONS OBS=MAX;
 70         OPTIONS DTRESET DATE NUMBER NOTES;
 71         OPTIONS NOTES STIMER SOURCE NOSYNTAXCHECK;
 72         
 73         
 74         options MPRINT;
 75         
 76         %MACRO pam;
 77         
 78         %let dirdata=/folders/myfolders;
 79         %let dirOUT=/folders/myfolders;
 80         
 81         libname Week_6 "&amp;amp;dirdata";
 82         data pam;
 83         infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat";
 84         proc print data=pam;
 85         run;
 86         
 87         %macro pam;
 88         title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn,";
 89         title2 "on &amp;amp;sysday, &amp;amp;sysdate..";
 90         proc print data=&amp;amp;lib..&amp;amp;dsn(obs=5);
 91         run;
 92         title;
 93         %mend pam;
 94         
 95         
 96         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 97         ODS HTML CLOSE;
 98         &amp;amp;GRAPHTERM; ;*';*";*/;RUN;QUIT;
 99         QUIT;RUN;
 100        ODS HTML5 (ID=WEB) CLOSE;
 101        
 102        ODS RTF (ID=WEB) CLOSE;
 103        ODS PDF (ID=WEB) CLOSE;
 104        FILENAME _GSFNAME;
 105        DATA _NULL_;
 106        RUN;
 107        OPTIONS VALIDMEMNAME=COMPAT;
 108        OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
 109        &lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444602#M282980</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T22:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444603#M282981</link>
      <description>&lt;P&gt;Looks like you created the dataset as a file called pam in your work directory. If so, then all you need is:&lt;/P&gt;
&lt;PRE&gt;%MACRO pam(lib=work,dsn=_LAST_,obs=5);
  proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=&amp;amp;obs); 
    title "Listing of first &amp;amp;obs. records from &amp;amp;lib..&amp;amp;dsn.";
    title2 "on &amp;amp;sysday, &amp;amp;sysdate.";
  run;
%mend pam;

%pam(dsn=pam,obs=8)
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444603#M282981</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-11T22:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444604#M282982</link>
      <description>&lt;P&gt;why do you have&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macrobound"&gt;%macro&lt;/SPAN&gt; pam&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;twice in your program?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444604#M282982</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-11T22:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444605#M282983</link>
      <description>&lt;P&gt;well...&lt;/P&gt;&lt;P&gt;I thought I have to define it firstly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding of %macro is I had to do it firstly without %macro,&lt;/P&gt;&lt;P&gt;and then project the result I had earlier to the %macro.&lt;/P&gt;&lt;P&gt;So others can make changes with my code on the %macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is my understanding correct?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444605#M282983</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T22:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444606#M282984</link>
      <description>&lt;P&gt;Let me try it....&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444606#M282984</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T22:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444607#M282985</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options MPRINT;



%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;

libname Week_6 "&amp;amp;dirdata" ;
data pam;
infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat" ;
proc print data=pam;
run;

%macro pam(lib=WORK, dsn=_LAST_, obs=5);
proc print data=&amp;amp;lib..&amp;amp;dsn.(obs=&amp;amp;obs);
title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn," ;
title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
run;
title;
%mend pam;

%pam(dsn=pam,obs=5);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;LOG :&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 2          TITLE;
 3          FOOTNOTE;
 4          OPTIONS LOCALE=en_US DFLANG=LOCALE;
 NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.
 5          DATA _NULL_;
 6          RUN;
 7          OPTIONS VALIDVARNAME=V7;
 8          OPTIONS VALIDMEMNAME=COMPAT;
 9          FILENAME _HTMLOUT TEMP;
 10         FILENAME _RTFOUT TEMP ENCODING='UTF-8';
 11         FILENAME _PDFOUT TEMP;
 12         FILENAME _GSFNAME TEMP;
 13         FILENAME _DATAOUT TEMP;
 14         %LET SYSCC=0;
 15         %LET _CLIENTAPP='SAS Studio';
 16         %LET _CLIENTAPPABREV=Studio;
 17         %LET _CLIENTAPPVERSION=3.7;
 18         %LET _CLIENTVERSION=3.7;
 19         %LET _CLIENTMODE=basic;
 20         %LET _SASSERVERNAME=%BQUOTE(localhost);
 21         %LET _SASHOSTNAME=%BQUOTE(localhost);
 22         %LET _SASPROGRAMFILEHOST=%BQUOTE(localhost);
 23         %LET _CLIENTUSERID=%BQUOTE(sasdemo);
 24         %LET _CLIENTUSERNAME=%BQUOTE(sasdemo);
 25         %LET CLIENTMACHINE=%BQUOTE(10.0.2.2);
 26         %LET _CLIENTMACHINE=%BQUOTE(10.0.2.2);
 27         %let SASWORKLOCATION="%sysfunc(getoption(work))/";
 28         FILENAME _CWD '.';
 29         DATA _NULL_;
 30         CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
 31         RUN;
 32         FILENAME _CWD;
 33         
 34         %LET _SASPROGRAMFILE = %NRQUOTE(%NRSTR(/folders/myfolders/Programs/Week_6/ChenJenli_jc3992_Assignment5.sas));
 35         %LET _BASEURL = %BQUOTE(http://localhost:10080/SASStudio/);
 36         %LET _EXECENV=SASStudio;
 NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.
 
            ________________________________________________________________________________________________________________________
            49
 
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 37         DATA _NULL_;
 38         CALL
 38       ! SYMPUT("GRAPHINIT"
                             _
                             49
 38       ! ,"");
 39         CALL
 39       ! SYMPUT("GRAPHTERM"
                             _
                             49
 39       ! ,"");
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 40         RC=TSLVL('GEOCODE','N');
 41         _ERROR_=0;
 42         IF (RC^=' ') THEN DO;
 43         CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
                                  ___                                    ________________
                                  49                                     49
 44         CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
                                  ___                      ___________________________________
                                  49                       49
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 45         END;
 46         RUN;
 47         DATA _NULL_;
 48         RC=SYSPROD("PRODNUM002"
                                  _
                                  49
 48       ! );
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 49         IF (RC^=1) THEN DO;
 50         CALL
 50       ! SYMPUT("GRAPHINIT"
                             _
                             49
 50       ! ,"");
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 51         CALL SYMPUT("GRAPHTERM","");
 52         END;
 53         RUN;
 54         %LET _DATAOUT_MIME_TYPE=;
 55         %LET _DATAOUT_NAME=;
 56         %LET _DATAOUT_TABLE=;
 57         %LET _DATAOUT_URL=;
 58         %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
 59         %LET _SASWS_ = %BQUOTE(/folders/myfolders);
 60         %LET _SASWSTEMP_=%BQUOTE(/folders/myfolders/.sasstudio/.images/a98faac7-1ad7-4d9c-984d-53c7da57687d);
 NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.
 61         ODS LISTING CLOSE;
 62         ODS AUTONAVIGATE OFF;
 63         ODS GRAPHICS ON;
 64         ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&amp;amp;_SASWSTEMP_" ENCODING=utf8  FILE=_HTMLOUT (TITLE='Results:
 64       ! ChenJenli_jc3992_Assignment5.sas') STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' OUTLINE='ON' SVG_MODE='INLINE'
 64       ! CSS_PREFIX='.ods_a98faac7-1ad7-4d9c-984d-53c7da57687d' BODY_ID='div_a98faac7-1ad7-4d9c-984d-53c7da57687d' );
 NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.
 65         ODS RTF (ID=WEB) STYLE=Rtf FILE=_RTFOUT sasdate;
 66         ODS PDF (ID=WEB) STYLE=Pearl FILE=_PDFOUT;
 67         &amp;amp;GRAPHINIT;
 68         OPTIONS FIRSTOBS=1;
 69         OPTIONS OBS=MAX;
 70         OPTIONS DTRESET DATE NUMBER NOTES;
 71         OPTIONS NOTES STIMER SOURCE NOSYNTAXCHECK;
 72         
 73         options MPRINT;
 74         
 75         
 76         
 77         %let dirdata=/folders/myfolders;
 78         %let dirOUT=/folders/myfolders;
 79         
 80         libname Week_6 "&amp;amp;dirdata" ;
 81         data pam;
 82         infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat" ;
 83         proc print data=pam;
 82         infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat"
                                                            _
                                                            49
 82       !  ;
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 84         run;
 85         
 86         %macro pam(lib=WORK, dsn=_LAST_, obs=5);
 87         proc print data=&amp;amp;lib..&amp;amp;dsn.(obs=&amp;amp;obs);
 88         title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn,"
                                                                             ___________
                                                                             49
 88       !  ;
 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
              between a quoted string and the succeeding identifier is recommended.
 
 89         title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
 90         run;
 91         title;
 92         %mend pam;
 93         
 94         %pam(dsn=pam,obs=5);
 95         
 96         
 97         
 98         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 99         ODS HTML CLOSE;
 100        &amp;amp;GRAPHTERM; ;*';*";*/;RUN;QUIT;
 101        QUIT;RUN;
 102        ODS HTML5 (ID=WEB) CLOSE;
 103        
 104        ODS RTF (ID=WEB) CLOSE;
 105        ODS PDF (ID=WEB) CLOSE;
 106        FILENAME _GSFNAME;
 107        DATA _NULL_;
 108        RUN;
 109        OPTIONS VALIDMEMNAME=COMPAT;
 110        OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
 111        &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 22:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444607#M282985</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-11T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444608#M282986</link>
      <description>&lt;P&gt;Two problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fiirst,&lt;/P&gt;
&lt;PRE&gt;81         data pam;
 82         infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat" ;
 &lt;/PRE&gt;
&lt;P&gt;is not how you would create the file pam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would use:&lt;/P&gt;
&lt;PRE&gt;%let dirdata=/folders/myfolders/Programs/Week_6;

data pam;
  set "&amp;amp;dirdata./tb2000";
run;&lt;/PRE&gt;
&lt;P&gt;Then I would use:&lt;/P&gt;
&lt;PRE&gt;%MACRO pam(lib=work,dsn=_LAST_,obs=5);
  proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=&amp;amp;obs); 
    title "Listing of first &amp;amp;obs. records from &amp;amp;lib..&amp;amp;dsn.";
    title2 "on &amp;amp;sysday, &amp;amp;sysdate.";
  run;
%mend pam;

%pam(dsn=pam,obs=8)
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&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>Sun, 11 Mar 2018 23:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444608#M282986</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-11T23:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444609#M282987</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%macro pam;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt; is the start of the definition of the macro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%mend;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; is the end of the definition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%pam;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; calls the macro&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 23:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444609#M282987</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-11T23:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444615#M282988</link>
      <description>&lt;P&gt;Thanks!! After getting a coffee and re-think it over again.&lt;/P&gt;&lt;P&gt;Here is my code, but Ive got errors which I do not know where to start working with...:(&lt;/P&gt;&lt;P&gt;Need help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;
%let lib=WORK;
%let dsn=_LAST_;
%let obs=5;

%macro pam(lib=,dsn=,obs=);
proc print data=&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn.(obs=5);
title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn," ;
title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
run;
%mend pam;

%pam;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         
 74         %let dirdata=/folders/myfolders;
 75         %let dirOUT=/folders/myfolders;
 76         %let lib=WORK;
 77         %let dsn=_LAST_;
 78         %let obs=5;
 79         
 80         %macro pam(lib=,dsn=,obs=);
 81         proc print data=&amp;amp;dirdata&amp;amp;lib..&amp;amp;dsn.(obs=5);
 82         title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn," ;
 83         title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
 84         run;
 85         %mend pam;
 86         
 87         %pam;
 MPRINT(PAM):   proc print data=/folders/myfolders.(obs=5);
 MPRINT(PAM):   title "Listing of first 5 records from library , member ," ;
 NOTE: Line generated by the macro variable "LIB".
 87         /folders/myfolders
            _
            22
            76
 ERROR 22-322: Expecting a name.  
 
 ERROR 76-322: Syntax error, statement will be ignored.
 
 MPRINT(PAM):   title2 "on Monday, 12MAR18." ;
 MPRINT(PAM):   run;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 88         
 89         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102        &lt;/PRE&gt;&lt;P&gt;I did not get why the LOG showed that on Line 88 I need a name for that?&lt;/P&gt;&lt;P&gt;That was macro calling. But I felt if SAS had not found the file or did I do wrong with the path so it did not print out anything?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 01:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444615#M282988</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-12T01:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444616#M282989</link>
      <description>&lt;P&gt;Thanks!! But I found I need not create another data name.&lt;/P&gt;&lt;P&gt;I should have used the macro pam as the data name.&lt;/P&gt;&lt;P&gt;So I tried again.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 01:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444616#M282989</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-12T01:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444617#M282990</link>
      <description>&lt;P&gt;parameter lib=&amp;nbsp; &amp;nbsp;should be a library&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname DATA '/folders/myfolders';

%macro pam(lib=,dsn=,obs=);
  proc print data=&amp;amp;lib..&amp;amp;dsn.(obs=&amp;amp;obs);
  title "Listing of first &amp;amp;obs records from library &amp;amp;lib, member &amp;amp;dsn," ;
  title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ; 
  run;
%mend pam;

%pam(lib=WORK, dsn=_LAST_, obs=5);
or
%pam(lib=DATA, dsn=_LAST_, obs=5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 01:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444617#M282990</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-12T01:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444620#M282991</link>
      <description>&lt;P&gt;After reading&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;comment,&lt;/P&gt;&lt;P&gt;I changed to this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options MPRINT;


%let dirdata=/folders/myfolders;
%let dirOUT=/folders/myfolders;
%let lib=Week_6;
libname Week_6 "&amp;amp;dirdata";
data tb2000;
infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat";
proc print data=tb2000;
run;

%macro pam(lib=,dsn=,obs=);

title "Listing of first 5 records from library &amp;amp;lib, member &amp;amp;dsn," ;
title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
proc print data=&amp;amp;lib..&amp;amp;dsn. (obs=8);
run;
title;
%mend pam;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My mindset was,&lt;/P&gt;&lt;P&gt;I should run the statement and then define the macro function and then call the macro function.(But I wanted to try to print out firstly and then put macro in it and then call the macro, so I had not run to that step yet because there were errors...)&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;The LOG is as below:&lt;/P&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitAlignCenter dijitContentPaneSingleChild dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane"&gt;&lt;DIV class="tabs dijitBorderContainer dijitContainer dojoDndTarget sasStudioTabsParentContainer dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dojoDndTarget dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasSuiteTabs dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         
 74         options MPRINT;
 75         
 76         
 77         
 78         %let dirdata=/folders/myfolders;
 79         %let dirOUT=/folders/myfolders;
 80         %let lib=Week_6;
 81         libname Week_6 "&amp;amp;dirdata";
 NOTE: Libref WEEK_6 refers to the same physical library as PERM.
 NOTE: Libref WEEK_6 was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders
 82         data tb2000;
 83         infile "&amp;amp;dirdata/Programs/Week_6/tb2000.sas7bdat";
 
 NOTE: The infile "/folders/myfolders/Programs/Week_6/tb2000.sas7bdat" is:
       Filename=/folders/myfolders/Programs/Week_6/tb2000.sas7bdat,
       Owner Name=sasdemo,Group Name=sas,
       Access Permission=-rw-rw-r--,
       Last Modified=10Mar2018:22:36:26,
       File Size (bytes)=50176
 
 NOTE: 0 records were read from the infile "/folders/myfolders/Programs/Week_6/tb2000.sas7bdat".
 NOTE: The data set WORK.TB2000 has 1 observations and 0 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 84         proc print data=tb2000;
 
 85         run;
 
 NOTE: No variables in data set WORK.TB2000.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 86         
 87         
 88         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 101        &lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;And there was a message saying that "Work.tb2000" has no column in it popping out.&lt;/P&gt;&lt;P&gt;My hand is tired I need to rest a bit....&lt;/P&gt;&lt;P&gt;Used a 13" Mac book for this...:(&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>Mon, 12 Mar 2018 02:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444620#M282991</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-12T02:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444621#M282992</link>
      <description>&lt;P&gt;You can read a sas table (sas7bdat file) with &lt;FONT face="courier new,courier"&gt;infile&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run my code.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 02:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444621#M282992</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-12T02:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: What does this LOG mean and how can I make this code work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444623#M282993</link>
      <description>&lt;P&gt;This is the LOG of your code:&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73          libname DATA '/folders/myfolders';
 NOTE: Libref DATA refers to the same physical library as WEEK_6.
 NOTE: Libref DATA was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders
 74         
 75         %macro pam(lib=,dsn=,obs=);
 76           proc print data=&amp;amp;lib..&amp;amp;dsn.(obs=&amp;amp;obs);
 77           title "Listing of first &amp;amp;obs records from library &amp;amp;lib, member &amp;amp;dsn," ;
 78           title2 "on &amp;amp;sysday, &amp;amp;sysdate.." ;
 79           run;
 80         %mend pam;
 81         
 82         
 83         
 84         %pam(lib=DATA, dsn=_LAST_, obs=8);
 MPRINT(PAM):   proc print data=DATA._LAST_(obs=8);
 MPRINT(PAM):   title "Listing of first 8 records from library DATA, member _LAST_," ;
 MPRINT(PAM):   title2 "on Monday, 12MAR18." ;
 MPRINT(PAM):   run;
 NOTE: No variables in data set WORK.TB2000.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 85         
 86         
 87         
 88         
 89         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102        &lt;/PRE&gt;&lt;P&gt;Why is there no variable in dataset WORK.2000?&lt;/P&gt;&lt;P&gt;I tried to change the "libname" to "WORK"&lt;/P&gt;&lt;P&gt;but the LOG showed "the WORK cannot be reassigned".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was this what the question want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 03:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-this-LOG-mean-and-how-can-I-make-this-code-work/m-p/444623#M282993</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-12T03:12:41Z</dc:date>
    </item>
  </channel>
</rss>

