Date: Mon, 6 Jan 2003 09:23:53 -0500
Reply-To: Allan Page <nospam_allan.page@SYMPATICO.CA>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Allan Page <nospam_allan.page@SYMPATICO.CA>
Organization: Bell Sympatico
Subject: Re: Without using macro, is it possible?
You checked to see of work.aaa exists, but not work.abc. How about doing
that check as well. You also did not say what you plan to have your process
do if either of the datasets does not exist.
"K.Shide" <firstname.lastname@example.org> wrote in message
> I want to achive the following thing.
> data bbb;
> if a then do;
> merge aaa aaa;
> else do;
> merge abc abc;
> Error: work.abc.data does not exist;
> If "work.aaa" exist then merge aaa and aaa,
> else merge abc and abc.
> But without using macro, SAS tries to carry out
> every single step.
> Does anyone know how to solve this kind of problem
> without using macro.
> (This is a part of big complicated macro so I want to avoid
> to use macro on this problem.)
> Any comments, advice will be greatly appreciated.