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
what is data area and how it is used in rpg program ?
what is the use of sflnxtchg?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How to declare the pull button in AS/400..
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
what are the key words you must use when using a subfile?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
can you debug ile rpg program using isdb?
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.
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?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
What is the difference between copybooks and subprocedures in as400?
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
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
how can I tell when to replace the array?