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 batch job?
pls anyone explain about compile time array,pre run time array run time array
Can anybody tell why Journalling is compulsary before Commitment Control?
how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible
How we can't update join logical files?
Why we create the Physical File Member?
what is exception and how many types of exception
How to change the batch job to interactive job?
how to update physical file using logucal file with example
There is one string as A B C and wanted to display string as Shri A Shri B Shri C, how we can do this in sql? If we have around 100 values in string like this, each value should be displayed with initials as Shri.
When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?
If we use the file level keywords like LIFO, FIFO, FCFO in a file, can we see the impact of it by doing the run query of the file? if not how can we see the impact of these keywords.