what is the main use of OPNQRYF ?? in that query why we can
use OVERDBF and in that OVERDBY why should we use SHARE(*YES)

Answers were Sorted based on User's Feedback



what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why sho..

Answer / kapil kumar

It is not mandatory to use OVRDBF(*Yes) before OPNQRYF. You
can still use OPNQRYF without OVRDBF.
But here the pupose of the OPNQRYF won't be solved. Opnqryf
creates its own Open data path and to share the same data
path in a program we use ovrdbf share(*yes), if we do not
use ovrdbf, then program will have its own ODP, so it will
read the file from begining on which query has been run. So,
OPNQRYF selected records will have no importance. So, we
need to use CPYFRMQRYF command and put the selected records
in to runtime file and use that file to read in program

Is This Answer Correct ?    19 Yes 0 No

what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why sho..

Answer / swarn

It also depend on how the PF was created initially. At the time of creation of PF,if SHARE parameter is specified as *YES, we do not need to specify OVRDBF Share(*yes).
By default it is *no when we create a PF.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is rpg fixed logic cycle?

0 Answers   IBM,


what is the syntax for plist?

0 Answers   IBM,


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx

2 Answers  


Hi All, Can any one give me a suggestion for below prob One job is in MSGW due to decimal dara error and I find out stmt error and Value in DMUP. but my file has millions of records.So how can i find out on which record the error was occured....?

3 Answers  


which are the member types which seu supports?

0 Answers   IBM,






Q.Suppose one job is running in a batch mode for a long time now i want to kill this batch job. how you achive this?

3 Answers   IBM,


Q. 1.What would be structure of CL PGM. 2. What are the levels of CL PGM. 3.How many files can be defined in new CLLE program?

3 Answers   IBM,


What are the valid data types in Data Queue?

1 Answers  


What is the maximum length of a variable name in CL?

1 Answers  


can error messages as a result of a comp, range or values keyword be overridden?

1 Answers   IBM,


How do you combine two record formats in RLU ?

1 Answers  


Please give me the code for A=A+1 in cl program?

2 Answers  


Categories