Hi, I would use an Extract transform. Map the DATA_ARQUIVO column with an expression MAX(DATA_ARQUIVO).
The essence of the code would be:
%put %str(NOTE: Mapping columns ...);
proc sql;
create table work.W36LRL as
select
(max(DATA_ARQUIVO)) as DATA_ARQUIVO length = 8
from &SYSLAST
;
quit;
Hope this helps,
- Jan.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.