SEQONLY(*YES) is usually used when reading a large file and using ablocing factor. The machine will read a large block of records and transfer them to you PAG instead of a record at a time.
The system will automatically change the specication from *YES to *NO if it believes it will be more efficient in it’s processing.. This does not cause a program to crash.
My guess is that you have problems with your data.
Are you trying to write to a file?
Does it have a unique key?
———– CharlieBrown is right, as always.
This shuld be a informational or warning message 00 or 10 level.
and shouldn’t normally stop the processing.
To eliminate this usually harmless message
I suspect that you have an ‘F’ spec for this file
FMyFile O E DISK
I don’t think you can add the key like this
FMyFile O E K DISK
But you could definitely code it like this
FMyFile IF A E K DISK
Of course you need to determine what’s really causing the crash.