Looks like OPNQRYF is not threadsafe, so you should not be using that
command in a threaded environment.
You can see which commands are threadsafe by doing DSPCMD and looking at the
Threadsafe keyword.
Threadsafe keyword is defined as *COND for OVRDBF, which means conditional.

I recommend you go to the following site:


and type the commands you are using and once you find them, search on
"thread".  You'll see if they're threadsafe and under what conditions.
For example, for OVRDBF there are these restrictions:


1. In a multithreaded job, this command may only be issued from the initial
2. In a multithreaded job, only overrides scoped to the job or an ILE
activation group will affect opens performed in a secondary thread.


-----Original Message-----
 Subject: [C400-L] FILTER ON FILE

I did some simple C programs that use OVRDBF and OPNQRYF to do a Filter
at a PF.
Now I'm trying to do the same but in a multithreaded environment. 
My problem is OVRDBF don't work at that environment, how can I use
Roberto dos Reis Pereira

This thread ...


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

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