What hapens when we use CPYF command to copy a LF? On which
PF will it be dependent???
Answer Posted / jadwiga szczech
The result of CPYF command to copy a LF will be independent
PF which will be keyed the same way as copied LF.
If you have PF named CLIENT and LF named CLIENT1 created
over CLIENT with CLT# key field in Library1.
CPYF FROMFILE(Library1/CLIENT1) TOFILE(Lib2/CLIENT1) MBROPT
(*ADD) CRTFILE(*YES)
will create PF named CLIENT1 keyd by CLT# key field in Lib2.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
how do I preserve and clean the array?
what is the difference between do while and do until?
are there any useful c runtime apis that I can call from rpg iv?
is this a rpg channel?
what is the rpg system?
how do I declare a table or array in rpg iv?
What is the purpose of record level identifier?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
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...?
what is file information data structure?
how can I tell when to replace the array?
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 the necessary keyword needed to scroll subfile records?
How to write record if no field or the field are different in physical file in rpgle ?