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 (February 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 19 Feb 2009 13:06:48 -0600
Reply-To:   aldi@wustl.edu
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Aldi Kraja <aldi@WUSTL.EDU>
Subject:   Re: SAS/IntrNet textbox problem:
In-Reply-To:   <499DA0FF.3090706@wustl.edu>
Content-Type:   text/plain; charset=ISO-8859-1; format=flowed

Hi, I do not know the real reason, but after I removed the tag set <form> and the closing </form>

The broker is recognizing the textbox as a macro variable.

SYMBOLGEN: Macro variable DSID resolves to 1 MLOGIC(CHECK): Ending execution. MLOGIC(TEST): %IF condition &regionsel=1 and %check(&enddist)="no" is FALSE MLOGIC(TEST): %PUT The answer must be yes, then show me the enddist: &enddist SYMBOLGEN: Macro variable ENDDIST resolves to 00000000 The answer must be yes, then show me the enddist: 00000000

Which now is working.

Thanks,

Aldi

Aldi Kraja wrote: > Hi, > > I am working on a textbox problem using SAS/IntrNet. It is not a > initialization value of the textbox because I have assigned values to > the textbox > value="00000000" (see html page) > Capturing the info from the radio buttons and check boxes is not a > problem. The SAS broker works great, but when it comes to the textbox > I do not see any value returned. Any suggestions how I can capture the > textbox user input? Thank you in advance, Aldi, P.S. see the following > example. > > Here is an example: > I am using a SAS macro to check if a macro variable exists (passed > through SAS broker). Up to the radio button for &region works fine, > but when it comes to capture the &startdist and &enddist within the > textbox form, the log says that they are undefined macros, although I > have given them default values. > (See below) > > html page: > ======= > <input type="radio" name="region" value="N" /> <font size="3">Check > the radio button and please write region start and region end in the > box</font><font size="3" color="#000000"> > <form> > START .distance (in bp): <input type="text" name="startdist" > value="00000000" /> > <br> > END .....distance (in bp): <input type="text" name="enddist" > value="00000000" /> > </form> <TH> &nbsp; </TH> > > <b> &nbsp; </b> > > sas pgm: > ====== > %if &regionsel=1 and %check(&startdist)="no" %then %do; > %put The user did not select a startdist: test producing a no; > %abortit(You selected region but forgot to provide start distance > in bp) > %end; > %else %do; > %put The answer must be yes, then show me the startdist: > &startdist ; > %end; > > /some sas output: > ================ > / > MLOGIC(TEST): %IF condition %check(&region)="no" is FALSE > MLOGIC(TEST): %PUT The answer must be yes, then show me the region: &region > SYMBOLGEN: Macro variable REGION resolves to yes > The answer must be yes, then show me the region: yes > MLOGIC(TEST): %GLOBAL REGIONSEL > MLOGIC(TEST): %LET (variable name is REGIONSEL) > SYMBOLGEN: Macro variable REGIONSEL resolves to 1 > MLOGIC(CHECK): Beginning execution. > /WARNING: Apparent symbolic reference STARTDIST not resolved. > / > > ...... > MLOGIC(TEST): %IF condition &regionsel=1 and %check(&startdist)="no" is FALSE > MLOGIC(TEST): %PUT The answer must be yes, then show me the startdist: &startdist > /WARNING: Apparent symbolic reference STARTDIST not resolved. > /.... > MLOGIC(CHECK): Beginning execution. > /WARNING: Apparent symbolic reference ENDDIST not resolved. > / > > -- > >

--


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