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



The SQL is an ACS sql to get the journal entries.

I've done some testing on development and it looks like something in the
process is looking for *OBJEXIST authority to the journal. I don't
understand why since DSPJRN works fine.

I had her try this query from ACS & from STRSQL:

select entry_timestamp, sequence_number, journal_entry_type, program_name,
program_library, job_name, job_user, job_number, remote_address
FROM table(Display_Journal('OEXDVJRN','AAJ001OEX','','',CAST(null as
TIMESTAMP),CAST(null as DECIMAL(21,0)),'','','','','','','','','')) as x

From ACS she gets "Journal not found". From the green screen it works if
she has *OBJEXIST but returns a not-authorized error if she does not.

It appears to not be an ACS issue but something with the QDBSSUDF2 program.

We are still only on 7.1.


Gord




On Thu, Nov 9, 2017 at 10:00 AM, Bdietz400 <bdietz400@xxxxxxxxx> wrote:

Can they run that same SQL from the (shudder) green screen STRSQL?

--
Bryan Dietz

On Nov 9, 2017, at 7:57 AM, Gord Hutchinson <gordm1@xxxxxxxxxxxxxxx>
wrote:

Is anyone familiar with the object authorities needed to view the journal
entry details through ACS? We're on ACS version 1.1.7.1 Build 7290.

Our developers are able to do DSPJRN from the green screen but when they
try to view it through ACS they get an SQL exception window.

SQL State: 58004
Vendor Code: -443

Message: {SQL0443] Not authorized to object AAJ001OEX in OEXPRJRN
Cause . . . . . : Either a trigger program, external procedure, or
external function detected and returned an error to SQL. If the error
occurred in a trigger program, the trigger was on table QDBSSUDF2 in
schema
QSYS. If the error occurred in an external procedure or function, the
external name is QDBSSUDF2 in schema QSYS. The associated text is Not
authorized to object AAJ001OEX in OEXPRJRN.. If the error occurred in a
trigger program, the associated text is the type of trigger program. If
the error occurred in an external function, the associated text is the
text
of the error message returned from the external function.

​*PUBLIC has *USE authority to the *SRVPGM QSYS/QDBSSUDF2.​

*PUBLIC has *USE authority to the journal library OEXPRJRN and has all
authority to the journal except for *OBJEXIST and *OBJALTER.

They are able to view the journal in the development partition where
*PUBLIC has *CHANGE authority to the journal library and *ALL authority
to
the journal. I'm hesitant to give *ALL authority to the production
journal
and would like to reduce it in development.

Thanks,


Gord

--
Gord Hutchinson
TST Overland Express
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD





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