Hello, Is it possible to prepare a cleaner SAS code from DI studio that will exclude a lot of the autogenerated wrapper code
e.g.
I tried the following but it didn't work:
Your RegEx needs some amendment. Below should work.
data test;
infile datalines4 truncover;
input line $256.;
if prxmatch('/^\%let etls_\w+.+;$/i', strip(line)) then delete;
datalines4;
%let etls_startTime = %sysfunc(datetime(),datetime.);
%let etls_recordsBefore = 0;
%let etls_recordsAfter = 0;
;;;;
But as @MrSantos already advised, you should use the SAS Content Assessment Tool with it's migration tools.
What you're doing would only make sense if you wouldn't want to migrate to SAS Studio flows but to simple .sas programs ...but this would only make sense imho if the SAS Viya version you've licensed doesn't allow for the direct migration to SAS Studio Flow.
Hi,
Doing the migration of SAS DI jobs to SAS Viya manually the way you seem to be doing may not be the best option. Using the SAS Content Assessment Tool to help manage the migration may save some time and help identify jobs that will migrate easily and jobs that will present difficulties. Here's a demo of a job migration using the Content Assessment Tool: https://youtu.be/IIxyUbdmZoM
Regards,
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.