how to update physical files using normal logical file
Answers were Sorted based on User's Feedback
Answer / anand
in the above code file should be in update mode or file
addition mode
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / keshar jain
HI,
To Update physical file in RPG use opcode UPDATE.
example
FLF1 IF E k DISK
key1 Setll LF1
READ LF1
UPDATE LF1
Note: Logical file should be simeple logical file. We can't
update physical file with help of Join logical file.
| Is This Answer Correct ? | 9 Yes | 5 No |
Answer / anand
what Keshar Jain is saying is correct but open the logical file in update mode i.e FLF1 UF E k DISK
| Is This Answer Correct ? | 2 Yes | 0 No |
Hi,,Whatever code written above is right...but opcode for
update in rpg is 'updat'...so the right statement will be
Updat flf1
| Is This Answer Correct ? | 0 Yes | 5 No |
What is the interactive job? What is the batch job?
How can i retrieve city while my i have one field address length 60 but i don't know what where is city in this field ?
Why we create the Physical File Member?
How many maximum record format a logical file have?
How we can't update join logical files?
Which keyword is used both in subfile and subfile control record format of a DSPF?
How to update physical file using logical file with example?
how can i know logical file belongs to which physical file without source?
pls anyone explain about compile time array,pre run time array run time array
Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...
A pf containing 100 records... my query is how to display from 11th record in the pf?
Maximum how many fields we can create under a record format of PF?