|
For the archives: I finally got a result set from both the production file and the test file when I added PARAMETER STYLE GENERAL (the default is PARAMETER STYLE SQL) to the CREATE FUNCTION script. Unfortunately, I don't see a way to set that value on the parameter tab in the iSeries Navigator New External Function window. Guess I'll just have to get used to building the CREATE FUNCTION script myself. Or maybe I could 1) use the window, 2) create the UDF, 3) generate the SQL, 4) change the parameter, 5) delete the UDF, and 6) run the script. Or even better, save a template script that I change as necessary. Thank you everyone. Hope this helps someone save two days + of experimentation! Roger Mackie -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mackie, Roger L. (Precision Press) Sent: Friday, May 06, 2005 8:32 To: Midrange Systems Technical Discussion Subject: RE: UDF problems in STRSQL In my experimentation, CAST does not affect results. I still get the selection error on the production file. On the test file (without DATFMT(*USA) on the field names), I do not get any errors and still do not get the expected result set no matter what the DATFMT is in the STRSQL session. I even tried converting the date to character before casting it back to date with the same results. Thanks for the suggestion, Roger Mackie -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mackie, Roger L. (Precision Press) Sent: Thursday, May 05, 2005 16:38 To: Midrange Systems Technical Discussion Subject: RE: UDF problems in STRSQL Interesting thought. I don't know that much about CAST and didn't find a way to use it to specify a date format attribute in the manuals, but I was only skimming. Tomorrow is another day... Thanks, Roger Mackie -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx Sent: Thursday, May 05, 2005 15:53 To: Midrange Systems Technical Discussion Subject: Re: UDF problems in STRSQL Any way to SELECT * FROM MYFILE WHERE INVYR = 2005 and INVNO = 6557 and CLCDAYSHPLAT(cast(ODDDAT as ... Rob Berendt <snip> -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.