× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Well.  *duh* Now isn't that obvious.  Thank you Charles; I'd have never seen that solution.  That saved me a LOT of wasted time.


On 12/4/2018 4:30 PM, Charles Wilt wrote:
set options is a compile time statement...

I simply put them in a procedure by themselves at the top of the module...


//-----------------------------------------------------------------------
// SetSqlOptions
//
// The SQL SET OPTION statement is a compile time statement
// It must be physically the first SQL statement the compiler sees
// during compilation. the options are in effect for the entire
module
//
// Thus this dummy procedure that isn't ever called.

//-----------------------------------------------------------------------
dcl-proc SetSqlOptions;

exec sql set option naming =*sys, commit= *none, usrprf= *owner,
dynusrprf= *owner,datfmt= *iso, timfmt = *iso,
closqlcsr= *endactgrp, alwblk = *allread,
alwcpydta = *optimize, dlyprp = *yes;
return;
end-proc;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.