Conditionally skip conversions in SAS DIS

I am wondering if it is possible to use the conditional start transform in SAS DIS to conditionally bypass another transform depending on whether the given table is empty (without rows). This link indicates that the condition should be based on the value of the parameter variable.

One of my ideas was to create a parameter value in converting the user's written code and assign it different values ​​depending on the state of the table, but this seems complicated and inelegant, and I'm not sure if it will work. Is there an easier way ?

Big thanks

+4
source share
2 answers

- , , , , . -, numobs, @cmjohns (fooobar.com/questions/320860/...) . , , . " " :

%macro dummy;
%if %nobs(&SYSLAST) gt 0 %then %do;

, , , :

%end;
%mend dummy;
%dummy;

, , .

. SAS DI Studio 4.8 , . DI studio , ().

+3

, , , . , .


, %eval, , exist .

:

%put %sysfunc(exist(sashelp.class));
%put %sysfunc(exist(sashelp.classzas));

1 (true), 0 (false) .

+2

All Articles