<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34354#M8366</link>
    <description>print out value of &amp;amp;TECVTDATE and see how it is resolved in submit block.</description>
    <pubDate>Thu, 10 Jun 2010 16:09:43 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-06-10T16:09:43Z</dc:date>
    <item>
      <title>Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34353#M8365</link>
      <description>I have a Text Entry Control where the user is entering a date.  The control is formatted as a numeric with the mmddyy8. format and mmddyy10. informat (same formats as the variable in the data set I am using to subset).  I am trying to subset a data set using the date submitted by the user with a WHERE statement.  The date appears in the log as the SAS date (or number) but with 0 observations found.  There should be about 30.  I have been trying all sorts of things to get the code to work and have included the current version below: (I am sure it is something very minor but it just isn't coming to me!)  Thanks for the help!&lt;BR /&gt;
&lt;BR /&gt;
rc=rc;                                                                                                                                  &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
INIT:                                                                                                                                   &lt;BR /&gt;
RETURN;                                                                                                                                 &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DICGENREPORTS:                                                                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
SUBMIT CONTINUE;                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
LIBNAME CMVFUP 'K:\CMVFollowupData';                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DATA A; SET CMVFUP.VISITS;                                                                                                              &lt;BR /&gt;
WHERE VISITDATE NE .;                                                                                                                   &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DATA B; SET A;                                                                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
WHERE VISITDATE GE &amp;amp;TECVTDATE;            *SAS sees the date as the SAS date (or number) but it returns 0 observations.  It should be returning about 30.</description>
      <pubDate>Thu, 10 Jun 2010 15:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34353#M8365</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34354#M8366</link>
      <description>print out value of &amp;amp;TECVTDATE and see how it is resolved in submit block.</description>
      <pubDate>Thu, 10 Jun 2010 16:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34354#M8366</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34355#M8367</link>
      <description>Seems SAS is seeing the value entered as the SAS date and will print it out as such once I give it a temp variable to be assinged to but when I format it out it just formats the exact number that is show it doesn't convert it to the appropriate date.  Does that make sense?  I have included the program as well as an example of the output:&lt;BR /&gt;
rc=rc;                                                                                                                                  &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
INIT:                                                                                                                                   &lt;BR /&gt;
RETURN;                                                                                                                                 &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DICGENREPORTS:                                                                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
SUBMIT CONTINUE;                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
LIBNAME CMVFUP 'K:\CMVFollowupData';                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DATA A; SET CMVFUP.VISITS;                                                                                                              &lt;BR /&gt;
date_1=&amp;amp;tecvtdate;          *reads 24617 when 01/01/2010 is entered into the text entry control                                                                                                             &lt;BR /&gt;
format date_1 mmddyy8.;                                                                                                                 &lt;BR /&gt;
informat date_1 mmddyy10.;                                                                                                              &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc print; var studyid visitdate date_1 visitmonth;  run;                                                                              &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
endsubmit;                                                                                                                              &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
return;&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT:&lt;BR /&gt;
&lt;BR /&gt;
Obs    studyid    visitdate      date_1    visitmonth&lt;BR /&gt;
&lt;BR /&gt;
                      518     66018     01/08/10     05/26/27        18&lt;BR /&gt;
                      519     66021     10/29/08     05/26/27         0&lt;BR /&gt;
                      520     66022     12/10/08     05/26/27         0&lt;BR /&gt;
                      521     66022     04/24/09     05/26/27         7</description>
      <pubDate>Thu, 10 Jun 2010 16:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34355#M8367</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34356#M8368</link>
      <description>I would suggest you set options MPRINT;  or put a %put =&amp;amp;tecvtdate;  right before the where, to make sure that =&amp;amp;tecvtdate resolves to a number.  The format is not important.</description>
      <pubDate>Thu, 10 Jun 2010 17:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34356#M8368</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-06-10T17:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34357#M8369</link>
      <description>Hi:&lt;BR /&gt;
  Without getting into macro issues or AF issues, let's just look at successful WHERE statements. The informat only applies to how a date is ENTERED into a field or in Edit mode; the format only applies to how a date is DISPLAYED. Neither the informat nor the format applies to a WHERE statement. &lt;BR /&gt;
&lt;BR /&gt;
  If you run the program below, you will understand why it is important to understand how date and date constants work in a WHERE statement before you provide a value for the macro variable that's going to be used in your WHERE. You will see output from #1, #2 and #4, but if your macro variable resolves to anything like what is shown in #3, you will get 0 observations being selected, because the date value of 11/15/1950 is NOT how the date is internally stored.&lt;BR /&gt;
&lt;BR /&gt;
Finally, report #5 shows a macro variable used in the WHERE statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data bday;&lt;BR /&gt;
  infile datalines;&lt;BR /&gt;
  input name $ bday : mmddyy10.;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
alan  11/15/1950&lt;BR /&gt;
barb  11/23/1989&lt;BR /&gt;
carl  11/15/1950&lt;BR /&gt;
dana  08/23/1951&lt;BR /&gt;
edwin 09/15/1988&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
                        &lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title 'bday date values without formats';&lt;BR /&gt;
run;&lt;BR /&gt;
                           &lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title 'bday using format';&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
                            &lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title '1) bday with GOOD where statement';&lt;BR /&gt;
  where bday = '15NOV1950'd;&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title '2) bday with GOOD where statement';&lt;BR /&gt;
  where bday = -3334;&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
                                           &lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title '3) bday with BAD where statement';&lt;BR /&gt;
  where bday = 11/15/1950;&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
                                        &lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title '4) bday with GOOD where statement';&lt;BR /&gt;
  where put(bday,mmddyy10.) = '11/15/1950';&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
                                    &lt;BR /&gt;
&lt;BR /&gt;
%let wantbday = 15Nov1950;&lt;BR /&gt;
proc print data=bday;&lt;BR /&gt;
  title '5) bday with GOOD where statement and macro variable';&lt;BR /&gt;
  where bday = "&amp;amp;wantbday"d;&lt;BR /&gt;
  format bday mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 10 Jun 2010 17:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34357#M8369</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-10T17:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34358#M8370</link>
      <description>The following is the complete WHERE clause that works fine outside of the AF application when I am inputting a specific date using the MDY function.  However, this is what I am getting when I try to insert the value entered into the text entry control on the application.  Thanks for all the suggestions.  I have several applications that have similar fields on them that work fine, I just can't figure out why this isn't working.&lt;BR /&gt;
&lt;BR /&gt;
LOG:&lt;BR /&gt;
 LIBNAME CMVFUP 'K:\CMVFollowupData';&lt;BR /&gt;
1673  data one;&lt;BR /&gt;
1674  set cmvfup.visits;&lt;BR /&gt;
1675  where (visitdate gt "24617"d and visitmonth=0) and (cmvresultsaliva ne . or cmvresulturine&lt;BR /&gt;
1675! ne .);&lt;BR /&gt;
ERROR: Invalid date/time/datetime constant "24617"d.&lt;BR /&gt;
ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.ONE may be incomplete.  When this step was stopped there were 0&lt;BR /&gt;
         observations and 41 variables.&lt;BR /&gt;
WARNING: Data set WORK.ONE was not replaced because this step was stopped.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
Program:&lt;BR /&gt;
&lt;BR /&gt;
rc=rc;                                                                                                                                  &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
INIT:                                                                                                                                   &lt;BR /&gt;
RETURN;                                                                                                                                 &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
DICGENREPORTS:                                                                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
SUBMIT CONTINUE;                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
LIBNAME CMVFUP 'K:\CMVFollowupData';                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
data one; set cmvfup.visits;                                                                                                            &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
where (visitdate gt "&amp;amp;tecvtdate"d and visitmonth=0) and (cmvresultsaliva ne . or cmvresulturine ne .);</description>
      <pubDate>Thu, 10 Jun 2010 18:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34358#M8370</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34359#M8371</link>
      <description>where (visitdate gt "24617"d and visitmonth=0) and (cmvresultsaliva ne . or cmvresulturine&lt;BR /&gt;
Should be &lt;BR /&gt;
where (visitdate gt 24617 and visitmonth=0) and (cmvresultsaliva ne . or cmvresulturine</description>
      <pubDate>Thu, 10 Jun 2010 18:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34359#M8371</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-06-10T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34360#M8372</link>
      <description>When I leave it as just &lt;BR /&gt;
where (visitdate gt 24617 and visitmonth=0)&lt;BR /&gt;
which is how I thought it should be also, I end up with 0 observations when there should be about 30 based on running it outside the AF application.  &lt;BR /&gt;
&lt;BR /&gt;
Log:&lt;BR /&gt;
 LIBNAME CMVFUP 'K:\CMVFollowupData';&lt;BR /&gt;
1733  data one;&lt;BR /&gt;
1734  set cmvfup.visits;&lt;BR /&gt;
1735  where (visitdate gt 24617 and visitmonth=0) and (cmvresultsaliva ne . or cmvresulturine ne&lt;BR /&gt;
1735! .);&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 0 observations read from the data set CMVFUP.VISITS.&lt;BR /&gt;
      WHERE (visitdate&amp;gt;24617) and ((cmvresultsaliva not = .) or (cmvresulturine not = .)) and&lt;BR /&gt;
      (visitmonth=0);&lt;BR /&gt;
NOTE: The data set WORK.ONE has 0 observations and 41 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.03 seconds&lt;BR /&gt;
      cpu time            0.00 seconds</description>
      <pubDate>Thu, 10 Jun 2010 19:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34360#M8372</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34361#M8373</link>
      <description>That could be because 24617 is May26, 2027&lt;BR /&gt;
Jan 01, 2010 is 18263</description>
      <pubDate>Thu, 10 Jun 2010 19:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34361#M8373</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-06-10T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34362#M8374</link>
      <description>I have the format on the text entry control set as a numeric with a format of mmddyy8. and informat of mmddyy10. and when I enter the date in the field it appears to be correct (01/01/10).</description>
      <pubDate>Thu, 10 Jun 2010 19:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34362#M8374</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T19:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34363#M8375</link>
      <description>Hi:&lt;BR /&gt;
  I cannot think of any syntax situation where this should work:&lt;BR /&gt;
&lt;B&gt;where date = "number"d;&lt;/B&gt;&lt;BR /&gt;
        &lt;BR /&gt;
for example, consider this SAS log which extends my previously posted example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
74&lt;BR /&gt;
75   proc print data=bday;&lt;BR /&gt;
76     title '6) Another BAD where statement';&lt;BR /&gt;
77     where bday = "-3334"d;&lt;BR /&gt;
ERROR: Invalid date/time/datetime constant "-3334"d.&lt;BR /&gt;
ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;
78     format bday mmddyy10.;&lt;BR /&gt;
79   run;&lt;BR /&gt;
                         &lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
                &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I know that -3334 is the internal stored value for 11/15/1950. However, the construct: "-3334"d is just plain wrong, because it is an invalid form of a date or datetime constant (as it says in the note). I suspect that there is some other reason that your WHERE statement is failing when you remove the "..."d from around your number 24617 -- possibly the combination of NOT and AND and OR conditions is not resulting in the query results you expect.&lt;BR /&gt;
&lt;BR /&gt;
If you continue to have issues, I would recommend that you open a track with Tech Support. They can look at your actual data, your actual AF code and make recommendations about solutions.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 10 Jun 2010 19:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34363#M8375</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-10T19:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34364#M8376</link>
      <description>Run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
x = 24617;&lt;BR /&gt;
put(x, date9.);&lt;BR /&gt;
x = 18263;&lt;BR /&gt;
put(x, date9.);&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 10 Jun 2010 19:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34364#M8376</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-06-10T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34365#M8377</link>
      <description>This is what I get:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
1876  x = 24617;&lt;BR /&gt;
1877  put(x, date9.);&lt;BR /&gt;
           -&lt;BR /&gt;
           22&lt;BR /&gt;
           76&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, arrayname, ), -, :, [, _ALL_,&lt;BR /&gt;
              _CHARACTER_, _CHAR_, _NUMERIC_, {.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
1878  x = 18263;&lt;BR /&gt;
1879  put(x, date9.);&lt;BR /&gt;
           -&lt;BR /&gt;
           22&lt;BR /&gt;
           76&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, arrayname, ), -, :, [, _ALL_,&lt;BR /&gt;
              _CHARACTER_, _CHAR_, _NUMERIC_, {.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
1880  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds</description>
      <pubDate>Thu, 10 Jun 2010 19:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34365#M8377</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T19:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34366#M8378</link>
      <description>You cannot use PUT with a number that represents a date...PUT creates a CHARACTER variable. That would be wrong, especially since the date is stored as a number....you cannot have a WHERE statement with mis-matched types (as in comparing a character string to a date value).&lt;BR /&gt;
&lt;BR /&gt;
If you are getting a TEXT value of 24617 and you want to turn that text string into the NUMBER 24617, then the INPUT function is what turns a character string into a NUMBER.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 10 Jun 2010 20:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34366#M8378</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-10T20:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34367#M8379</link>
      <description>i suspect the issue is were date text entry converted to &amp;amp;tecvtdate. debug that portion of scl...</description>
      <pubDate>Thu, 10 Jun 2010 20:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34367#M8379</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from a Text Entry Control in SAS AF App for WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34368#M8380</link>
      <description>I replaced the Text Entry Control object with the version 6 Text Entry Object and the code works perfectly.  Go figure.  There must be something in the newer version of the text entry object that wasn't configured correctly.  However, I got it to work with the version 6 object so I am happy.  &lt;BR /&gt;
Thanks for all the advice and help!</description>
      <pubDate>Thu, 10 Jun 2010 21:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-a-value-from-a-Text-Entry-Control-in-SAS-AF-App-for/m-p/34368#M8380</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-10T21:17:59Z</dc:date>
    </item>
  </channel>
</rss>

