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

what is rpg ?

939


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

669


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1004


how to get the cursor position?

716


when do you explicitly open files and close files in an rpg program?

1180






how many types of display are available on as/400 for user interaction?

634


what keyword must be used with protect keyword ?

1120


why is as/400 called object oriented machine?

949


what is sflrolval?

648


what is externally described file ?

935


define data structure?

1022


what are dds required for subfile?

582


what is the length of a variable in rpg?

965


what are the uses of factor1, factor2 and result field for the rpg operation code parm?

584


what is the purpose of overrides?

1019