Help using Base SAS procedures

%sysexec

Reply
Occasional Contributor
Posts: 16

%sysexec

I am using %sysexec with dos2unix to convert a .csv file created in PC format to an Unix file format.
How can I convert multiple PC files into Unix file format using these same commands?(other solutions are welcome too)

Thanks in advance.
Valued Guide
Posts: 634

Re: %sysexec

Since you are already using a macro language element (%SYSEXEC), you could wrap it in a macro loop to execute across a list of files. There are several ways to do this depending on how comfortable you are with the macro language (there are even non-macro solutions). There have been a number of forum threads on list processing and there are a number of papers on the topic as well (Ron Fehd has several).
Ask a Question
Discussion stats
  • 1 reply
  • 192 views
  • 0 likes
  • 2 in conversation