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



Buck pointed-out my error - 'om01 should be 'om01' - thanks Buck - and a re-run returns:
SQL5016 Qualified object name DISPLAY_JOURNAL not valid.<
Which, to me, confirms no TR7 . . . and so the Sun sets here in Mudville . . .


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Thursday, July 16, 2015 10:23 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Unexpected SQLSTATE returned from embedded SQL

Thanks Vern!

Display Licensed Program shows: V7R1M0 for most all LP

I'm pretty sure our production lpar is >not< up to TR7

The following Statement, in STRSQL returns:
"Token DL was not valid. Valid tokens: ) "
But I'm not seeing my error . . .

the following Statement:
SELECT journal_code, journal_entry_type, object, object_type, X.*
FROM TABLE (qsys2.Display_Journal('basjrns1','basjrn','','',
CAST(null AS TIMESTAMP),CAST(null AS DECIMAL(21,0)),'','',
'basdbs1','om01','*FILE','om01,'','','LCP950R')) AS x
WHERE journal_entry_type in ('DL', 'PT','PX', 'UP')
AND "CURRENT_USER" > ' '

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Thursday, July 16, 2015 6:40 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Unexpected SQLSTATE returned from embedded SQL

Two other ways to see journal entries are available, as well

DISPLAY_JOURNAL() UDTF

Journal viewer in the new web-based Navigator

More information at

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/DB2%20for%20i%20TR7%20timed%20enhancements

Look for the links related to journals

HTH
Vern

On 7/15/2015 11:18 PM, D*B wrote:
... do you use commit and if, what isolation level do you use forthis programm?.
If the table is journaled, using the journal to analyse the problem would be the best option. The effort would be minimal to direct theentries to an outfile, restructure the entdta (there is an utility ANZJRN at my – sorry german – open source site) and using interactive SQL to see what happened.

Dieter

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

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


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.