<?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: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626372#M20381</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313074"&gt;@Chandu91&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;"I'm guessing if you change this&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;212&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;You should receive an error.&amp;nbsp; "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly, that is my point too, but the twist in the tale is i'm not getting any ERROR or not even a Warning message in the log.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to raise questions about how Oracle works on an Oracle Forum, not a SAS forum.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 23:11:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-02-20T23:11:10Z</dc:date>
    <item>
      <title>Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626179#M20350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come across a different set of coding as we can pass both numeric and character values at a time to a variable that was declared as numeric in Oracle warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (XXXXXXXXXXXXXX user=&amp;amp;uid. password=&amp;amp;pwd. preserve_comments );
    create table temp as
        select * from connection to oracle
(select Var from CC
where var in ('023',23);

);
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working but could someone help me to understand how the SAS is not throwing an error when there are two format values given in a condition?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If system is considering '023' as numeric and not a character even with quote this should work in local sas code too. but this is working only when we are hitting oracle data warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cc;
input var;
cards;
23
91
65
;
run;

proc sql;
create table temp as 
select * from cc
where var in ('023',23);
quit&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS_log.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36267i52E92C02FA8A2EC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_log.PNG" alt="SAS_log.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626179#M20350</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T16:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626200#M20351</link>
      <description>&lt;P&gt;I don't get the premise of your question.&lt;/P&gt;
&lt;P&gt;You showed an Oracle query.&amp;nbsp; Then you showed a SAS query using a totally different WHERE clause.&lt;/P&gt;
&lt;P&gt;Did you try the same where clause you used when querying the SAS dataset in your Oracle query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What makes you think that the variable is numeric in the Oracle table?&amp;nbsp; The query you sent to Oracle is treating it as character.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select Var from CC where var in ('023')&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626200#M20351</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-20T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626203#M20352</link>
      <description>&lt;P&gt;Yeah i have updated the query in the previous post. My question is you can't pass two format values to a numeric defined variable.&lt;/P&gt;&lt;P&gt;If you try to o=do that SAS system should throw an error saying check your format which is exactly done in the second part of my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the system is ignoring the format issue when you are hitting Oracle warehouse. I'm trying to understand why there is no error or warning message in the log.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626203#M20352</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626208#M20354</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (XXXXXXXXXXXXXX user=&amp;amp;uid. password=&amp;amp;pwd. preserve_comments );
    create table temp as
        select * from connection to oracle
(select Var from CC
where var in ('023');

);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this example you are using explicit pass through. Which means you are sending that query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;(select Var from CC
where var in ('023'))&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;directly to Oracle for processing. Oracle is processing the query as written.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have come across a different set of coding as we can pass both numeric and character values at a time to a variable that was declared as numeric in Oracle warehouse.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are also only testing var against a character value, not both like you mentioned. If i'm understanding correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try the same thing using a numeric column and testing for a character value I receive an error. Are you sure VAR is numeric?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*MSRP is a numeric column*/&lt;BR /&gt;proc sql;
connect to oracle(user=&amp;amp;username password=&amp;amp;pwd path=&amp;amp;path);
select * from connection to oracle
	(select * 
		from cars
		where MSRP in ('test'));
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36274iF54717EFF2BDB4FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Also if you look at my error, that is an error from Oracle.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try taking a numeric column and testing for both a character and numeric value, I again receive an error.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle(user=&amp;amp;username password=&amp;amp;pwd path=&amp;amp;path);
select * from connection to oracle
	(select * 
		from cars
		where MSRP in ('test', 23820));
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test2.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36275i81DFECD8977FE9D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="test2.jpg" alt="test2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing if you change this&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;(select Var from CC
where var in ('023'));&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;(select Var from CC
where var in ('023', 212));&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;You should receive an error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626208#M20354</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2020-02-20T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626213#M20355</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313074"&gt;@Chandu91&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yeah i have updated the query in the previous post. My question is you can't pass two format values to a numeric defined variable.&lt;/P&gt;
&lt;P&gt;If you try to o=do that SAS system should throw an error saying check your format which is exactly done in the second part of my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the system is ignoring the format issue when you are hitting Oracle warehouse. I'm trying to understand why there is no error or warning message in the log.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; that in SAS a &lt;STRONG&gt;FORMAT&lt;/STRONG&gt; is an attribute of a variable that tells SAS how to display the values.&amp;nbsp; I think you are actually asking about type conversion. SAS only has two types of variables, floating point numbers and fixed length character strings. (DS2 allows more).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me make sure I understand the question.&amp;nbsp; You updated the question and it looks like you are saying that Oracle will allow you to use a string like '023' that LOOKS like a number to query a variable that is a number.&amp;nbsp; SAS will not allow that with the WHERE statement.&amp;nbsp; But you can do that in many places in normal SAS code however.&amp;nbsp; Like in a IF statement instead.&lt;/P&gt;
&lt;PRE&gt;1     data test;
2       set sashelp.class;
3       where age in (13,'14');
                         ----
                         22
                         200
