LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 22 Sep 2006 14:34:25 -0600
Reply-To:     "Barz, Ken" <Ken.Barz@INTRADO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Barz, Ken" <Ken.Barz@INTRADO.COM>
Subject:      Re: Checking N on the fly
Content-Type: text/plain; charset="us-ascii"

Never mind, I found it.

________________________________

From: Barz, Ken Sent: Friday, September 22, 2006 2:10 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Checking N on the fly

In a data _null_ step I'm checking for the existence of a couple of data sets in order to populate a dynamic menu later, as follows:

data _null_;

call symput('dt',today());

call symput('session',"'" || "&_sessionid" || "'");

if (exist("sgdata.user_graph_privileges") and

exist("sgdata.graphs"))then call symput('graph','Y');

else call symput('graph','N');

run;

If the datasets exist, is there also some way to check whether they have any data (e.g. non-empty) within the same IF statement?

Thanks

Ken Barz

Software Engineer

Intrado Metrics

Intrado Inc.

1601 Dry Creek Drive

Longmont, CO 80503

direct: 720.494.5868

pager: 303-581-7667

fax: 720.494.6600

email: ken.barz@intrado.com

Intrado.(r)

www.intrado.com <file:///C:\Documents%20and%20Settings\kbarz\Application%20Data\Microsof t\Signatures\www.intrado.com>

ATTENTION:

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.


Back to: Top of message | Previous page | Main SAS-L page