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 kids-rpg?
how does the rpg element work?
Explain mdt?
When it is desirable to describe files Internally?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how can I tell when to replace the array?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How Chain operation copies the record's data to the input buffer for the program?
what is a rpg?
how do I play {insert rpg system here}?
what is *place and *auto keyword in prtf ?plz explain
can I touch the array during treatments?
what is the rpg system?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?