1

I try to run a program in SAS using batch mode. So I created a controlfile in SAS and wrote out as outfile(txt file). The nI wrote a code to make a bat file(proram1.bat) to run the proram but I don't get output file. the program is located at c:program files\programx. I wan t output file to be in C:\program1.out file. Anything wrong here?

data null;

file "C:\program1.bat";

put 'C:';

put "CD C:\program files\programx";

put "programx C:\program1.con C:\program1.out";

run;

options xmin noxwait;

x "C:\program1.bat";

1 Answer 1

0

When I replicate your code I get a valid bat file after SAS executes:

C:
CD C:\program files\programx
programx C:\program1.con C:\program1.out

which I manually modified:

C:
CD C:\program files\programx
dir
:::programx C:\program1.con C:\program1.out
pause

I see no problems on the SAS side.

1
  • thank you rshdev for the verification. I will look into what is wrong with other stuff.
    – user634455
    Mar 23, 2012 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.