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

Hi friends i have i question please reply me asap. what would be coding in DDS and programing part for this condition suppose that i have three fields in the display file(subfile)which has 7 record format. Condition is ''The supplier LOT, ISSUED TO PROD and LINE GRP fields in display file(Subfile) will not be shown if their respective fields are blank/zero in the record formats WIM311FM and Record format WIM311FM. I want coding part in DDS and Programing. Please reply me as soon as posible.

1 Answers   IBM,


I am fresher 2009 passedout.can you pls explain me what is AS400 and where it can be used and how about growth in the position as well as salary, whether it is a programming language or else?

3 Answers  


define the purpose of the iter operation?

1 Answers   IBM,


How to increase 3 days from my current date in RPG Program?

3 Answers   Mind Tree,


how many triggers can be associated with a file?

1 Answers   IBM,


what is lokup opcode?

1 Answers   IBM,


What is the purpose of STRCMTCTL command?

1 Answers  


what is the maximum number of subfiles that can specified in a display file ?

1 Answers   IBM,


What is the purpose of the "N" in the following calculation specification? C KEY CHAIN FILE N 99

1 Answers  


What the difference between Source Physical File and Physical File?

1 Answers  


What is the use purpose of CRTCMD?

1 Answers  


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

1 Answers   IBM,


Categories