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 |
wat is curser?? and its types???
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
How to print output from openquery in as400 ?
What is file identifier where we can use?
How to declare the pull button in AS/400..
I want to add 10 days in current date. how it is possible in CL program...?
How to update physical file in rpgle without using display file?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
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?
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
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?
difference between 1:%found and %equal built function in detail with example .