mirror of
https://github.com/sasjs/core.git
synced 2026-01-06 09:00:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a08f6aeea2 | ||
|
|
469bd574ac |
7
all.sas
7
all.sas
@@ -2135,8 +2135,8 @@ Usage:
|
|||||||
%if %symexist(SYSPRINTTOLOG) %then %let logloc=&SYSPRINTTOLOG;
|
%if %symexist(SYSPRINTTOLOG) %then %let logloc=&SYSPRINTTOLOG;
|
||||||
%else %let logloc=%qsysfunc(getoption(LOG));
|
%else %let logloc=%qsysfunc(getoption(LOG));
|
||||||
proc printto log=log;run;
|
proc printto log=log;run;
|
||||||
|
%let logline=0;
|
||||||
%if %length(&logloc)>0 %then %do;
|
%if %length(&logloc)>0 %then %do;
|
||||||
%let logline=0;
|
|
||||||
data _null_;
|
data _null_;
|
||||||
infile &logloc lrecl=5000;
|
infile &logloc lrecl=5000;
|
||||||
input; putlog _infile_;
|
input; putlog _infile_;
|
||||||
@@ -2185,7 +2185,10 @@ Usage:
|
|||||||
file _webout mod lrecl=32000 encoding='utf-8';
|
file _webout mod lrecl=32000 encoding='utf-8';
|
||||||
length msg $32767 ;
|
length msg $32767 ;
|
||||||
sasdatetime=datetime();
|
sasdatetime=datetime();
|
||||||
msg=cats(symget('msg'),'\n\nLog Extract:\n',symget('logmsg'));
|
msg=symget('msg');
|
||||||
|
%if &logline>0 %then %do;
|
||||||
|
msg=cats(msg,'\n\nLog Extract:\n',symget('logmsg'));
|
||||||
|
%end;
|
||||||
/* escape the quotes */
|
/* escape the quotes */
|
||||||
msg=tranwrd(msg,'"','\"');
|
msg=tranwrd(msg,'"','\"');
|
||||||
/* ditch the CRLFs as chrome complains */
|
/* ditch the CRLFs as chrome complains */
|
||||||
|
|||||||
@@ -110,8 +110,8 @@
|
|||||||
%if %symexist(SYSPRINTTOLOG) %then %let logloc=&SYSPRINTTOLOG;
|
%if %symexist(SYSPRINTTOLOG) %then %let logloc=&SYSPRINTTOLOG;
|
||||||
%else %let logloc=%qsysfunc(getoption(LOG));
|
%else %let logloc=%qsysfunc(getoption(LOG));
|
||||||
proc printto log=log;run;
|
proc printto log=log;run;
|
||||||
|
%let logline=0;
|
||||||
%if %length(&logloc)>0 %then %do;
|
%if %length(&logloc)>0 %then %do;
|
||||||
%let logline=0;
|
|
||||||
data _null_;
|
data _null_;
|
||||||
infile &logloc lrecl=5000;
|
infile &logloc lrecl=5000;
|
||||||
input; putlog _infile_;
|
input; putlog _infile_;
|
||||||
@@ -160,7 +160,10 @@
|
|||||||
file _webout mod lrecl=32000 encoding='utf-8';
|
file _webout mod lrecl=32000 encoding='utf-8';
|
||||||
length msg $32767 ;
|
length msg $32767 ;
|
||||||
sasdatetime=datetime();
|
sasdatetime=datetime();
|
||||||
msg=cats(symget('msg'),'\n\nLog Extract:\n',symget('logmsg'));
|
msg=symget('msg');
|
||||||
|
%if &logline>0 %then %do;
|
||||||
|
msg=cats(msg,'\n\nLog Extract:\n',symget('logmsg'));
|
||||||
|
%end;
|
||||||
/* escape the quotes */
|
/* escape the quotes */
|
||||||
msg=tranwrd(msg,'"','\"');
|
msg=tranwrd(msg,'"','\"');
|
||||||
/* ditch the CRLFs as chrome complains */
|
/* ditch the CRLFs as chrome complains */
|
||||||
|
|||||||
Reference in New Issue
Block a user