-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file400.error: File initialization failed. #1
Comments
It may be an authority issue.You could try to change the owner of the srvpgm be a user with full authority to the database and set usrprf to *owner, chgsrvpgm python3/reclevacc usrprf(*owner) |
I just tried those things and am still getting the same error. Could the system CCSID be an issue at all? We are one of those old-school shops that uses 65535. |
I'm not sure, we don't use 65535. |
That makes sense. As far as I can tell, our jobs have DFTCCSID=37, so it doesn't seem like the problem is related to text encoding. |
Searching through the code in GitHub (which GH search can be hit or miss), there's only one point which returns that exact message: Lines 2589 to 2593 in 02aed76
This calls call_fileGetStruct which calls the ILE fileGetStruct function. Of course that only happens if call_fileInit returns 0 and fileGetStruct doesn't seem like it returns anything other than 0, so it is likely in fileInit so it looks like the problem is from one of the calls to QDBRTVFD. |
Indeed. Through experimentation, it seemed that I didn't have (much) problem with files that only have a smallish number of fields. The file that was giving me problems has over 300 fields. I found this thread talking about a similar issue. If it's true that the FILD0200 format can return over 400 bytes per field, then maybe it's exceeding the allocated buffer (100000 bytes)? |
Getting this error.. any thoughts? allocated buffer should not be exceeding the max. |
I realize this isn't very much information to go on, but I am getting this error no matter what I try.
When I restored the SAVF, I did get some notice about QDFTOWN. I tried changing the *PUBLIC authority to *ALL for both the PYTHON3 library and the RECLEVACC service program, which didn't seem to make a difference.
I am happy to provide more details if you tell me what to look for.
The text was updated successfully, but these errors were encountered: