When I use the above to get output from proc tabulate, the columns are not set out in excel properly - i just get everything in the column A cells - with values seperated by half pipe symbols eg: . 949| 528| 1043| 1031| 1132| 850| 899| 447|. Being new to this It could be an obvious fix.
I tried some sas example code which works fine, using the same ods statement/tagset, but example data so what's going on?
you could create the xml on the remote server (put the ods tagsets statements inside the rsubmit block), and arrange "delivery" of the xml in any of a variety of ways, .
> ods tagsets.excelxp file="%SYSFUNC(PATHNAME(WORK))/Extract.xml" RS=NONE
> style=minimal ;
> proc tabulate data = miu;
> class stat_typ umony;
> table stat_typ, umony*(N*F=5.)
> /rts =5 nocontinued;
> ods _all_ close;
PROC DOWNLOAD INFILE= "%SYSFUNC(PATHNAME(WORK))/Extract.xml"
OUTFILE= 'y:\Extract.xml' ;
UNFORTUNATELY, handling remote servers on z/OS is less easy to equate to remote server handling for unix or windows platforms, so the above is not good enoughif your remote server is on z/OS. (if you don't know the server platorm, check by submitting
rsubmit ; %put &sysscp &sysscpL &sysVLong ; endrsubmit ;
Alternatively, you could use remote library services to create your xml in the local session, like: