You can use one variable name.  I use vI for every one.  You can even leave 
them out entirely (they're optional in the syntax diagram) except that you will 
then receive a WARNING time you have read a record that has one or more NULL 
values in it.

Indicator variables were introduced as part of an SQL variant called Embedded 
SQL, intended to allow you to use SQL directly from languages such as C that 
cannot represent NULL values.  They have no real value in a language like 
R:Base in which you can check the resulting variable using IS NULL directly.  I 
only use them to avoid the needless warning message.
--
Larry


________________________________
 From: "[email protected]" <[email protected]>
To: RBASE-L Mailing List <[email protected]> 
Sent: Wednesday, August 29, 2012 4:03 PM
Subject: [RBASE-L] - INDICATOR variables
 

When using a SELECT . . .  INTO  .
. . .INDICATOR statement can just one generic INDICATOR variable be used
for each value or should there be a unique INDICATOR variable for each
value? 

For example is it OK to do this:  SELECT custname,custcity,custzipINTO 
vnameINDICATOR vind,vcityINDICATOR vind,vzipINDICATOR vind
. . . . 

Or is this the best way:  SELECT custname,custcity,custzipINTO vnameINDICATOR 
vnameind, vcityINDICATOR vcityind,vzipINDICATOR vzipind
. . . . 

I'm guessing unique may be better but
can a generic one be used? 

Any and all guidance is greatly appreciated. 

Thanks. 

Mike Ramsour 
AK Steel Coshocton Works 
Quality Department 
Phone:  740-829-4340 
Cell:  740-502-1659 
Confidentiality Notice
This message is intended exclusively for the individual or
entity to which it is addressed and may contain privileged,
proprietary, or otherwise private information.  
If you are not the named addressee, you are not authorized
to read, print, retain, copy or disseminate this message or
any part of it.  If you have received this message in error,
please notify the sender immediately by e-mail and delete
all copies of the message. 

Reply via email to