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

wat is curser?? and its types???

4 Answers   HSBC,


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


How to print output from openquery in as400 ?

1 Answers   Four soft,


What is file identifier where we can use?

0 Answers  


How to declare the pull button in AS/400..

0 Answers  






I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

1 Answers  


Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4

4 Answers  


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


difference between 1:%found and %equal built function in detail with example .

6 Answers   Polaris,


Categories