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
which are control break logic indicators?
what is a spool file?
Using %check we are checking monika in mona what is output? What is %SCAN?
what is full form for dds?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
What is the difference between non-join logical files and join logical files?
difference between view and index ?
define subsystem?
what do we can do with the embedded sql statements?
what is rpg fixed logic cycle?
Difference between NOPASS & OMIT?
How can we change the uppercase to Lowercase in RPG?
when would you prefer logical file than opnqryf?
how can a message from a message file appear as a constant on the screen?
how many printer files can be defined in f specs ?