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 |
what is flat file?
when will come session device error?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
HI, 1: WHAT IS THE FUNCTION OF %KDS?WITH PROGRAMMING CODES EXAMPLE 2: WHAT IS THE FUNCTION OF Z-ADD AND Z-SUB ? WITH PROGRAMMING CODES EXAMPLE
When it is desirable to describe files Internally?
HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....
What are the types of identifiers?
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.
Errors in Sql query will be in which state?
How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
what is edit word and edit code