How to update only a field of a PF in an RPG program.
I don't want to update the record, only one field.

Answer Posted / kapil kumar

Use CHAIN for that record
then EVAL fld='value'
UPDATE pfrecfmt

Is This Answer Correct ?    1 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write record if no field or the field are different in physical file in rpgle ?

471


what is the procedure and explain about real time scenario.

1468


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

712


how do I play {insert rpg system here}?

574


What is ment by record level identifier?

645






Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

501


how do I declare a minor?

707


how can you display specific subfile page on the screen in unequal subfile?

667


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1007


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2181


How to handle duplicate error handling in RPG?

1664


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2264


What is the difference between copybooks and subprocedures in as400?

799


How many program bind in one module....

2107


are there any useful c runtime apis that I can call from rpg iv?

687