× 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.



I mean that I am running an SQL script, apparently in the part that is ACS., not as a part of the SQLRPGLE source.

I use the ACS from RDi and haven't started up ACS in quite a while because it's conveniently in there. Why IBM included it and didn't make the menu options dialog and work the same is a bit mind messing, but it is what it is. Or better yet, why not an "ACS/SQL" perspective just for working with SQL scripts that mimics what's on ACS/SQL.
<whine>.




-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jim Diephuis
Sent: Thursday, December 10, 2020 11:37 AM
To: Rational Developer for IBM i <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Date Format in SQL

When you say 'Run SQL Scripts' what do you mean? If you are pre-compiling SQL you can specify the date format on the CRTSQLRPGI command. When you say 'run SQL Scripts' it implies to me you started the 'run SQL scripts'
tool that is part of ACS.

Jim Diephuis
IBM i Senior Managing Consultant
Lab Services Power Systems Delivery Practice
phone: 507.253.1248
e-mail: diephuis@xxxxxxxxxx





From: Duane Scott <dscott@xxxxxxxxxxx>
To: Rational Developer for IBM i <wdsci-l@xxxxxxxxxxxxxxxxxx>
Date: 12/10/2020 10:16 AM
Subject: [EXTERNAL] Re: [WDSCI-L] Date Format in SQL
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx>



Ok. Now I'm really lost, and it may be my version difference.

I'm on RDi version: 9.6.0.8 20200403_1723


Jim: you say it's not an RDi Question, but I'm not having this problem in interactive SQL, and I'm not trying this in anything BUT RDi. Again, my lack of knowledge of the inner workings and connectivity of things is hurting me right now, but I don't know any better at this time.

Jim and Robert: Both of you indicate the same steps, but I can't follow either of them as my RDi menu options do not say precisely what you are telling me. Are you saying in "Preferences" under the "Window" drop down menu item I should be able to find "SQL Scripts" or "Run SQL Scripts Connection"? I can find neither there, and I don't find either in the RDi drop down menus. Especially if I go anywhere near what you both indicate, which, bottom line, is the same thing.

I need a better road map. Sorry to appear so dense. I've only been working in RDi for 15 years, give or take a year or two. And almost exclusively for the past 5 years.

-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jim Diephuis
Sent: Thursday, December 10, 2020 10:58 AM
To: Rational Developer for IBM i <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Date Format in SQL

This really isn't an RDi question. In SQL scripts if you click on the Connection tab and select JDBC Configuration - Default you can go to the Format tab and change the date format.

Jim Diephuis
IBM i Senior Managing Consultant
Lab Services Power Systems Delivery Practice
phone: 507.253.1248
e-mail: diephuis@xxxxxxxxxx





From: Duane Scott <dscott@xxxxxxxxxxx>
To: "WDSCI-L@xxxxxxxxxxxxxxxxxx" <WDSCI-L@xxxxxxxxxxxxxxxxxx>
Date: 12/10/2020 09:48 AM
Subject: [EXTERNAL] [WDSCI-L] Date Format in SQL
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx>



I've done a bit of research and cannot figure out how to change the default date format for queries in Run SQL Scripts using RDI.

I'm used to ISO formats as the default, but somehow it's now set at MM/DD/YY (MDY) and all my queries over a file with a "valid" date comes back with a warning that there's and invalid date if the date field is selected.

We use a date of '9999-01-01' to signify a non-ending enrollment period, which is of course not a valid date for MDY format.

How did it change from ISO to MDY? And how do I change it back?

CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact NALC Health Benefit Plan at 703-729-4677 and delete and destroy the original message and all copies.


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.