JHaque, Not enough information, but you are probably asking this in the wrong place. What you are asking about is how to write a unix shell script and launch it from SAS. The launching from SAS is easy, use the "x" command (Easy, that is, unless you SAS Admin has disabled it.). How you write your shell scripts is beyond this forum. Try a unix forum for your flavor of *nix (there are subtle, but often infuriating, differences among them). You will need to provide them with the name of the shell you are using (probably "bash"). You may also need Perl available for some of the string processing. (I know just enough shell scripting to be dangerous, so I won't attempt a direct answer to your questions.) Doc Muhlbaier Duke
... View more