ERROR: Syntax error while parsing WHERE clause.
ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant,
              a missing value, ), -.

ERROR 200-322: The symbol is not recognized and will be ignored.

4     run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations
         and 5 variables.

5
6     data test;
7       set sashelp.class;
8       if age in (13,'14');
ERROR: All variables in array list must be the same type, i.e., all numeric or character.
9     run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations
         and 5 variables.
WARNING: Data set WORK.TEST was not replaced because this step was stopped.

10    data test;
11      set sashelp.class;
12      if age in ('13','14');
13    run;

NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
      12:6
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 7 observations and 5 variables.

14
15    data test;
16      set sashelp.class;
17      if age = 13 or age='14';
18    run;

NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
      17:22
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 7 observations and 5 variables.&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626213#M20355</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-20T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626217#M20356</link>
      <description>&lt;P&gt;"I'm guessing if you change this&lt;/P&gt;&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this&lt;/P&gt;&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;212&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;You should receive an error.&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly, that is my point too, but the twist in the tale is i'm not getting any ERROR or not even a Warning message in the log.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626217#M20356</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626230#M20359</link>
      <description>&lt;P&gt;Hm. I'd guess you should receive an error, I know I did. Could you show us the log after you run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (XXXXXXXXXXXXXX user=&amp;amp;uid. password=&amp;amp;pwd. preserve_comments );
    create table temp as
        select * from connection to oracle
(select Var from CC
where var in ('023',23);

);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And can you confirm the data type of the VAR column in Oracle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 17:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626230#M20359</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2020-02-20T17:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626290#M20369</link>
      <description>&lt;P&gt;here the log :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;59 OPTIONS OBS=1;&lt;BR /&gt;60 proc sql;&lt;BR /&gt;61 connect to oracle (path="XXXXXX" BUFFSIZE=5000 user=&amp;amp;uid. password=&amp;amp;pwd. preserve_comments&lt;BR /&gt;61 ! );&lt;BR /&gt;62 create table temp as&lt;BR /&gt;63 select * from connection to oracle&lt;BR /&gt;64 (select Var&lt;BR /&gt;66 from CC&lt;BR /&gt;67 where Var in ('023',23)&lt;BR /&gt;68&lt;BR /&gt;69 );&lt;BR /&gt;NOTE: Table WORK.TEMP created, with 1 rows and 1 columns.&lt;/P&gt;&lt;P&gt;70 quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 5.00 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: Remote submit to GRID complete.&lt;BR /&gt;NOTE: Remote submit to PCSRV complete.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626290#M20369</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T19:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626291#M20370</link>
      <description>the datatype of Var column is Numeric 8.</description>
      <pubDate>Thu, 20 Feb 2020 19:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626291#M20370</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T19:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626341#M20376</link>
      <description>&lt;P&gt;Looks like Oracle does implicit data type conversion like documented &lt;A href="https://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements002.htm#g195937" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 21:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626341#M20376</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-20T21:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626346#M20377</link>
      <description>&lt;P&gt;Maybe correct me if i'm wrong, But the 2-10 Matrix says like this :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Char&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Char&lt;/P&gt;&lt;P&gt;Char&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Rowid&lt;/P&gt;&lt;P&gt;Varchar2&amp;nbsp; &amp;gt; Varchar 2&lt;/P&gt;&lt;P&gt;Number&amp;nbsp; &amp;nbsp;&amp;gt; number&lt;/P&gt;&lt;P&gt;Number&amp;nbsp; &amp;nbsp;&amp;gt; date&lt;/P&gt;&lt;P&gt;Number&amp;nbsp; &amp;nbsp;&amp;gt; date time&lt;/P&gt;&lt;P&gt;Number&amp;nbsp; &amp;nbsp;&amp;gt; log .. etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but not converting from Char to Numeric/ Numeric to Char, which says oracle it's not implicitly converting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility that the datatype of the variable in Oracle is defined as VARCHAR and while fetching information with SAS tool it's converting to numeric and bypassing to check the format of values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 21:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626346#M20377</guid>
      <dc:creator>Chandu91</dc:creator>
      <dc:date>2020-02-20T21:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626372#M20381</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313074"&gt;@Chandu91&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;"I'm guessing if you change this&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'023'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;212&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="  language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;You should receive an error.&amp;nbsp; "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly, that is my point too, but the twist in the tale is i'm not getting any ERROR or not even a Warning message in the log.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to raise questions about how Oracle works on an Oracle Forum, not a SAS forum.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 23:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626372#M20381</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-20T23:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SAS 9.4 implicitly ignoring character value passed to numeric variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626386#M20382</link>
      <description>&lt;P&gt;The IN clause executes fully on the Oracle side without any SAS involvement. The only thing SAS does is sending the code to Oracle for execution. Therefore your question is 100% Oracle related and has nothing to do with SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 02:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-SAS-9-4-implicitly-ignoring-character-value/m-p/626386#M20382</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-21T02:49:57Z</dc:date>
    </item>
  </channel>
</rss>

