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 we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
When will DUMP & DEBUG be ignored?
how do u find whether a record is locked or not??
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?
how to display all the members records in a physical file without using ovrdbf?
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