CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?

Answer Posted / sumit gupta

Hi Suma..your question is wrong...OPNQRYF is used to select
some records from a physical file which is overide or
simple 1 file(without OVRDBF).
We cannot insert field into physical file throgh OPNQRYF.

But yes you can change the format of field as SAID BY
MANISH and then bys using CPYFRMQRYF...you can write the
selected record into physical file.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a query can be run in which mode?

868


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1745


what is the function of rlu ?

997


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1113


is there any way to dynamically merge other html scripts into a given html?

607






How to reverse the string in rpg

1216


What is the draw back of Procedures? why we are going to Modules?

1234


how you will find an error which is not in the first page of the subfile without using rolldown key?

567


How to reverse a string using RPG?

721


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

2912


what is full form for dds?

754


define a shared access path?

1007


what are the three line types in rlu ?

1495


what do we can do with the embedded sql statements?

591


what key word is used when screen is re-display?

657