The SAS Output Delivery System and reporting techniques

ODS HTML create PDS Member

Frequent Contributor
Posts: 78

ODS HTML create PDS Member

I have a following Macro which I am calling with in another Macro to write down observations via PROC Tabulate in to the PDS member however what happening is even if we don't have any observation to write down in the proc tabulate it's creating a ***Blank*** member in the PDS dataset ...

Does anybody know way to supress even member creation in the PDS dataset if there's no observacation written via Proc tabulate ????

%macro htmlout(objtype=,filename=,odsmem=,title=) ;     

ods trace on;                                           

ods noproctitle;                                        

ods listing close ;                                     

ods &Objtype                                            







%mend htmlout ;

Valued Guide
Posts: 3,208

Re: ODS HTML create PDS Member

There are many that have asked for giving information there is nothing to print. The reason is you know the program has run (that is also some information) but no results are output.

Do you not want to run anyting you could test there are non-zero observations (nobs) and than not run that code. Remember to delete all previous run results first.     

---->-- ja karman --<-----
Frequent Contributor
Posts: 78

Re: ODS HTML create PDS Member

I found the answer did check for the Observation and put the PROC Tabulate within IF DO loop to check if OBS > 0 if so only then execute else exit....that worked...

Ask a Question
Discussion stats
  • 2 replies
  • 2 in conversation