@suztang wrote:
Transitioning from SAS EG to SAS ViYa and Studio. In SAS EG, I could check a box during import to convert characters in a var name to make them SAS-compatible. The closest I can get to that in Studio is to use option validvarname=v7, except I don't want my variable names truncated. What's the code to replicate what SAS EG is doing with var names?
Are you talking about about reading a TEXT file? Such as a CSV file? Or do you have some other type of file, like an XLSX file?
What CODE are you using in EG? Or did you use some GUI tool in EG? Note that the GUI tool in EG for importing a TEXT file does analysis of the file on your PC and then uploads a (potentially) modified version of the file and the code to read it.
What CODE are you using in SAS/Studio? Or did you use some GUI tool to generate the code?
Can you run normal SAS code on your VIYA platform? Perhaps you could use some other tool to GUESS how to convert the file in a dataset. You could see if you can get this SAS macro to run on VIYA.
https://github.com/sasutils/macros/blob/master/csv2ds.sas
... View more