mirror of
https://github.com/sasjs/core.git
synced 2025-12-22 10:41:20 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d51be73017 | |||
| cafffbb509 |
5
all.sas
5
all.sas
@@ -1935,7 +1935,7 @@ Usage:
|
|||||||
@author Allan Bowe
|
@author Allan Bowe
|
||||||
**/
|
**/
|
||||||
|
|
||||||
%macro mp_csv2ds(inref=0,outds=0,baseds=0);
|
%macro mp_csv2ds(inref=0,outds=0,baseds=0,view=NO);
|
||||||
%if &inref=0 %then %do;
|
%if &inref=0 %then %do;
|
||||||
%put %str(ERR)OR: the INREF variable must be provided;
|
%put %str(ERR)OR: the INREF variable must be provided;
|
||||||
%let syscc=4;
|
%let syscc=4;
|
||||||
@@ -1952,7 +1952,7 @@ Usage:
|
|||||||
%return;
|
%return;
|
||||||
%end;
|
%end;
|
||||||
%if %sysfunc(exist(&BASEDS)) ne 1 & %sysfunc(exist(&BASEDS,VIEW)) ne 1 %then %do;
|
%if %sysfunc(exist(&BASEDS)) ne 1 & %sysfunc(exist(&BASEDS,VIEW)) ne 1 %then %do;
|
||||||
%put %str(ERR)OR: the BASEDS dataset needs to be assigned, and to exist;
|
%put %str(ERR)OR: the BASEDS dataset (&baseds) needs to be assigned, and to exist;
|
||||||
%let syscc=4;
|
%let syscc=4;
|
||||||
%return;
|
%return;
|
||||||
%end;
|
%end;
|
||||||
@@ -2004,6 +2004,7 @@ data _null_;
|
|||||||
if type=1 then informat='best.';
|
if type=1 then informat='best.';
|
||||||
else informat=cats('$',length,'.');
|
else informat=cats('$',length,'.');
|
||||||
end;
|
end;
|
||||||
|
else informat=cats(informat,'.');
|
||||||
in=catx(' ',in,name,':',informat);
|
in=catx(' ',in,name,':',informat);
|
||||||
if last then do;
|
if last then do;
|
||||||
call symputx('instat',in,'l');
|
call symputx('instat',in,'l');
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
@author Allan Bowe
|
@author Allan Bowe
|
||||||
**/
|
**/
|
||||||
|
|
||||||
%macro mp_csv2ds(inref=0,outds=0,baseds=0);
|
%macro mp_csv2ds(inref=0,outds=0,baseds=0,view=NO);
|
||||||
%if &inref=0 %then %do;
|
%if &inref=0 %then %do;
|
||||||
%put %str(ERR)OR: the INREF variable must be provided;
|
%put %str(ERR)OR: the INREF variable must be provided;
|
||||||
%let syscc=4;
|
%let syscc=4;
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
%return;
|
%return;
|
||||||
%end;
|
%end;
|
||||||
%if %sysfunc(exist(&BASEDS)) ne 1 & %sysfunc(exist(&BASEDS,VIEW)) ne 1 %then %do;
|
%if %sysfunc(exist(&BASEDS)) ne 1 & %sysfunc(exist(&BASEDS,VIEW)) ne 1 %then %do;
|
||||||
%put %str(ERR)OR: the BASEDS dataset needs to be assigned, and to exist;
|
%put %str(ERR)OR: the BASEDS dataset (&baseds) needs to be assigned, and to exist;
|
||||||
%let syscc=4;
|
%let syscc=4;
|
||||||
%return;
|
%return;
|
||||||
%end;
|
%end;
|
||||||
@@ -99,6 +99,7 @@ data _null_;
|
|||||||
if type=1 then informat='best.';
|
if type=1 then informat='best.';
|
||||||
else informat=cats('$',length,'.');
|
else informat=cats('$',length,'.');
|
||||||
end;
|
end;
|
||||||
|
else informat=cats(informat,'.');
|
||||||
in=catx(' ',in,name,':',informat);
|
in=catx(' ',in,name,':',informat);
|
||||||
if last then do;
|
if last then do;
|
||||||
call symputx('instat',in,'l');
|
call symputx('instat',in,'l');
|
||||||
|
|||||||
Reference in New Issue
Block a user