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
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 |
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 |
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 |
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 |
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 |
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.
parameters cannot be passed in which one???
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.
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)
What is Multi Occurrence Data Structure(MODS)?
how do I declare a minor?
can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?
use of PUTOVR,OVRDTA,KEEP keywords?
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
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.
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?
do you use message subfiles? What are the necessary keywords required coding a message subfile?