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 (March 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 15 Mar 2002 12:15:48 -0500
Reply-To:   "David L. Ward" <dward@SASHELP.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "David L. Ward" <dward@SASHELP.COM>
Subject:   Re: Model SCL Labelled Sections
Comments:   To: Deborah Testa <dtesta@SEVENOFNINESYSTEMS.COM>
In-Reply-To:   <a6t54o$kgo$1@slb5.atl.mindspring.net>
Content-Type:   text/plain; charset="iso-8859-1"

Deborah,

You can check the name property of the object i.e.

Var1: Var2: Put _self_.name; return;

HTH David Ward

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Deborah Testa Sent: Friday, March 15, 2002 10:46 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Model SCL Labelled Sections

Hello,

I'm trying to find a way to make repetitive model SCL code less repetitive. I have the same error-checking code (checking for missing values and reporting them to the user) for several variables. The model SCL looks something like this:

Var1: _self_._errorOffColumn('Var1'); return;

Var2: _self_._errorOffColumn('Var2'); return;

Some sections get a little more complicated, so I'd like to be able to use a structure like this:

Var1: Var2: SCL code here; return;

Is there a way to know whether Var1 or Var2 caused the code to execute? I can see the potential for saving myself a lot of coding time, but I'm not sure how to implement it.

Thanks,

Deborah


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