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



Here's a similar situation, perhaps it's the same.

Turned out the library list in the interactive job was different in the 
batch job.
Setup the library list in the interactive job to be an exact match.
Funny thing.  WRKOBJ does NOT show the object higher in the library list 
that they are not authorized to.  All they see is the object that is 
duplicated in another library lower in the library list.  Doing a DSPOBJD 
on that object, *LIBL, gave that same error.  So, when they thought they 
were accessing one object, they were actually attempting to access 
another.
Anything in the job log say what library the object was in?

Rob Berendt
-- 
"All creatures will make merry... under pain of death."
-Ming the Merciless (Flash Gordon)




"Malchow, Grizzly" <GMalchow@xxxxxxxxxxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
12/18/2003 01:59 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Fax to

Subject
Authority issue with accessing a file






I have a CL program that calls a prompt program and then submits a print
program. I have a file that is used in both programs. I'll call it
FILEA. FILEA is used in the prompt program to check that the user
entered valid selection criteria. The print program uses the file to
print values that match what was entered in the prompt program. The
problem I'm running into is odd to me. When the print program is
submitted to batch I receive the following error: 

Error message CPF4104 appeared during OPEN for file FILEA

The job log states the following:

User not authorized to operation on file FILEA in *LIBL, member, device,
or program device *N. 

 

I changed the CL program to run the print program interactively and I
didn't receive any errors. The user profile using the file has *ALL
object authority, but it is adopted when they sign into our ERP package.
I'm guessing that the authority isn't being included when the job is
submitted, but I'm not sure how to verify that. 

Has anyone encountered this problem before? 

 

 

 

 

_______________________________________________
This is the RPG programming on the AS400 / 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 ...

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.