Skip to content
Advertisement

Wrong data type notification between in operator in SAS

When I run the following code in SAS, I was told that the data type between ‘not in’ were different and can’t procede to run. But I’ve already used ‘input’ to convert the data type, so I don’t know what’s going wrong.

NOTE: DAT and EGDAT are not from the same table and have different original data type.

Advertisement

Answer

Either the data columns are not as you presume, or there is some other part of the query that is causing the message.

Example:

The SQL code similar to yours and there are no errors.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement