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

Answer Posted / anupam

Use of RUNSQLSTM helps in updating the physical file within
a CL program.

Syntax:

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

SQLPGM should contain

UPDATE PF set DATA='Value' where DATA'='Value1' and it will
update the PF

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it there an easy way to determine if an html section is available to issue a wrtsection upon?

561


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

949


is it possible to create a physical file without dds?

1185


maximum number of subfiles that can defined in a rpg program for one display file is?

1024


Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP

1925






how you get the relative record in a subfile in which cursor is located?

611


how to run other job when one job is active?

599


what is rpg fixed logic cycle?

656


what is the maximum number of record formats in dspf?

987


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

1002


how can I control from my cgis the cache of a remote browser?

670


how you will find an error which is not in the first page of the subfile without using rolldown key?

551


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

2897


What is %CHECK?

841


what is the clp command to access a query/400?

1355