What do the queried fields look like?

Are they actual fields or calculated fields?  SB+ defined?



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Steve Long
Sent: Tuesday, June 14, 2011 4:38 PM
To: [email protected]
Subject: [U2] Strange Selection Behavior

Hi All -



I am getting strange results with selections that I am hoping someone
else has encountered and can help me resolve.



We have SB+ running on UV.  I don't have the same issues running on
Unidata.



I have a BASIC program I have written that constructs a select statement
based on the criteria specified in a screen by the user, then executes
the constructed selection statement.  Something like (although the real
one is more complex):



SEL.CMD = 'SELECT CUSTOMER WITH CUST.NUM = "' : CUST.NUM : '" AND WITH
CUST.TYPE = "' : CUST.TYPE : '"'

EXECUTE SEL.CMD CAPTURING OUTPUT



Indexes are built on the dictionaries and are working properly.



When we test the constructed select statement at TCL, the results are
retuned under 2 seconds.  When it executes inside the BASIC program, it
takes approximately 24 seconds to return the same results.



We tried adding a NO.INDEX to the statement, which adds 6 seconds to the
select at TCL but just a couple of seconds within the BASIC program.
Nothing else we have tried has had any effect.



Has anyone encountered this type of behavior?



Thanks,



Steve Long

Spyderweb Technical Services, Inc.

(360) 687-8797 Washington

(503) 406-8797 Oregon

(866) 354-5913 Fax



_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
<html>
<body>
________________________________ Dave Davis Team Lead, R&amp;D P: 614-875-4910 
x108 F: 614-875-4088 E: [email protected] 
[http://www.harriscomputer.com/images/signatures/HarrisSchools.gif] 
[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]
 6110 Enterprise Parkway Grove City, OH 43123 www.harris-schoolsolutions.com 
This message is intended exclusively for the individual or entity to which it 
is addressed. This communication may contain information that is proprietary, 
privileged or confidential
 or otherwise legally exempt from disclosure. 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.
</body>
</html>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to