If you have indexes built on these fields try using selectindex.

Jerry

On 6/14/2011 3:38 PM, Steve Long wrote:
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
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to