Hi,
I would like to identify operating system and use the value for the if command. So my pseudocode would look like that:
I keep on using same do files at work (Windows) and at home (Mac) and I have different paths for working directories and data files. I would like to solve it once instead of selecting appropriate files or running separate lines of code here and there. Ideally, I would develop one do file where I would define number of paths as global macros and then used them (like for spmap (ssc) support files, etc.)
I would like to identify operating system and use the value for the if command. So my pseudocode would look like that:
PHP Code:
if operating_system == "Mac OS X" then
begin
use "path to the data file on mac"
cd "working directory on mac"
end
else
begin
use "path to the data file on windows"
cd "working directory on windows"
end
I keep on using same do files at work (Windows) and at home (Mac) and I have different paths for working directories and data files. I would like to solve it once instead of selecting appropriate files or running separate lines of code here and there. Ideally, I would develop one do file where I would define number of paths as global macros and then used them (like for spmap (ssc) support files, etc.)
Comment