i hav 2 logical files(L1,L2) both r derived from one physical
file(P1). how can i use both the logical files in one RPG
program? if yes what i have to d.
Answer Posted / ravikumar895
Hi,
copy those two logical files data into a physical file using CPYF command. Then, use that physical file in RPG program in F-spec...
CPYF FROMFILE(LIBRARY NAME/FILE NAME) TOFILE(LIBRARY NAME/FILE NAMECPY) FROMMBR(MBR NAME) TOMBR(MBR2CPY) MBROPT(*REPLACE) CRTFILE(*YES) FROMRCD(*START) INCREL((*IF field name *EQ 'R') (*AND field number *GT 99999999))
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is difference between bind by copy and bind by reference?
what is data area and how it is used in rpg program ?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
what is *place and *auto keyword in prtf ?plz explain
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
What is ment by record level identifier?
how can I tell when to replace the array?
what was the robotech rpg?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
How to declare the pull button in AS/400..
what is program status data structure?
how do I declare a table or array in rpg iv?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
what do you mean by an input subfile, what are the keywords required?
How to call one program from another program in RPG? please help me with the code