LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 23 Jun 2004 16:43:25 -0400
Reply-To:   Jim Groeneveld <jim.groeneveld@VITATRON.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jim Groeneveld <jim.groeneveld@VITATRON.COM>
Subject:   Re: %include with return code to calling program --> is this possible?

On Wed, 23 Jun 2004 13:36:20 -0700, Sober Hi <soberhi@YAHOO.COM> wrote:

>I am new to SAS. > >I am using version 6.12 > >I would like to have one "batch-like" file called MyMain.SAS that has >as pseduo-code: > > >My Main.SAS > >rc = %include 'code1.sas'; /* rc = return code; 0 = success */ >if rc=0 then %include 'code2.sas; >else put "program aborted due to error in file code1.sas"; > >------------------------------ > >Code1.SAS > >(a number of SAS statements, including PROC SQL) >then a return statement > >------------------------------- > >Is this possible to do? > >Thanks.

Hi Hi / Sober Hi (? ;-),

No. But in your file to be included you may have a valid return code.

Regards - Jim. (from home via web interface)


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