I'd like to write a datastep that will output a report when it has data,
but will output an empty table with an explanatory statement if the
processing comes up empty.
set spell end=last nobs=sp_obs;
if sp_obs > 0 then do;
* Code to generate html report here *;
* Code to generate html with no data message here *;
This works if there is data in spell. However, it looks like if there
is no data in spell, then sp_obs must not get created and thus the test
fails. Is there some way to force the issue here?
1601 Dry Creek Drive
Longmont, CO 80503
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify Intrado Inc. immediately at
720.494.5800 and destroy all copies of this message and any attachments.