Help using Base SAS procedures

proc sql conver char to num

Reply
Contributor
Posts: 31

proc sql conver char to num

Hello,

Could you help for my code? Thank you! Y

TBL1 multiple Character ID
TBL2 has distinct Numeric PersonID

ERROR: CLI prepare error: Communication link failure
SQL statement: SELECT "Consumer_id", " PersonID” FROM TBL2 .
ERROR: PROC SQL runtime error for operation=sqxsrc.
ERROR: An error has occurred.


Proc sql;
Select
b.Consumer_id,
a.email_addr
from
TBL1 as a,
TBL2 as b
Where b. PersonID = input(a.ID, best8.);
Quit;
Super Contributor
Super Contributor
Posts: 365

Re: proc sql conver char to num

Hello Ying,

I ran your code on my EG 4.2 and got the expected result without any errors or warnings. It means that that the problem is not related to SAS programming but to something else, e.g. interaction with server.

Sincerely,
SPR
Contributor
Posts: 31

Re: proc sql conver char to num

Thank you so much, SPR! I rerun the code and after 16 hours (large dataset), I got it.
Ask a Question
Discussion stats
  • 2 replies
  • 1241 views
  • 0 likes
  • 2 in conversation