MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » November 2006

Re: Summary results in SQL



fixed

Do you have STRSQL?  If so, the only issue you might have is the dot 
versus the slash (V40BPCSF.ITHL15) or (V40BPCSF/ITHL15).  You can change 
this in STRSQL, F13=Services, 1. Change session attributes, Naming 
convention (read the help on that field).
If no STRSQL, you can test this by using iNav.  Drill down into Databases, 
system name, Schemas.  Once you open up schemas, you can select "Run an 
SQL script" from the window at the bottom.
Wait.  I just tried that for you.  You are using variables.  That's a 
little trickier to test in STRSQL or iNav.  You'll have to put values in 
there for testing.  Or you can whip up a little imbedded sql rpgle program 
(providing you have CRTSQLRPGI).  In imbedded sql you have to replace the 
& with a colon.  And, since you'll be retrieving multiple rows, use a 
cursor.  Need some samples?

Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact