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

how to get the cursor position?

0 Answers   IBM,


1.what is mean by compilation and runtime error? 2.How to define ALFA numeric value in pf? 3.what command is used to define a data in cl pgm? 4.What type of command is used in page at a time subfile and load all subfile?

2 Answers  


What is the difference between keys of a Physical file and the keys of a logical file?

2 Answers   Bank Of America, BoA,


What is the use of Data Queues?

1 Answers  


Pgm A is invoked through HTTP. It is in Activtion group QILE. Pgm A calls Pgm B and Pgm C. Pgm B is in activation group TEMPACTGRP. Pgm A ends in error. Pgm A is called again. But it gives an error that TEMPACTGRP still exists and files are present in QTEMP. What is the cause and how will u fix?

1 Answers  






using dfu, user will be able to ___________ from physical file?

0 Answers   IBM,


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

0 Answers   IBM,


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx

2 Answers  


What are the functions of Remote Job Entry (RJE) ?

1 Answers  


what are the types of errors available in rpg IV or 400.Like decimal data error,sessional error or device error etc...means important error occurings,ie to find out suddenly???pls give answ if u know?Pls give the answer 1,,,,,,,to 12.........ie how it will happened like...for eg if a file is not closiing ,,,like this error is happened... if sufficient data is not in a pf to write in a display file. or sfldsp is not "on"......sessional or device error occured...like this give details all 1 to 12 errors (syam..)....give details PLsssssssssss?

1 Answers   CTS,


What is a query can be displayed without saving it?

0 Answers   IBM,


What is the symbol used for shifting fields in SDA?

1 Answers  


Categories