Delete a model, its generation and SQL libraries
book
Article ID: 56017
calendar_today
Updated On:
Products
CA 2E
Issue/Introduction
How I can delete a model, its generation and SQL libraries?
Resolution
- Find the SQL library for this model - DSPDTAARA DTAARA(mdl-lib/YSQLLIBRFA)
- Check for any *JRNs - WRKOBJPDM LIB(sql-lib) OBJTYPE(*JRN)
- Delete the *JRNs
- If a *JRN cannot be deleted and you receive error: CPF7021 Cannot delete journal in sql-lib, then perform steps 5 to 7; otherwise go to step 8
- End journalling for any access paths - ENDJRNAP FILE(*ALL) JRN(sql-lib/journal)
- End journalling for any physical files - ENDJRNPF FILE(*ALL) JRN(sql-lib/journal)
- Delete the *JRNs
- Check for any *JRNRCVs - WRKOBJPDM LIB(sql-lib) OBJTYPE(*JRNRCV)
- Delete the *JRNRCVs
- If you receive error: CPA7025 Receiver jrnrcv in sql-lib never fully saved - it is safe to reply I for Ignore
- Delete the SQL library - DLTLIB LIB(sql-lib)
- Find the generation library for this model - DSPDTAARA DTAARA(mdl-lib/YGENLIBRFA)
- Check for any *JRNs - WRKOBJPDM LIB(gen-lib) OBJTYPE(*JRN)
- Delete the *JRNs
- If a *JRN cannot be deleted and you receive error: CPF7021 Cannot delete journal in gen-lib, then perform steps 16 to 18; otherwise go to step 19
- End journalling for any access paths - ENDJRNAP FILE(*ALL) JRN(gen-lib/journal)
- End journalling for any physical files - ENDJRNPF FILE(*ALL) JRN(gen-lib/journal)
- Delete the *JRNs
- Check for any *JRNRCVs - WRKOBJPDM LIB(gen-lib) OBJTYPE(*JRNRCV)
- Delete the *JRNRCVs
- If you receive error: CPA7025 Receiver jrnrcv in gen-lib never fully saved - it is safe to reply I for Ignore
- Delete the generation library - DLTLIB LIB(gen-lib)
- Delete the model library - DLTLIB LIB(mdl-lib)
- Check for any related library lists - YWRKLIBLST, use F17 for Referenced library mdll-lib
- Delete the library list(s)
Feedback
thumb_up
Yes
thumb_down
No