Is it possible to select a numeric column as string with proc sql in sas ?
for exemple i have this table (table_1):
+------+------+------+--------------+--+
| id_1 | id_2 | id_3 | date | |
+------+------+------+--------------+--+
| 3 | 7 | 3 | 25/06/2017 | |
| 4 | 11 | 9 | 25/06/2020 | |
+------+------+------+--------------+--+
id_1, id_2 and id_3 can be numeric or string.
i want to create a table (table_2) where these three columns should have string as type
I wrote this code :
proc sql;
Create table table_2 as
select date, Convert(varchar(30),a.id_1), Convert(varchar(30),a.id_2), Convert(varchar(30),a.id_3)
from table_1 a
;quit;
But it doesn't works