× 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 also include that line in all SQL programs.

I add one additional option when I need to ignore case when comparing strings.
SRTSEQ=*langidshr


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of x y
Sent: Tuesday, August 3, 2021 12:01 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: SQL Error - which program

I have found this code, before any other executable code, clears up date/time formatting errors:
EXEC SQL
SET OPTION CLOSQLCSR = *ENDMOD,
COMMIT = *NONE,
DATFMT = *ISO,
TIMFMT = *ISO;


On Tue, Aug 3, 2021 at 7:23 AM Tyler, Matt <matt.tyler@xxxxxxxxxxxxxx>
wrote:

Using IBM ACS open SQL Performance Center plugin

Create a plan cache snapshot to see if your job is listed there.
Create a DB monitor for that job name then wait for the job to run again.

-Matt

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Mitch Gallman
Sent: Tuesday, August 3, 2021 8:18 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: SQL Error - which program

I'm seeing an error of SQL0180 "Syntax of date, time, or timestamp
value not valid " in a job log.

The field mentioned is a generic field that we use "Valid_from"; it
doesn't mention the table.
Is there a way that I can determine the RPG program that is calling
this embedded SQL? The only thing shown in the message is QSQRUN2.

Thanks,

Mitch
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinf
o/rpg400-l__;!!O6xM9Yim9Yk!qORVggchDFSzKpJZ7oKVoQjI1IH4ifpP1Ce-jmIP2-S
iBJFLW5y8k1OjyKIvSCwH3_PU$ or email:
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!
O6xM9Yim9Yk!qORVggchDFSzKpJZ7oKVoQjI1IH4ifpP1Ce-jmIP2-SiBJFLW5y8k1OjyK
IvSGiomXi9$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!O6xM9Yim9Y
k!qORVggchDFSzKpJZ7oKVoQjI1IH4ifpP1Ce-jmIP2-SiBJFLW5y8k1OjyKIvSPTD7Ygd
$
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

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.