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

Apart from opening of a file do we have any other use of USROPN?

1153


what keyword must be used with protect keyword ?

1434


what is the command used to invoke rlu ?

1510


what is the use of dspatr(mdt) keyword?

1822


what do we can do with the embedded sql statements?

800


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1331


what is the function of rlu ?

1282


what is a program described file in rpg?

1366


what is a primary file?

1341


explain the difference between defining subfile and message-subfile?

1428


how to read database records without locking them?

1487


Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?

2042


Can we debug the MSGW JOBS?

1106


how do handle file exception/error?

856


when do you use f-spec. Continuation line ?

1296