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

What is the default access path of a file?

585


what is the function of crtdupobj command?

1155


all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?

2411


define what a data queue is along with a brief example of what it may be used for?

1065


which are the relational operators in rpg?

669






how do you know that records are locked?

1156


how many printer files can be defined in f specs ?

961


how do you specify the number of records to roll in a subfile ?

1239


how to declare a constant variable in the freeformat?

963


What is the as400 called now?

542


what is the maximum number of fields under a record format of physical file?

1000


how may a cgi control duplicate inputs?

599


what is scan and xlate?

1087


what is the version of os/400 that we have?

956


when should I use method get, and when should I use method post in my cgis?

609