If you are a SAS Admin and want to test some admin related feature in SAS code like strace, symbolgen fullstimer then you can do it directly from batch. Generally, SAS developers use tools like SAS Enterprise Guide or SAS DI studio to make changes to their program. Changing in client application is a tedious task. You need first make modification and then re-deploy it. The whole process will take atleast an hour.
In batch mode, in OS like *nix, Linux you can use the following command.
/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh -log /sas/qat/Lev1/SASApp/BatchServer/Logs/job_for_batch_#Y.#m.#d_#H.#M.#s.log -batch -noterminal -logparm "rollover=session" -sysin /home/timothy/sales.sas
Command and its purpose:
/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh - This will invoke the batch server. The location of the batchserver changes as per your environment. However everything after config will be same in all environment.
-log /sas/qat/Lev1/SASApp/BatchServer/Logs/job_for_batch_#Y.#m.#d_#H.#M.#s.log - The dash log option specifies the location where you need to write the log for current job. It can be any location where you have read/write access.
-batch -noterminal -logparm - These are default parameters used to run a batch job.
-sysin /home/timothy/sales.sas - It is the location of your SAS program following sysin option.
In batch mode, in OS like *nix, Linux you can use the following command.
/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh -log /sas/qat/Lev1/SASApp/BatchServer/Logs/job_for_batch_#Y.#m.#d_#H.#M.#s.log -batch -noterminal -logparm "rollover=session" -sysin /home/timothy/sales.sas
Command and its purpose:
/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh - This will invoke the batch server. The location of the batchserver changes as per your environment. However everything after config will be same in all environment.
-log /sas/qat/Lev1/SASApp/BatchServer/Logs/job_for_batch_#Y.#m.#d_#H.#M.#s.log - The dash log option specifies the location where you need to write the log for current job. It can be any location where you have read/write access.
-batch -noterminal -logparm - These are default parameters used to run a batch job.
-sysin /home/timothy/sales.sas - It is the location of your SAS program following sysin option.
Comments
Post a Comment