I want to iterate through a table that contains recursive list of programs and tables to find all programs and tables used by specific program MYPGM and it's children. So far this works:
SELECT CONNECT_BY_ROOT WHONAM AS TOP_LEVEL, WHONAM AS REF_A,
WHRNAM AS REF_B,
WHRTYP AS Obj_Type, WHRATR OBJ_ATTTR, WHUSG AS USAGE,
LEVEL WHONAM
FROM MYLIB/MYREF
START WITH WHONAM = 'MYPGM'
CONNECT BY PRIOR WHRNAM = WHONAM
Now I want to do the same for all programs in table.field MYLIST.MY_PGM_NAME instead of just program 'MYPGM'. I am having trouble incorporating a JOIN clause and don't know what to do with START WITH clause.Hope I am clear.
Thank you,
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…