how to update physical files using normal logical file

Answers were Sorted based on User's Feedback



how to update physical files using normal logical file..

Answer / anand

in the above code file should be in update mode or file
addition mode

Is This Answer Correct ?    8 Yes 0 No

how to update physical files using normal logical file..

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

how to update physical files using normal logical file..

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

how to update physical files using normal logical file..

Answer / abhishek agrawal

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

Post New Answer

More DB400 Interview Questions

A pf containing 100 records... my query is how to display from 11th record in the pf?

3 Answers  


what is exception and how many types of exception

1 Answers   Active Brains,


Hi, Please give the answer to this question? I have Phisical file with 100 records,there is no any duplicate records in this pf.Based on this pf one Logical file i have used.But this lf is viewing only 80 records only of that pf?What is the reason for this?Please give me answer?

4 Answers   IBM,


How to know the particular record in pf with out reading?

0 Answers  


can any one pls tell me some differences between a LF and command OPNQRYF?

3 Answers   Accenture, Cognizant, eFunds,






What is open data path? And what is the difference between access path and open data path?

1 Answers  


how to update physical file using logucal file with example

1 Answers   Wipro,


hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that

9 Answers   Encore,


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...

6 Answers   ABC, TCS,


How we can't update join logical files?

10 Answers  


What is the use of member in pf?

0 Answers  


how to know total no of records in pf with out using sql??????

3 Answers  


Categories