Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,


parameters cannot be passed in which one???

4 Answers   CTS,


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)

2 Answers   CTS,


What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


how do I declare a minor?

0 Answers   IBM,


can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


what is meant by record lock.how records are locked.what is the purpose of record lock.if records are locked what happens.how to find out which record is locked.

4 Answers   HCL,


I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


Categories