Good afternoon, I need to run a .bat from SAS EG where I create 2 .txt files.
The same ones that are created empty when executing of SAS EG but if the same .bat is executed from the server from the CMD is executed normally and creates the files with information:
Attached as executing from SAS EG and .bat code data _null_; x "x:\1prueba.bat > x:\log.txt "; run; @echo off Handle64 DIM_IP_TP.mdf.0.0.0.spds9 > x:\tabla.txt for /f "tokens=3,6 skip=5 delims= " %%p in (x:\tabla.txt) do ( echo %%p %%q ) Handle64 DIM_IP_TP.data.spds_lock9 > x:\tabla1.txt for /f "tokens=3,6 skip=5 delims= " %%r in (x:\tabla1.txt) do ( echo %%r %%s ) the .bat is to find the sessions (pid) that have taken an SPDS table to then kill the process the user with whom I run is the sas admin and server admin
... View more