1.Are there any errors in the following statement?If so
then list them.DTAARA is a data area having a field EMP #
and EMPNO is a
field in the file EMPPF.Which has one record.
READ EMPPF
IF %FOUND(EMPPF)
IN DTAARA
EVAL EMP#=EMPNO
OUT DTAARA
ENDIF
Answer Posted / amitava
First of all, %found() function is not set after the READ
operation. If not %eof() can be used instead.
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
What is the difference between iter and do?
What is ment by record level identifier?
what is the procedure and explain about real time scenario.
How Chain operation copies the record's data to the input buffer for the program?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
how can you display specific subfile page on the screen in unequal subfile?
how does the rpg element work?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what do you mean by an input subfile, what are the keywords required?
what is the difference between do while and do until?
When it is desirable to describe files Internally?
how do I declare a minor?