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 / 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 |
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???
please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code
A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
can anybody explain significance of *loval setll with example code????
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?
what are the types of identifers
how can we can we the data decimal error?how can we open such file in support
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...
i would like to know under what circumstance the object will get locked on AS400.
How Chain operation copies the record's data to the input buffer for the program?