I have two versions of SAS, each located on different drives. When I submit a program in batch mode, it executes using the SAS installed on the C drive. I submit it by right-clicking on the prog in a Explorer window and selecting Batch Submit with SAS 9.4.
I want the submitted job to run using the SAS installed on my E drive, because it runs much faster. There is no such option when right-clicking. Is there another way to submit it so that I can direct it to use the SAS installed on the E Drive? Thanks
Just use a command line to run the right executable: E:\MySASInstallFolder\sas.exe.
Two ways to check your PATH environment variable in windows.
1 -> Open CMD and enter the command 'path' and hit enter. It will show you if there is an entry for SAS executable there.
2-> Right click on MyComputer and click properties. Under system click on advanced system settings which should open a window 'system properties'. In there, should be an option 'Environmental Variables'. Click on that which will open another window, In which navigate to system variables box, Where you can find 'path'. It will list the current path variables set which can be modified to point to your SAS installation of E drive.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.