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 (April 1997, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Apr 1997 08:34:05 PDT
Reply-To:     Howard Wright <hwright@OLDMUTUAL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Howard Wright <hwright@OLDMUTUAL.COM>
Subject:      Re: SAS Base Syntax check in AF application
Comments: To: Ivan Son <son_ivan@EUROCLEAR.COM>
In-Reply-To:  <>
Content-Type: text/plain; charset="ISO-8859-1"; X-MAPIextension=".TXT"


Try using the obs=0 and noreplace system options and then pickup the SYSRC macro variable after the datastep or proc has run; e.g. options obs=0; options noreplace; data out; set temp; if=&userif; run;

You can pick up the SYSRC macro variable in AF with the following code: rc=symget('SYSRC');

The obs=0 option specifies that 0 observarions are read in from the input dataset. NOREPLACE tells SAS not to overwite an existing SAS dataset with one of the same name. If you are creating a new datastet, it will be created wath all the variables, but with 0 observations.

I havn't tested this, but it should work.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Howard Wright + InfoActive CC + + SAS Consultant + A SAS Institute Quality + + Cape Town + On assignment at Old Mutual + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + InfoActive (021) 683-6448 + + Old Mutual (021) 509-4118 + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + There is no relationship whatsoever between the above + + views and those of Old Mutual. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

---------- > Hi everybody, > > I'm developing a SAS AF application where the user can, in free mode, enter > parts of SAS statements (like IF clause). Those parts of SAS statements will > be included in SAS Base programs. I would like to check the syntax of what > the > user write before saving and using it. > > Does anybody have an idea how I can perform this syntax check ? > > > Ivan SON > LACO Information Services NV > Zaventem (BELGIUM)

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