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
What is difference between bind by copy and bind by reference?
What is the difference between iter and do?
what is program status data structure?
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?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
how do I play {insert rpg system here}?
what do you mean by an input subfile, what are the keywords required?
what is the procedure and explain about real time scenario.
what is data area and how it is used in rpg program ?
What are the types of identifiers?
are there any useful c runtime apis that I can call from rpg iv?
what are the key words you must use when using a subfile?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
What is the difference between copybooks and subprocedures in as400?