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 / abhishek
Sorry forgot to put * before data area.
READ EMPPF
IF %FOUND(EMPPF)
*LOCK IN *DTAARA
EVAL EMP#=EMPNO
OUT *DTAARA
ENDIF
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
what are the key words you must use when using a subfile?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How can we know running job is batch or interactive?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
What is a record lock error?
what do you mean by an input subfile, what are the keywords required?
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 an online rpg?
can you debug ile rpg program using isdb?
How can we override a file during runtime in rpg?
what is the difference between do while and do until?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
Interviewer asked me write down DDS for load all subfile .can anybody write dds