DATA Step, Macro, Functions and more

How to pipe output of vb script from SAS EG

Reply
Contributor
Posts: 70

How to pipe output of vb script from SAS EG

How can I pipe a output of vbs script to a file? I am using below from SAS EG, but doesnt seems to be working.

 

filename ft44f004 pipe  "cscript ""C:\test.vbs""" console=min;

Trusted Advisor
Posts: 1,586

Re: How to pipe output of vb script from SAS EG

try the next code:

 

filename ft44f004 pipe  "cscript ""C:\test.vbs""" console=min;

filename out_file '... any path and file name ...';

 

data _NULL_;

    infile ft44f004 truncover;

    input _infile_;  /* _infile_ is a saved word, contains the input buffer */

    file out_file;

    put _infile_;

run;

 

Shmuel

Ask a Question
Discussion stats
  • 1 reply
  • 184 views
  • 0 likes
  • 2 in conversation