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 error handling concepts in cl
What is FORMAT keyword and its use?
How can we know that a trigger has been added on a PF? and what is the purpose of adding a trigger?
Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?
Can we concatenate fields in physical file? If yes how can we do?
Is Constent can be define as a key field?
How to find the list of source physical files in a library?
How to know the particular record in pf with out reading?
Is it possible to create a logical file whose Physical file is not in same library?
pls anyone explain about compile time array,pre run time array run time array
Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?
How to know the perticular record in pf with out reading?