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

Answer Posted / madhusudhan

As mentioned above by Rajeev and Sumit, both the commands
will work. There is one more which i tried and it worked.

You can use the below way

RUNSQL STMT('Update LIB/File Set Field = "1" where Field
="2" ')
I have tried all the three ways and after working i am
posting it here.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is externally described file ?

935


In Which Specs Arrays, Tables & Constants Are Defined?

701


what is message file?

596


how do you read data area in an rpg program?

1107


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

1780






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

1172


what is the use of dspatr(mdt) keyword?

1441


How Many Specs Are There In Rpg & Which Are They?

680


how may a cgi control duplicate inputs?

597


how to validate input values in display file ?

665


Can we debug the MSGW JOBS?

927


how many specifications are there in rpg/400? What are they?

1087


what does defn do?

608


What is diff between EVAL & MOVE?

968


how will you search an array?

646