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...


Can we use OVRDBF command without using of OPNQRYF ?
Or can we use OPNQRYF command without using of OVRDBF
command ?

Answers were Sorted based on User's Feedback



Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of..

Answer / bharat

OVRDBF can be used separately without opnqryf to override
the attributes of file.
Now, OPNQRYF without ovrdbf, is also possible:
opnqryf creates the 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
recoreds in to runtime file and use that file to read in
program.

Is This Answer Correct ?    43 Yes 3 No

Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of..

Answer / vaiv20

Yes it can be used when u want system to point to a
particular File/Member in a library while processing a file
in a high level pgm. Example, suppose u want to use a work
file in QTEMP , although other object of the same file
exist in the current library list. other way to achieve
this is by using Keyword EXTFILE and EXTMBR on the F spec
of that file in RPGLE pgm.
I think OPNQRYF can be used without OVRDBF but that
physical file should have been defined/changed with SHARE
(*YES). This will create a data path for the file to be
shared.

Is This Answer Correct ?    13 Yes 3 No

Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of..

Answer / geo

OPNQRYF FILE((FILENAME))

CPYFRMQRYF FROMOPNID(FILENAME) TOFILE(QTEMP/TEMP) CRTFILE
(*YES)
This will copy the records selected from Open qry file and
put it in to the Temp file in Qtem that is newly created.
One can use the file i.e. QTEMP/TEMP with the records
selectes

Is This Answer Correct ?    1 Yes 3 No

Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of..

Answer / deepak

Hi Bharat,
How to use CPYFRMQRYF can you please provide its coding?

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is full form for dds?

0 Answers   IBM,


what is the use of CPYFRMQRYF?

4 Answers  


How can we update a specific field in RPG?

0 Answers  


Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multimember file in RPG through EXEFILE and EXEMBR and in cl through OVRDBF and MEMBER(3)....But i want to read 3 members by CL Program And RPG/400 program.Please write the coding(Program) for both RPG/400 and CL/400 programs? 2.What are the full forms(stands) of EXEFILE and EXEMBR?

5 Answers   CTS,


what are necessary keywords to code message subfile?

1 Answers   IBM,


What is the purpose of Level Check parameter in a Physical file?

1 Answers  


how can you execute a command from within an rpg program without calling a clp program?

1 Answers   IBM,


If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

0 Answers   IBM,


what opcode will be used to test the zone of a character field?

1 Answers   IBM,


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

1 Answers   IBM,


any one have give AS400 study material? pls pass it to gopalsai789@gmail.com

0 Answers   IBM,


what is lokup opcode?

1 Answers   IBM,


Categories