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?
Answer Posted / 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 View All Answers
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How to call one program from another program in RPG? please help me with the code
how do I play {insert rpg system here}?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
How would display prime numbers using CL program?
What is difference between bind by copy and bind by reference?
What is the difference between iter and do?
what is a rpg?
how do I declare a minor?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
are there any useful c runtime apis that I can call from rpg iv?
how can I tell when to replace the array?
what is the difference between do while and do until?