Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1820


what is the use of sflnxtchg?

1205


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

5059


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1298


what is the necessary keyword needed to scroll subfile records?

1100


what is an online rpg?

1196


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3768


what is the rpg system?

1214


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1123


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2459


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1077


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

6362


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1948


How Chain operation copies the record's data to the input buffer for the program?

1535


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.

2731