I would like my code to be able to run out of the box when downloaded from my GitHub portfolio (this is just the standard for the other 2 coding languages on it). However, while normal SAS files will let me set the current working directory by clicking the SAS file, this is not the case with the sasnb files on VS Code. As such, sasnb files can not run out of the box. System notes: Windows 11, SAS on VS Code was last updated 2025-02-05. Observation: SAS will run this whenever I run code: %let _SASPROGRAMFILE = %nrquote(%nrstr(c:\Users\3sekk\Desktop\spring 25\stat 574\hw1STAT574S25\01\01.sasnb)); Attempted solution: I can use the above as &_SASPROGRAMFILE. I have tried to extract c:\Users\3sekk\Desktop\spring 25\stat 574\hw1STAT574S25\01 so that I can send this to a rc=dlgcdir step, but I haven't managed to figure it out. I have found that the regex code ^(.+)\\ will highlight that, and its output will suffice for the rc=dlgcdir step. The issue is regexing the &_SASPROGRAMFILE. That is just one attempted solution. Is there a simpler way?
... View more