|
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 ®ionsel=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 ®ion 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> </TH>
>
> <b> </b>
>
> sas pgm:
> ======
> %if ®ionsel=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(®ion)="no" is FALSE
> MLOGIC(TEST): %PUT The answer must be yes, then show me the region: ®ion
> 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 ®ionsel=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.
> /
>
> --
>
>
--
|