Which command we can use to update a physical file using c.l pgm?

Answer Posted / sumit

Everyone is saying we cannot update pf using Cl...But please
try once using RUNSQLSTM before marking 'NO' to any answers.
As we can update a PF using CL.

RUNSQLSTM uses source file where source member is present.
And this source member contain UPDATE SQL, OR DELETE SQL, OR
INSERT SQL.

RUNSQLSTM SRCFILE(LIB/QSRCPF)SRCMBR(SQLPGM)COMMIT(*NONE)

Once this statement run in CL then PF will get updated,
deleted or inserted with the new record.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

2068


what does opcode post do ?

1067


in which specification the report layout can be defined?

965


what is a logical file?

1028


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

733






can you specify a display file to be used in the following modes input,output, or combined modes ?

920


in conjunction with what other keyword must ovrdta and ovrata be used?

901


which are the query selection criteria, which can be given in a query?

659


define the purpose of the iter operation?

1005


can a join logical file be updated?

578


What Is The Purpose Of The "n" In The Following Calculation Specification?

661


what is a primary file?

1031


what are the different opcodes available in rpg for database access ?

797


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

693


What is binder language ?

1357