LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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" <shide@pop16.odn.ne.jp> wrote in message news:av6ioa$27o6$1@nwall2.odn.ne.jp... > I want to achive the following thing. > > data bbb; > a=exist("work.aaa"); > if a then do; > merge aaa aaa; > end; > else do; > merge abc abc; > end; > run; > > 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. > > K.Shide > shide@pop16.odn.ne.jp > Kazutoshi.Shidehara@gecapital.com > > > > >


Back to: Top of message | Previous page | Main SAS-L page