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

Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


program to find the number of objects used in a given program through a display.

2 Answers   IBM,


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

13 Answers   HCL,


What is the significance of UDATE?

5 Answers   IBM,


How to print output from openquery in as400 ?

1 Answers   Four soft,






We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

0 Answers  


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


how can we know running job is batch or intractive ? i need all the possibilites.........plz help me

3 Answers   HSBC, IBM,


Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?

3 Answers  


Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC

2 Answers  


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


parameters cannot be passed in which one???

4 Answers   CTS,


Categories