Presentation is loading. Please wait.

Presentation is loading. Please wait.

3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp 2006. Title text for Title or Divider.

Similar presentations


Presentation on theme: "3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp 2006. Title text for Title or Divider."— Presentation transcript:

1 3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider pages should be either 40 pt for short titles/28 pt for subtitles or 32 pts for longer titles/24 pt for subtitles. DATE text box is not on master and can be deleted. The date should always be 20 pts. 14A 2E Data Model Cleanup Darryl Millington HawkBridge Pty Ltd September 21, 2007

2 Session Abstract >There are many reasons for 2E data model cleanup, yet many developers often are unaware how to go about it. >This session will provide some technical tips and techniques on accomplishing this in order to ensure performance and consistency for your generated 2E applications. 220 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA

3 Speaker Bio >Darryl has worked as a CA 2E developer since 1988 travelling extensively as an independent consultant throughout Australia, New Zealand, USA, UK and Asia. >He is a regular speaker at CA conferences and has been speaking on CA 2E-related topics since September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA

4 Session Agenda >Why Cleanup >Benefits for a Cleanup >What do you Cleanup >How do you Cleanup >Measuring Cleanup Success >Q&A 420 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA

5 5 Why Cleanup >10+ years of development in a single data model by many people >Data models contain large numbers of redundant, retired and superceded objects >Longer timeframes and higher costs to maintain objects no longer required and used >Size of data models impacts performance of developers and increases generation times

6 620 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA Benefits for a Cleanup >Data model size will be greatly reduced >Lower ongoing project costs and timeframes >Better quality documentation and understanding of development environment >More accurate impact assessments and development estimates

7 720 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA What do you Cleanup >Job Lists >Model Object Lists >Fields >Conditions >Files >Access Paths >Functions >Action Diagrams

8 820 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 1: Save a copy of the data model before cleanup so that you can recover from deleting incorrect objects >Step 2: Rebuild *ALLOBJ model object list using:  WARNING: Do not perform this on Change Control Models  CLRPFM YMDLOBJRFP  CALL YLODOBJH1I >Step 3: Rebuild data model *USRSPC object(s) using:  YDLTOBJTBL

9 920 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 4: Remove data model inconsistencies:  YCHKMDL in *UPDATE mode >Step 5: Verify and fix data model consistency:  YCHKMDL in *ANALYZE mode >Step 6: Remove unwanted Job Lists:  RMVM on all the YJOBLST* files in the data model >Step 7: Remove unwanted Model Object Lists:  YWRKMDLLST and option 4

10 1020 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 8: Remove ALL commented-out action diagram code  HawkBridge have a custom program for this >Step 9: Delete all unreferenced fields  Y2 USER(*DSNR) OPNACC(*NO)  F7, F11 and Option D >Step 10: Delete all unreferenced internal functions:  YDOCURF OBJTYP(*FUN) OUTLST(MYLST)  YFLTMDLLST MDLLST(MYLST) GENATR(*INTFUN)  YEXCMDLLST MDLLST(MYLST) ERRLVL(*NOMAX) RQSDTA('YDLTMDLVSN

11 1120 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 11: Delete all unreferenced non-current versions:  YBLDMDLLST OBJNAM((*ALL *ALL *FUN)) MDLLST(MYLST) CUROBJ(*NO)  YFLTMDLLST MDLLST(MYLST) CUROBJ(*NO)  YEXCMDLLST MDLLST(MYLST) ERRLVL(*NOMAX) RQSDTA('YDLTMDLVSN >Step 12: Loop back to Step 9 until no objects deleted >Step 13: Delete all unreferenced access paths & arrays:  YDOCURF OBJTYP(*ACP *ARR) OUTLST(MYLST)  YWRKMDLLST and option 24

12 1220 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 14: Delete all unreferenced conditions:  YDOCURF OBJTYP(*CND) OUTLST(MYLST)  YFLTMDLLST FILTER(*OMIT) MDLLST(MYLST) OBJNAM((*ALL *ALL *CND)) OBJATR(VAL)  YFLTMDLLST FILTER(*OMIT) MDLLST(MYLST) OBJNAM((*ALL '*ALL values' *CND)) OBJATR(LST)  YWRKMDLLST and option 24

13 1320 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA How do you Cleanup >Step 15: Delete unused files:  SELECT T01.OBJATR, T01.FIL FROM YFILDTARFP T01 WHERE NOT IN (SELECT FROM YRELDTARFP T02 WHERE T02.RELCDE <> '005') AND NOT IN (SELECT FROM YMSGDTARFP T03)  Y2 USER(*DSNR) OPNACC(*NO)  ’Rel Lvl’ = ’DFN’  Search for file defined as relation and use Option D

14 1420 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA Measuring Cleanup Success >Run the measures before and after cleanup >Summarise Model Objects  SELECT OBJTYP, OBJATR, COUNT(*) FROM YMDLOBJRFP GROUP BY OBJTYP, OBJATR ORDER BY OBJTYP, OBJATR >Summarise Function Complexity  SELECT COUNT(*) FROM YMSGACTRFP ACT WHERE ACT.ELMTYP = 'CND‘ AND >= AND >= 0 >Summarise Model Library Size  WRKLIBPDM and F14

15 Questions and Answers 1520 September B - Picture This! Using 2E with Graphical Tools Copyright © 2007 CA

16 3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider pages should be either 40 pt for short titles/28 pt for subtitles or 32 pts for longer titles/24 pt for subtitles. DATE text box is not on master and can be deleted. The date should always be 20 pts. 6B Picture This! Using 2E with Graphical Tools Darryl Millington HawkBridge Pty Ltd September 20, 2007


Download ppt "3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp 2006. Title text for Title or Divider."

Similar presentations


Ads by Google