Hi, I am trying to make a inner join in sql on two variable of different type, where no_client_rdm_sid is numerical and entity_key is alphanumerical PROC SQL; CREATE TABLE icoplib.customer_comments AS SELECT absentnorkom.NO_CLIENT_RDM_SID, CUSTOMER_ACTION_LOG_NUM.COMMENT_TEXT FROM ICOPLIB.ABSENTNORKOM AS ABSENTNORKOM LEFT join icoplib.CUSTOMER_ACTION_LOG_NUM AS CUSTOMER_ACTION_LOG_NUM ON ( absentnorkom.NO_CLIENT_RDM_SID = CUSTOMER_ACTION_LOG.entity_key) Is there a way to transform the variable within the sql query or do I really need to use an input statement like the following? : data icoplib.customer_action_log_num; set nksmprd.customer_action_log; entity_key_num = input(entity_key, 20.); run; If I need to use this input statement, how do I make sure that it only transform numerical value (i,e limit the input to numerical value only), since my entity_key records also contains alphanumerical value and I don't want to trigger an error each time it analyze an alphanumerical value. Thank you for your help and time.
... View more