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...


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?



Hi Viewers can any body explain me how to update and ahange the already existed data in physical fi..

Answer / dx

first read all records from physical file and move to subfile
then read change records from subfile format by opcode READC
in loop it will work

eg- readc sfl 56
*in56 downe *on
move dspfile physical file
updat sfl
enddo

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More RPG400 Interview Questions

how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

2 Answers   iGate,


In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


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?

1 Answers  


steps for debugging two rpg programs????

4 Answers  


how do you use commitment control in rpg?

0 Answers   IBM,


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?

1 Answers   CSC,


check existence of one record without using chain or read?

1 Answers   IBM,


How to handle duplicate error handling in RPG?

0 Answers  


Can an indexed file be accessed in arrival sequence in RPG?

3 Answers  


How many program bind in one module....

0 Answers  


Categories