An rpg program is processing an openquery file.The file is
declared in update mode in F spec.Can we update this file?
Please explain?

Answers were Sorted based on User's Feedback



An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can w..

Answer / anjali thakare

Yes it is possible if ur query is created accordingly like

In QPNQRYF command, when u crete it specify this following
open option as *upd if it is not then ur not update
it.
Open options . . . . . . . . . . *INP *ALL,
*INP, *OUT, *UPD, *DLT

Is This Answer Correct ?    15 Yes 1 No

An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can w..

Answer / vikas

Yes we can update file.

Is This Answer Correct ?    2 Yes 1 No

An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can w..

Answer / danny

No..Because we are going to receive CPF5149 error when trying to do so.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

What is the difference between /copy and /include in RPGLE?

1 Answers  


How can we find from which source the program has been compiled for a given RPGLE program object?

5 Answers  


What is Data Area?

1 Answers  


How can we create subsystem in as400?

1 Answers  


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

0 Answers  


which cl command can be used at program execution to redirect the file named in an rpg program?

0 Answers   IBM,


what is the use of CPYFRMQRYF?

4 Answers  


What is binder language ?

0 Answers  


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

1 Answers   IBM,


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1 Answers   IBM,


what is primarykey?what is difference between primary key and forign key?

1 Answers  


What is the default access path of a file?

0 Answers  


Categories