ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM AS400  >>  IBM AS400 AllOther
 
 


 

 
 RPG400 interview questions  RPG400 Interview Questions
 COBOL400 interview questions  COBOL400 Interview Questions
 DB400 interview questions  DB400 Interview Questions
 COOLPLEX interview questions  COOLPLEX Interview Questions
 IBM AS400 AllOther interview questions  IBM AS400 AllOther Interview Questions
Question
Can we use OVRDBF command without using of OPNQRYF ?
Or can we use OPNQRYF command without using of OVRDBF 
command ?
 Question Submitted By :: Manish Dwivedi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of OVRDBF command ?
Answer
# 1
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 ?    1 Yes 0 No
Vaiv20
 
  Re: Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of OVRDBF command ?
Answer
# 2
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 ?    2 Yes 0 No
Bharat
 
 
 

 
 
 
Other IBM AS400 AllOther Interview Questions
 
  Question Asked @ Answers
 
whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example  2
Diff B/w ref and reffld?  1
i want to display the 10000 record in a subfile by using loadall , can we do it? CybAge5
How do I release jobs in queue and change a job destination to a different printer. I know wrkjobq but I have not worked with As/400 for a while,so_can someone help me?  2
how can i convert hexadecimal value to packed value? CGI1
1) Suppose we call a pgm from CL, how come AS400 system knows whether the called pgm is to be interactive one or batch one? 2)How many members can exist in a PF?  4
how can i get the cursor position in display screen to to display my window?  2
1) Can we declare a Display file in CL? 2) How many no. of files can be declared in a CL? 3) What is Non-Join Logical file and its importance?  2
How we can delete all the Logical File of a Physical file in one instance ? IBM4
A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Please give me the answer for this?  2
is it possible to create a join logical file using two join logical files ? give exact reason for your answer Ocwen3
What are Triggers? Ordain-Solutions8
what is the purpose of DMPCLPGM IN CL? IBM2
What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error  2
write the SQL statement to retrieve the 2nd Highest salary ammount(File Name="EMPLOY",Field Name="SALARY")  1
Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?And please tell me what is the difference between SCAN AND CHECK opcodes?can any body tell me in real time senario?with example?  2
how to see all source files in a particular library? ex:xyz is a library name a,b,and c..... are source files how to see?  5
Good morning my experts.Im kuppi.im working as a software trainee on AS/400 technology.i have also joined with ibmi5 team.im trying to convert date with cl/400 coding.I have taken 2 parameters(like date and date types). A. If suppose date type is j,Now i want to convert date to *MDY format B. if date type is M,now i want to convert date to *JUL format C. sending a Program message with the value of converted date.  1
How to position the cursor on a display file at a desired location. Four-soft4
What is the difference between a Physical File & a Logical? ACS13
 
For more IBM AS400 AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com