@PASASMAN wrote: Real life scenario is I don't want to write 100 lines of data input. When usintg the Import Wizard, SAS generates the code along with formats and informats.
If you are using PROC IMPORT to GUESS how to read a delimited file you can also use some other method to perform the guessing and code generation. Then it will be easier to have the generated code and/or metadata.
Try running this macro on your file(s).
https://github.com/sasutils/macros/blob/master/csv2ds.sas
It will leave you with both a text file with the code and a dataset with the metadata.
Plus it will run faster and allow you to override the guessed metadata.
... View more