What hapens when we use CPYF command to copy a LF? On which
PF will it be dependent???

Answers were Sorted based on User's Feedback



What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / venki

even we use LF copy to copy the file only PF will be created
and but not the LF so it will not dependent on the any other PF

Is This Answer Correct ?    21 Yes 0 No

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / susheel singh

That is true
"even we use LF copy to copy the file only PF will be
created
and but not the LF so it will not dependent on the any
other PF
"

Is This Answer Correct ?    6 Yes 1 No

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / 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

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / sivaprasad

whn u do cpy lf file it depend on the pf file.
ofcourse if u want cpy in to another src file it need the pf
file of tht corresponding lf.

Is This Answer Correct ?    0 Yes 0 No

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / pushyami t

if we copy logical file using CPYF command then if we see
the new file description using DSPFD command then we
observe like "Type of file " as Physical file.

if we copy using CRTDUPOBJ command then if we see
desciption of new object then it showing "Tpe of file" as
Logical file itself.

Therefore if use CPYF command it is created as PF .so there
is no dependent on any other PF.

Is This Answer Correct ?    0 Yes 0 No

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / satish goberu

It 'll create PF object only...! No LF ll be created
So, No chance to PF, to depend on any other file...!

Is This Answer Correct ?    0 Yes 0 No

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???..

Answer / uday

we cant copy depedent lf to pf

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?

6 Answers   Virtusa,


parameters cannot be passed in which one??

2 Answers   CTS,


what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,






1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?

14 Answers   HCL,


Why Rpg/400 is Famous?

2 Answers   IBM,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


what is a rpg?

0 Answers   IBM,


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?

4 Answers  


How to select highest score of each subject or how to select highest income of every month?

0 Answers  


Categories