How we can delete all the Logical File of a Physical file
in one instance ?
Answer Posted / abhishek
Hi Friends,
There is no command which directly deletes all the
depandent logical.
Regarding use of option delete dependant file under CHGPF:
Consider example below:
Lets say PF has 3 fields... Fld1, Fld2 & Fld3
First LF has key field as Fld1.
Second LF has key field as Fld2
1. Pl note that delete dependant file option will only come
when you specify the source name and libr along with object
name & libr.
2. Lets say, I have removed one of the field named Fld2
from my PF. Obviously, my second LF is of no use, as field
use by this file is removed. Now, if I specify, DELETE
DEPENDANT FILES as *YES under CHGPF command, it will first
change my PF properties (as expected) and will also delete
SECOND LOGICAL FILE (as it has a dependant field).
Hope, it helps. Cheers.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the Difference between command attention key and command function key ?
what is rpg fixed logic cycle?
what are various techniques to pass parameters from one program to another?
which are control break logic indicators?
which cl command can be used at program execution to redirect the file named in an rpg program?
how to validate input values in display file ?
what are the different types of variables available in cl?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
what is match field indicator?
what is the use of unique keyword and what level it is defined?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
Why we are not able to perform insert delete and update operation in Join logical file?
how can I start a page in a new window?
Write a CL program which will run a batch job at 1 am every night
What are the record format field mapping options in cpyf?