×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Just realize that doing so likely means existing indexes won't be used for
the SQL statement.

You'd need to create the index while SRTSEQ=*langidshr is in effect for it
to be used with that option on a query.


Charles


On Tue, Aug 3, 2021 at 10:08 AM Hudson, Ron <RonHudson@xxxxxxxxx> wrote:

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

Replies:

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

This mailing list archive is Copyright 1997-2026 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.