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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does vldcmdkey means?

821


1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?

409


what are the limitations of cl (compare to rpg) ?

1555


what is the purpose of indicators in rpg?

1099


what is the function of cpyf command?

1017






WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1726


how many files, printer files you can describe in a rpg?

635


what is the command used to invoke rlu ?

1182


what opcode will be used to test the zone of a character field?

1100


What Does Lokup Does In Tables & Arrays?

743


To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

800


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

616


how can a cgi check whether an ifs object is available?

645


how may a cgi control duplicate inputs?

604


what is a physical file?

1014