In reply to chris.

Hi Chris,
The DLGCDIR() function should return the same directory name as is set by the SASINITIALFOLDER option in your SAS configuration file. If the DLGCDIR() function returns something different, I am wondering if perhaps something previously in your code changed the default current working directory to a value other than that set by the SASINITIALFOLDER option. But if you would like to, please open a Tech Support track with us on this so I can work directly with you.
Regards, Martin