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 the figurative constants used in rpg?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
what is the purpose of ovrdta and ovrata keywords ?
How can we read file using curser? how to define a curser?
what are all the contents of subfile?
which are control break logic indicators?
how can you check for a records existence without causing and i/o (chain/read)?
Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?
What is difference between rename and prefix?
how will you search an array?
what is the maximum number of parameters allowed in rpg?
how may a cgi control duplicate inputs?
how to develop some simple graphs (bar charts) using just html?
how to write *pssr ?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?