Hi Experts,
We are using the following to call my SAS Program.
SET F=\\PROG\V04 call sasgsublog_EDC "%F%\BB_Quicklist_Report.sas"
I know we can control the Log and the Listing path using Proc Printto.
Can we use -PRINT or any other option in call command in the cmd batch file to control the LOG and LST file location. I tried using -PRINT, it did not work.
Kindly suggest.
You don't have to make any changes to your configuration. I don't have a GRID environment at the moment but I can show you what I did to batch submit for a workspace session job.
cp /sasconfig/Lev1/SASApp/WorkspaceServer/logconfig.trace.xml ~
cd ~
vi logconfig.trace.xml and change the log location to home directory as below:
submit the job and pass the edited log-config location a log is generated at home directory.
so this is like a personal configuration file for your jobs that you can modify.
Hope this helps!
Thank you for your response.
We get a log file in the control location (most of the time where the .SAS file is placed) when a SAS program is run using windows batch or shell batch.
Can we have any options to print log and the listings in a user specified location without changing anything on SAS code or the SAS application configuration.
You don't have to make any changes to your configuration. I don't have a GRID environment at the moment but I can show you what I did to batch submit for a workspace session job.
cp /sasconfig/Lev1/SASApp/WorkspaceServer/logconfig.trace.xml ~
cd ~
vi logconfig.trace.xml and change the log location to home directory as below:
submit the job and pass the edited log-config location a log is generated at home directory.
so this is like a personal configuration file for your jobs that you can modify.
Hope this helps!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.