All of the status codes are listed in the COBOL docs - see here: <>

30 means a permanent error - lots of possibilities for the cause.

Check the job log for the underlying error message - that will tell you exactly what was wrong.

Jon Paris

On Sep 9, 2021, at 12:31 PM, Francisco Bosisio <fjbosisio@xxxxxxxxx> wrote:

Hello all,

I’ve been working for a long time on mainframes under z/OS and z/VSE
operating systems. Now, I’m exploring the midrange side while starting to
work on a iSeries (formerly AS-400) computer under OS/400 coding my firsts
COBOL 400 programs.

I have a problem when running a new program that reads a DATABASE file
which contains an agenda and shows it on a screen using a subfile. I took
the example from a blog ([1]AS400: Creación de un Subfile - Cobol

The problem I have is that when I OPEN TAGENDA the open fails with File
Status = 30.

I looked for the explanation of this error but it isn’t clear enough to

Could any of you give me any guidance about how to fix it?



Sent from [2]Mail for Windows


Visible links
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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