Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the necessary command needed before OPNQRYF and why?

Answer Posted / abhishek bajpai

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 ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mdt?

1109


what is program status data structure?

2364


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

1000


what is the rpg system?

1257


what is *place and *auto keyword in prtf ?plz explain

3142


how do I preserve and clean the array?

1129


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1862


what is kids-rpg?

1106


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1988


how do I declare a table or array in rpg iv?

1164


what is the use of sflnxtchg?

1239


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1336


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1112


what was the robotech rpg?

1183


What is file identifier where we can use?

1113