All of the status codes are listed in the COBOL docs - see here: https://www.ibm.com/docs/en/i/7.3?topic=values-file-status-key-meanings <https://www.ibm.com/docs/en/i/7.3?topic=values-file-status-key-meanings>

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
(todo-as400.blogspot.com)).



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



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



Thanks,



FB



Sent from [2]Mail for Windows



References

Visible links
1. https://todo-as400.blogspot.com/2012/05/creacion-de-un-subfile-cobol.html
2. https://go.microsoft.com/fwlink/?LinkId=550986
--
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,
visit: https://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/cobol400-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-2021 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.