Hi All,
I want some alternative for _Error_ in proc copy. I want to copy all dataset from one library to another library and while doing so,if any error occurred I want to use the do and if condition to control the code.
For example-:
Proc copy in=libname1 out=libname2;
if_error_=1 then do;
%message(call a macro);
%put(" THere is a error while copying");
end;
run;
I know _error_ will work with dataset. But not sure either it will work with procedure or not.If anyone can suggest me the alternative for the same it will be a great help.
Thanks
Ankit