I have managed to get an answer from another source.
Its coded below for any others you require it.
options noxwait noxsync;
x '"C:\Program Files\Microsoft Office\Office\EXCEL.EXE"';
data _null_;
x=sleep(10);
run;
filename cmds dde 'excel|system';
data _null_;
file cmds;
put '[Open("\\Datal0047\Clientserv\SAS\Devt\daniel\excel\Test1.xls",,,,"'"test123"'")]';
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!