Home

Chapter 1: Introduction to X-Analysis

image

Contents

1. User Password XANASEU User Class PGMR Initial Program XSEUCLP Library XAOBJ Create User Profile CRTUSRPRF Type choices press Enter Ucon omui RE ERES XANASEU Name User ae sword os o o o o o o o c A USRER E Name USRPRF NONE Set password to expire SE NO SOUS YS Se eal cae a Coes ENABLED xENABLED DISABLED Icom cc err eee eee PGMR ZUR EE SEE SONIS ASemetamece eVe 5 0 3 op eo a oh on UE Eo Vie ENS AUG peo INARA pec Glue i Siew Irc E E cae MM ZCRTDET Name CRTDFT Initial program Eo rill e T Te e Sle UIC I Name NONE IIa so E NI ee XAOBJ Name SOIRS MS MOS TESTES d ai ESENTIUM s s o o o a o o c MAIN Name SIGNOFF PID a ee SL LBI Name LIBL CURLIB Limite apab e kee ae a NO EN PS BIER AS CIR Text SSG Se Iion e m e E X Analysus saw User Id gun Room F4 Prompt F5 Refresh F12 Cancel F13 How to use this display F24 More keys Press F10 and Page Down Set Special Authorities ALLOBJ JOBCTL SAVSYS Copyright Databorough Ltd 2012 Page 142 wy GN Appendix A Enabling the SEU Interface Change User Profile CHGUSRPRF Type choices press Enter Additional Parameters Spem as cma oen E Er c M ZAT TORJI DEAS MEUS T OE x JOBCTL SAVOS Specnc Environment e e en LUI ROAMER COENA S NONE S316 Eee cer S uxo paese abrite OX IP on S DONNE SAMNIO MSIE Password se rms SENT COT interval xSYSVAL 1 366 SAME SYSVAL NOMAX Limit device sessions xSYSVAL SIE EANO Ss SES
2. File Edit View Document Comments Forms Tools Advanced Window Help Access path details for CUSF Access Path Text muc EU Ek R ITI o it cus Sites CUSFL1 O by Mame M lesa CUSFL3 Siete by Number N X cusno CUSFLA Sites by Product renamed from PRPCDE CNAME cusfla for testing CUSFLB Sites by Orig List N LsLeDe CNAME CUSFLC sites by Salesperson mE SINIT CNAME CUSFLD sites by Validator VINIT CNAME N ea i Sites by Organisation nex CNAME n n CUSFL2 Sites by Status ISTATUSCNAME CNAME CUSFLS sites by Dist amp Status DSDCDE STATUS CNA CUSFLG Sites By Dist amp Name m DSDCDE CNAME CUSFL Sites by Last Cnt Date Mr mE STATUS CNAM CUSFL8 sites by Next Cnt Date APDATE CNAME CUSFLY sites by Fax No my _ FAXNO B 2b x 11 59 in Copyright Databorough Ltd 2012 Page 57 AX Chapter 3 Analysis amp Documentation System Document DFD Annotation System Document for XAN4CDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced Window Help De buie gt YO eis Data Flow Diagram Normal for CUSF 1 Annotation for CUSF stuff goes here another comment 11 69 x 4 26 in 4 Copyright Databorough Ltd 2012 Page 58 wy GN Chapter 3 Analysis amp Documentation System Document DFD System Document for XAN4CDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced W
3. Metrics History For XANACD XA Complexity Level Change Date Sour Cyc Cn Halst Maint In OE Low Total a NNNM NNNM Metrics Analysis The Metrics Analysis drop down button contains a list of parameters against which a chart can be generated Metrics History Drop Down Options Metrics History for XANACDEXA Sable Level Change Date Sour Cyc Co Halst source Lines Low Total 33 oes Low Total Current State 2 241 746 Halstead 05 months back 4011 10 27 fell P2 Maint Index 06 months back 2011 9 2 2 162 742 Files OF months back 2011 8 2 2 496 771 Device Files 16 months back 2010 11 25 2 500 Fil Called Programs 18 months back 2010 9 2 2 545 787 Calling Programs m xxi ao nu i und Les o o Select Cyc Complex option from the drop down menu Cyclomatic Complexity Option for Chart Metrics History for XANA4CDXA or Level Change Dake Sour Cyc Co Halst Source Lines LE diei uice Low Total Current State 2241 Halstead 05 months back 2011 10 27 2 ell a Maint Index t 06 months back 2011 9 2 2 162 742 Files H 07 months back 2011 8 2 2 496 77l Device Files 16 months back 2010 11 27 2 500 Fil Called Programs E 18 months back 2010 9 2 2 545 797 Calling Programs i 19 months hark 7f1n 8 71 7 105 FEL qu j i This invokes the Metrics History chart displaying Cyclomatic Complexity Copyright Databorough Ltd 2012 Page 118 Metrics
4. Seleck omiE Field Names PRPCDE tC MAME DIDIT LSLCDE C MAME SINIT CNAME VIMIT C MAPME ORs C NAME t MAPME STATUS CMAME C LISNO D5DC DE STATU DS0_DE CNAME LCTDAT STATUS APDATE C MAME Fash USFLA Sikes b Product renamed From cusfla Fo CLISFLB Sites by Orig List CUSFLC Sites by Salesperson CLSFLD Sites by Validator CLISFLE Sites by Organisation CLISFL1 Sites by Mame CLISFLZ Sites by Skatus CLISFL3 Sites by Mumber CLISFLS Sites by Disk amp Status CLISFLG Sites Bv Dist amp Name CLISFL7 Sites by Last Cnt Date CLISFLS Sikes bv Next Cnt Date CLISFLa Sites by Fax Ma 2 2 Oa 2 a n a a a a a zo ZZZ Z Z Z Z Z Z Z s Copyright Databorough Ltd 2012 Page 88 File Field Details FFD As part of understanding the data model of an existing application a user needs more details of a particular file A particular file may consist of several fields The FFD option helps the user here By choosing the aforementioned option from the context menu the user gains easy access to particular field details of a selected file CUSF File Field Details option Data Model Diagram for CUSF Total Objects 9 cz fal y oOo d zoom Source 9 Zoom in Lpex Referred to by Referred to by Referred to bi STATUS 5t ge Data Flow Diagram LELCDE Orig List ORG On Object Where Used d Variable Where Used d at Data Model Diagram LFs Access Paths Access Path Diagram Consolidat
5. ZEROS AANACDEM CBCUSTHNT MOVE CUSNO OF zzFT z I TO CUSL3 CUSTOMER NO OF XxANACDEM CBCUSTHNT MOVE CUS PROSPECT OF CUSTS RECORD TO CUSNO OF xXANACDEM CBCUSTS MOVE CUSNO OF CUSTS RECORD TO ZCUSNOU OF ZZFTO0 xXANACDEM TIT gt The window displayed above lists all references of field CUSNO from the entire application The View Level Menu icon is located on the X Analysis toolbar and the menu allows for seven levels of Variable Where Used information Copyright Databorough Ltd 2012 Page 27 View Level Menu JE Outline 244 variable Where Used 52 n R3 Bex T7 Variable Where Used Far ALLICLISNO Lines 174 View Level 1 Jar we eee ee ee ee em OUR View Level Name CECONHDE 376 00 MOVE CUSNO OF CUSTS RECORD TU CUSNO OF CUSF zxAMAJCDEM CBCUSFMNT 0124 00 MOVE LS CUSTO MER TO CUSNU OF CUSFL3 RECORD ra MACEM CBCUSFMNT 0271 00 MOVE CUSNO OF CUSFLS RECORD TO zCUSNO OF ZZzFTO XANACDEM CBCUSFMNT 0291 00 MOVE amp CUSNO OF zzFT l TO CUSNO OF CUSFLS RE XANACDEM ri Ili gt Expanded View Level Menu d Outline 44 variable Where Used 52 t fa Ea amp mM 0 Variable Where Used For ALLICUSNGO Lines 174 View Level 1 w Levell Nane e ieee Level 5 4 68 CBEONHDR 37f MOVE CUSNO OF CUSTS REC een E CBCUSFMNT 0124 00 MOVE LS CUSTOMER To cusm L t Parameters CBCUSFMNT 0271 00 MOVE CUSNO OF CUSFL3 REC L 5 Cascading Para
6. Copyright Databorough Ltd 2012 Pagei Problemi PVG StS cascar eanna aans Arer sions eE ar ENAA NN E a TATAARIN Anaa ENAA aii Eaa Eni 133 ODJET FOG SCION MENTIONED 134 SUMY ROPO n e E wn E E E ee e E E ce 135 Generate Metrics Analysis uscsccni i ran x Dti UR OVE ERU YEN URNA EA ad R E Cn RR BU REX un E ud Ra 140 Generate Problem Analysis cccccsssssseeeccesseececseasssececseasseeeeeseasseeeesseaseeeecsseaseeeecsseaeeeeessoases 140 Chapter 7 What s Next cccccccsecsseeeceesceesceeeeeseeeneeenenenenans 141 Appendix A Enabling the SEU Interface 142 Create User Profile XAN4SEU cccccssssssececcesseececseanseecccseasseeeceseasseeeesseassensesseauseeecsseaseeeeessonses 142 Appendix B License Code Request Form 144 Copyright Databorough Ltd 2012 Page ii Welcome to this Tutorial This tutorial is a handy stepwise illustrative guide especially designed to familiarize you with the superlative benefits of the X Analysis product suite How this Tutorial is Organized The tutorial is in two parts The first part Chapters 1 amp 2 introduces you to the sophisticated X Analysis software The second part Chapters 3 to 6 comprises comprehensive details of the X Analysis solution sets Chapter 1 Introduction Get a glimpse of the benefits of using X Analysis The chapter outlines the hardware related prerequisites for installin
7. OO25 00 It SEl HO egual tg BLANES O026 00 Mowe left OM to ZzzERR 1 O027 00 Mowe left OEMOOOS to MSGID 7 0026 00 End OO29 00 Mowe ACACFM to Account Type jda 0d Perform Validate Screen i d Read Accounts Master File lt 26 gt 0032 00 INITIALISE SCREEN Iii gt The Pseudo Code icon has a behaviour toggle Click it again to return to Normal Source Code Source Level The Source Level icon allows a user to view specific type of source lines by switching to different view levels for easy understanding of the code By default the source level is 5 Source Level e Programs CBS06R 2 5 Source List of CE906R in X4N4CDEM QORPGSARC Lines 156 View Level 5 E E EH ff S E 9 dar p SBA 00 m ER Seq No M Comments Only Screen Reads Comment ooz2 00 Bi view Level 1 Call Operation n6 Biview Level 2 File Operation O64 3 View Level 3 Program Structure Operation B view Level 4 Field Operation w View Level 5 Commented Out amp Excluded 77ERER MSGID Reduce the source level to View Level 1 This restricts the source list to display comments and call operations only Copyright Databorough Ltd 2012 Page 65 Source Browser displaying Source at View Level 1 Be Programs Be CB906R 0 0 Source List of CE906R in XANACDEM RPGSRE Lines 19 View Level 1 a B l EH f E Ez G9 Ut p 98 BE EZ I m P
8. Object Type CUSFMAINT PamM CUSFMOLD PSM CLISFSEL FEM CUSLETSO PaM CLISREAD FEM C LISEZ PiM Object Where Used with CUSTMNT1 selected 3A Object Where Used 5 Text Customer Site Maintenance Customer Site Maintenance Customer Site Selection Update Letter Sequence Test Sequential Read options Reorganize Customer File Usage File Updated By Program File Updated By Program File Read By Program File Updated By Program File Read By Program File Updated By Program Chapter 3 Analysis amp Documentation File Read By Prograrn File Read By Program File Read By Program File Read By Program Customer Detail Maintenance Customer Detail Maintenance Customer Detail Maintenance Customer Detail Maintenance CLISTMNTJR PGM Customer Detail Maintenance File Read By Program DREPORT PiM Distributor Report File Read By Program TIT CLISTMRNTI p CUSTMNTI_O PGM CUSTMNTi_1 PGM CUSTMINTI PGM Double click on the row displaying CUSTMNT1 This retrieves the source member for the object CUSTMNT 1 with the line highlighted referring to the object CUSF Drill down to an individual line for the Object Where Used Reference te Files CUSTMNT1 Z3 E Object Where Used cB Source List of CUSTMNT1 in XAN4CDEM QRPGLESRG Lines 606 Viewleve 5 A EE B CE S 7 P P p AMONA m Re Seq No uM Em eee oe eS es eae oe ea a es i CITSNGO CHAIN Cia bis Ee su HH a IN99 IFEQ ab 0326 00 G MO
9. PF XAN4CDEM ASTATLIS FILE PF Status File This invokes the Document Manager dialog Copyright Databorough Ltd 2012 Page 46 X Analysis Document Manager Document Manager Description a Order Entry Menu Move Down Delete All Invert Selection Generate Document Save amp Exit The Document Manager dialog lists all the marked objects for documentation Use the Move Up Move Down Delete Delete All buttons to organise Objects Members on the documenter list The Invert Selection button on the Document Manager dialog unselects the selected objects and selects all the un selected objects After having organised the listed objects click the Generate Document button This invokes a Documenter Wizard Copyright Databorough Ltd 2012 Page 47 System Documentation Wizard Type and Location X Analysis System Documentation Type and Location Select the type of documentation and its location System Documentation can generate Single document with documentation of all the objects marked For documentation OP Generate multiple documents Far each object marked For documentation System Documentation type Generate Single System Document C3 Generate Individual System Documents Document Details Document Title System Document for xANACDISA Mame System Document for SANCD A pdf C Documents and SettingsialakhiMy Documentsis
10. click Jump to subroutine PV0001 option to switch to flowchart for the subroutine PV0001 Copyright Databorough Ltd 2012 Page 68 Subroutine Flowchart Edit View Insert Format Tools Shape Window Help Adobe PDF 7 E Subrautine PV 00 Line 0104 ou SPY001 BEGSR Linas 0108 DD bo 0105 T4 SPYOO1 VALIDATE NON SUBFILE SCREEN DATA CELE LITE LELSESILILIL EST LTLSLILILIL ERIS E EXFMTSCT100 ne 0111 ie Id 4 bk Fl MAIN PVOO1 RETRN Page 2 3 Other Options on the Source Browser To understand other options available on the source browser open the source browser for the program OE008 To call the source browser for OE008 go to the object list From the object list locate and select the program OEO008 Bring up the context menu for the program OEO008 and opt Zoom Source option Context menu on OE008 Er CB906R P Soom Source st Audit program initial version sk Audit program initial version This brings up the source browser for the program OEO08 Copyright Databorough Ltd 2012 Page 69 AX Chapter 3 Analysis amp Documentation Source Browser for program OE008 Programs S OE00B L3 E Source List of OEO08 in XANACDEM QRPGSRE Lines 220 View Level 5 TAr EE E EH f FR S HS ov Enc 98 HU UZI 0E m amp SO CNG al ates ach geal prt Tu Me dM MU M S one aay A od CMEZEEEEIEEEEREEEEEEEEEEEEEE
11. 11 24 09 13 41 258000 AMETGEN AV SRC NO DETHSTCCYES Mew metrics data not generat 2011 08 31 14 38 30 022000 XMETGEM ACVSRCUCPTES DLTHSTEUFNO 1 Mew metrics data not generat 2011 11 29 08 45 06 406000 SMETEN ACVSRC CYES DLTHSTC YES Mew metrics data nok generat 2011 07 08 11 37 38 557000 COMPLEXS Create Fable XAMACDXAJ ZMCOMPLEXS frunrptnan varchar z5 Problem Analysis One way of improving the quality of analytical procedures is to have prior knowledge of any existing inaccuracies in the data There are issues like object with no source and vice versa or the source is changed after object creation date or duplicate logical files etc These can prove to be stumbling blocks in the path to achieving superior and up to date analyses The Problem Analysis feature warns the user about any such discrepancies in the data The feature has an expandable Problem Category section which gives names of individual files having a particular problem To display the Problem Analysis data select the Problem Analysis option from the Audit Options under the context menu on XAN4CDXA Copyright Databorough Ltd 2012 Page 133 Problem Analysis for cross reference library XAN4CDXA i Summary Metrics i Specialized Analysis Problem Analysis 5 3 EL Problem Analysis data for XANACDXA Total Problems 407 t Al Po T Alert Category Object Total Description Further Details B SourcefObject Alerts 11 ESSEN Sou
12. Attributes k fil gt Double clicking on the View Annotation icon invokes the annotation dialog box displaying the notes that had been written earlier The user can further add modify notes in the annotation dialog box and click on the Save button These notes will be viewable later using the same option Annotation Dialog Object Centered Data Flow Diagram for CUSF Total Objects 70 EE S Ee D amp El du CUSF m CUSFLA sites Sites by Product renamed fra cusfla For testing b Access Paths 13 Objects H a Stteihute Annotation for CUSF Eg Additional Notes tuff goes here another comment Copyright Databorough Ltd 2012 Page 22 GN Chapter 3 Analysis amp Documentation Attributes The Attributes feature comprises impacted fields of a particular object Through these fields the main object is referenced Expand Attribute Icon fe Files Sgy Object Where Used 9 CUSF 52 E Object Centered Data Flow Diagram for CUSF Total Objects 70 Po g a A S o a sites gt b Access Paths 13 Objects b Input Programs 45 Objects b Input Services 1 Object b output Programs 2 Objects LT 0 TT TT TT Update Programs a Objects E CLISFMAIMT l CLSFMOLD Customer Site Maintenance Customer Site Maintenance b Sttribukes b Attributes d CLISRGZ Reorganize Customer File m CUSLETSO Update Letter Sequence Attributes _ FAXFRR1 FAXFRR a
13. CUSTOMERS 46 1040 811 58875 1225 115 39 80 1B The Metrics information displayed above has the following columns 1 Complexity Level For each attribute e g each file usage 1 etc The sum total of these per program will be calculated and the Complexity level for the program worked out e g Points 10 LOW 10 20 AVERAGE gt 20 HIGH If desired a user can allocate values for each complexity classification using the Metrics Preferences option 2 Units When collapsed it displays total number of programs When expanded it displays name of program 3 Source Type Informs about the type of source 4 Source Lines It is total number of Source Lines in a source member Copyright Databorough Ltd 2012 Page 114 5 Cyclomatic Complexity Measures amount of decision logic in a program Shows total number of conditional statements used 6 Halstead Displays program s complexity directly from source code based upon the operators and operands used 7 Maintainability Index The maintainability index calculated with certain formulae from lines of code measures Cyclomatic Complexity and Halstead complexity measures 8 Files It is total number of Files used by a source member 9 Device Files Total number of Display and Printer Files used by source member 10 Called Programs It display total number of called programs from a source member 11 Calling Programs It display total number
14. Cancel Mark the options to be included in the audit report and click the Next button Copyright Databorough Ltd 2012 Page 137 Summary Report Specify Sequence X Analysis Audit Report Specify Sequence What sequence would you like to have For the Audit report Metrics Analvsis Problem Analysis Difference Analysis Specify the sequence of the contents for the audit report and click the Next button Copyright Databorough Ltd 2012 Page 138 Summary Report Finish X Analysis Audit Report Finish Define the Page Size and Contention Resolution Option Selected Sequence Paper Size E Metrics Analvsis i Problem Analysis 9 Letter 8 5 x 11 Difference Analysis 7 A4 Size 8 27 x 11 69 Contention Resolution Audit report creates documents in Application Folder IF the Application Folder is shared and documents are created opened while the documentation is in progress then this may lead to contention Please select appropriate options to enable resolution C2 Do not overwrite 9 Overwrite iF exists but iF in use then Create document by similar name CO Exit Skip document creation Choose the desired settings for the audit report and click the Finish button to end the report configuration and generate the report When the report generation is over the following dialog appears X Analysis Dialog to open the generated report X Analysis Audit Report
15. Dependent File Relation Type Main File Dependent Fields Parent Fields Dep LF CHT ACS REFERS TO ASTATLIS STATUS STATUS CNTLE3 CNTACS REFERS TO USF CUS CUSHO CHT ACS REFERS TO MAPMESID LISERMIM InMAPME CNTACS OWED BY PT PES PRP_DE PRPCDE C NTLFA The Data Model Diagram displayed above consists of two halves The upper half is the Data Model Diagram and the lower half is the DMD Details view The Data Model Diagram displays a graphical representation of the derived data model information The Data Model Diagram toolbar has a Legend icon where different colours on the Legend dropdown convey the type of association represented by the coloured lines that connect various files Copyright Databorough Ltd 2012 Page 83 DMD Legend la Owned By BB Uni Directional B lultiple Rels Internal 3 External With the help of the DMD legend a user can easily understand the relations displayed on the Data Model Diagram The DMD Details view displays the Files Connection Details On the DMD details view the column Relation Type gives the relationship between the files in the Dependent File column and the files in the Parent File column The Dependent Fields and the Parent Fields columns list the fields which relate to the Dependent File and the Parent File respectively The DMD Details list displays actual names of the listed Files and Fields The DMD details lis
16. Documentation process completed The documents has been saved in C Documents and Settings alakhiMy Documents 4nalysis Application Datai66 209 50 146 PCF_A4N4COx 4 Audit Report For AM4 DA pdf Do you want to open this Copyright Databorough Ltd 2012 Page 139 Generate Metrics Analysis The Generates Metrics Analysis option generates the Metrics data The dialog shown below invokes when a user opts for Generate Metrics option Generate Metrics Dialog Update Metrics Ref Library Source archiving enabled Update metrics amp Bit history YMO When user clicks the OK button related batch job initiates Generate Problem Analysis The Generate Problem Analysis analyzes the application database files and reports problems Select Generate Problem Analysis option available under the sub menu Audit Options from the context menu on XAN4CDXA This invokes the following dialog Generate Problem Analysis Dialog Generate Problem Anal Eg Ref Library Click the OK button to invoke the related batch job command Copyright Databorough Ltd 2012 Page 140 X GN Chapter 7 What s Next Chapter 7 What s Next We just saw how X Analysis with its host of features makes working of a legacy application easy to understand We also experienced how X Analysis helps in analyzing one big application as smaller logical business areas Its enhanced Data Modelling feature not only
17. Files All Procedures i Exportable Functions H Source Files Business Rules e Consolidated Rules i Screen Components This action invokes the Work with Objects dialog for object type PGM Copyright Databorough Ltd 2012 Page 60 Object List dialog Work with Objects Application Area Description 4ll Members Selected Library ALLLISR hull Tvpe Attribute Function Attributes Component Status Function Type PF Name Program Type All Click the OK button to generate the list of program objects Object List for all Programs e Programs 3 5 HE Object List of ALLUSR ALL PGM ALL ALL ALL Total Objects 144 amp HA m a Library Mame Type Attribute Description Status C CEAN4CDEM CECONDET PM CBL Work with Order Details B De CPXAN4CDEM CBCONMDETNW PzM CEL Work with Order Details Long Fields used A D CP XANACDEM i BCLISFMNT PM CEL Customer Site Maintenance Dr CFXAN4CDEM CBCUSTMNT2 PGM CEL Customer Detail Maintenance Long Fields used 0 CExAN4CDEM CBCUSTS PM CEL Work with customer Cobol vers an 0 ULXANACDEM CBCIIU PGM CLP Order Entry System n D CP XAN4CDEM CBTRNHST PGM CBL Work with transaction history B n SIENANACDEM CESDER RP Back out account 6 o HE L ANACDEM PM CLP Build Customer Letter n1 abd i gt Copyright Databorough Ltd 2012 Page 61 Double click the program CB906R from the object list This call
18. Found on Sites CUSTMAT 1 QUOC AW BCLO CLISTS Debtor blank CUSTMNT 1 o0004 AWBCCD CUSTS Exact match Found For Debtor on Purchases CUSTMAT 1 ann ay Ct TA CUSTS Mame blank CUSTMNT 1 o0006 PER SOR CLISTS Rep not Found on Salespersons CUSTMNT 1 Don D5DCDE CUSTS Distributor nat Found on Distributors Consolidated Rules X Analysis provides an important feature related to file fields and their business rules A user can view all the business rules related to a file field combination Select Consolidated Rules node available under the cross reference library Copyright Databorough Ltd 2012 Page 108 Consolidated Rules Node under the Cross Reference Library OB 192 158 170 10 lih ZANAUDZA ANACDEM Tutorial System io Application Area Diagram at Data Model Diagram zs Overview Structure Chart Se All Objects Ir Programs E Files All Procedures le Exportable Functions Source Files Business Rules Screen Components Consolidated Rules Double click on Consolidated Rules to invoke the Work with Objects dialog Work with Objects dialog to display Consolidated Rules Work with Objects Application Area Name Description All Members Selected Library ALLLISP ba Mame Tvpe Attribute FILE v PF Function Attributes Component Status Function Type PF Mame Program Type Cancel Click the OK button to invoke a new window displaying the Consolidated Rules Copyright Databorough L
19. Inter Repasitory Options Audit Options pague T T IMa aL A mpcc Audit Options The Audit Options sub menu is available on the context menu of application library and application areas The following menu options are available under Audit Options Metrics Analysis Screen Metrics File Metrics Business Process Logic Metrics Specialized Analysis Problem Analysis Object Allocation Summary Report Generate Metrics Analysis Generate Problem Analysis Metrics Analysis As a system evolves its complexity increases unless steps are taken to reduce it Professor Meir Lehman Copyright Databorough Ltd 2012 Page 112 IN Chapter 6 Metrics Analysis X Analysis provides advanced computing solutions in the form of Metrics Analysis because it recognizes the importance of monitoring measuring and managing the complexity and changes to databases of legacy applications Metrics Analysis simplifies the procedure by classifying each program based on low average and high complexity It uses mathematical formulae to ascertain the complexity level The user has to assign weights in the range of 1 6 as per each file usage per program If the sum total of weights is gt 20 it indicates High complexity 10 20 it indicates Average complexity 10 it indicates Low complexity Under the Metrics Analysis we have other parameters as well like Halstead Maintainability Index etc Halstead is calculated using fo
20. OUS THINTL D Cuba Deko Pa aries Cucbomer De Posinbenencg b buts b Pb ST Vir c a CLEGTIVMTI I Cueto ier Detail N anberanca Customer Detal Nainbanenca Attributes b Girinas E GcHTACI E Gus Generate Prospect Aco Gener ete Purrh ese Record b aibes b Ehi 11 69 x 4 26 in amp Copyright Databorough Ltd 2012 Page 59 System document Index System Document for XAN4CDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced Window Help Deke e2 Ws C CBCUSFMNT PGM Customer Site Maintenance 18 8 CBCUSTMNTZ2 FGM Customer Detail Maintenance Long fields used 8 15 CBCUSTS POM Work with cusipmer Cobol vers d 15 CBTRNHST PGSM Work with transaction history 8 15 CUSCPY PGM Customer Copy 16 8 GUSF FILE Sites 4 5 8 8 15 B zbxl11l B8in 4 Source Browser The process of system analysis reviewing re factoring maintaining or redeveloping is incomplete without looking into the application s source code X Analysis supports some very advanced features in its Source Browser Get an object list for all programs available in the application library Double click Programs node under the application library in the navigation tree Work with Programs BM 192 158 170 10 3 lih XANACD XA XANACDEM Tutorial System i Application Area Diagram s ad Data Model Diagram Pa Overview Structure Chart e All Objects TE Programs E
21. Units Source Type B Grand Total 56 Interactive Source Member 5100 Expand All Click the Expand All icon to expand all the data Expand All option on Metrics Analysis Toolbar Complexity Level Units Source Type Source Lines B Grand Total 155 O O 14 6597 Expanded Metrics Window i Summary Metrics i U EMI E m Metrics Analysis for XANACDXA Double Click to View History amp M p Complexity Level Units Source Type Source Lines Cyc Complex Halstead MA S GrandTotal SH 97 28 112 953 E Interactive Source Member 5100108890 1456 High Total BE i oil High High High High High Average Total Average Average Average JE Metrics History The Metrics History displays all previous instances of the generated metrics data The metrics history data will be available only when the metrics data generated more than once Copyright Databorough Ltd 2012 Page 116 The Metrics History can be generated for all the individual levels High Average amp Low Totals for Batch Interactive Programs and for the Grand Total Double click on the Interactive Source Members row to generate the history Invoking Metrics History for Interactive Programs in Summary Metrics 3 5 TU Oo Metrics Analysis for XANACDXA Double Click to View History GB m 7 Fo aa d Complexity Level i Source Type Source Lines Cyc Complex High Total A
22. and PRPCDE Select CUSNO and opt Variable Where Used from the context menu Copyright Databorough Ltd 2012 Page 26 Variable Where Used option for CUSNO fe Files Sjy Object Where Used 39 CUSF 52 Object Centered Data Flow Diagram for CUSF Total Objects 70 fl B Eg FHEFIX Voc Prefix D Soe DOCRCD Doen Du Lit Sent EI OEDUZ E OE0DE DOCS Lit Sent Order Enquiry Prink Invoices DOC 4 Lit Sent Input 2 Fields Input 5 Fields DOTS Lit Sent t s CUSNO Cus Ma MNT Caern Line 1 Dole Lib Sent t PRPCDE Product Code File Field Where Used F Leia DSOCDE Distrib Variable Where Used EMAIL Email Member x Ref Update References EXTM Extn s STATUS Status File References FASMO Fax Mo Definitions Only JTITLE Job Title Summary References LCTDAT Last Co OEDDB E Eron Rule variable References LLETSQ Last en v Select All References option to invoke the Variable Where Used window for the field CUSNO Variable Where Used view for CUSNO Outline S44 Variable Where Used 22 variable Where Used For ALL CLISNO Lines 174 View Level 1 Library CECONHDR HOVE CUSNO OF CUSTS RECORD TO CUSNO OF CUSF xAMACDEM CBCUSFHNT HOVE LS CUSTOHER TO CUSNO OF CUSFL3 RECUFRDLD AXANAJCDEM CBEUSFHNT HOVE LUSNU OF CUSFLS RECORD TU ZCUSN OF ZZFTU xAMACDEM LBUUSFMNT MOVE ZLUSNU OF zzFTUl 0 TO LUSNU OF CUSFLS RE XANACDEM CBCUSTHNT IF CUSNO OF ZZFT Z I
23. area e Object Where Used It is a list of all usage references for an object e Export List to PDF Microsoft Word or Microsoft Excel The option to export data to MS Excel or a PDF MS Word e Data Flow Diagram It is an interactive colour coded and bus routing block diagram for an object relationship within an application e Variable Where Used It is a list of all source lines with references within source members made to fields variables of a file program their associated device files and copybooks e Structure Chart Diagram It is a graphic display for displaying program to program relationships e Detailed Structure Chart Diagram It is a graphic display for showing program to program relationships with files used by each program It also displays each program s generated program text e Hierarchal Structure Chart Diagram Colour coded bus routing block diagram enhances the visual of program to program interrelationships User gets an exact idea of the hierarchy in which the programs are set e Document Manager A utility that automatically generates structured system document in PDF MS Word format e Source Browser lt is an interface for system analysis reviewing re factoring maintaining and redeveloping in source code e Source Browser Toolbar This toolbar contains a list of different options for viewing code within the Source Browser such as Pseudo Code and Source View Level options etc e Other Sou
24. b Attributes cusfla For testing a Access Paths 13 Objects H RUE b Input Programs 45 Objects H El ZAUDLISTS b Input Services 1Objet H CUSFLC Sites by Salesperson Audit LISTS File b Attributes b Output Programs 2 Objects H b Update Programs 9 Objects H b Attributes Bl CUSREAD E Test Sequential Read options CLISFLE b Attributes Sites by Organisation k Attributes E CUSFMAINT Bl CUSFMOLD Bl ZAUDASTATU Customer Site Maintenance Customer Site Maintenance B b Attributes Sites by Status b Attributes m CUSLETSO Bl CUSRGZ E E Update Letter Sequence Reorqanize Customer File B Customer Detail Maintenance b Attribut b Attribut CLHSFL5 Lang Fields used CORR E Sites by Dist amp Status b Attributes b Attributes Bi FAXERR1 B FAXERR2 E Faxshnot Errors Part 1 Faxshot Errors Part 2 B Work with Orders daga dici Sites bv Last Cnt Date b Attributes b Attributes E FAXSHT 1 ij CBCLISFMNT E Generate Fax Shot Customer Site Maintenance H WAWCLISTSR b b CLHsFLa Work with Customers avn BERE Sites bv Fax Mo b Attributes b Attributes Hi WWCLISF u cam d Work with Customer Sikes CLISFSEL b Arrrihiibes vf 4 The DFD is also a graphic equivalent of the Object Where Used data Besides the Logical Views Access Paths for CUSF a user can see how CUSF fits into the application i e the programs that update CUSF programs that use CUSF as an input file and so on The dynamic and interactive diagram facilitates us
25. gt Preferences to display the Preferences dialog Preferences option m i B g ole New Window Open Perspective Show View Customize Perspective Save Perspective s Reset Perspective Close Perspective Close All Perspectives Navigation La Working Sets Web Browser Preferences To view modify various X Analysis Preferences select X Analysis node Copyright Databorough Ltd 2012 Page 78 General X Analysis Preferences Settings Bl s Analysis Default View Level oe Advanced Folders Object Where Used Entry Level References Inverted SCD Depth Repository Location r bata Test Default Source Editar amp Reda E xDaclek pex 5250 Emulator E XML Others Humber of records to display 1000 View Job Lag Restore Defaults Apply Copyright Databorough Ltd 2012 Page 79 AX Chapter 4 Chapter 4 Data Modeling Data Modeling In the previous chapter we learnt how X Analysis helps to convert existing applications design into current acceptable application format However proper understanding of an application s design depends on an accurate data model The term model encompasses the foreign key or the relational model and not the usual physical model of the database X Analysis derives the legacy data model by analyzing the data structures of the physical and logical files Moreover it maps data structures in all the programs further verif
26. in YAN4CDEM QRPGSRC Lines 156 View Level 5 An ee EE BE gr EBg 93 BP E A atr w Normal Source Code ere ae oe ee ea ee ere ee i Indented Source Code Business Rules PARM WWACFM 3 Consolidated Rules PARM WWACTP 10 mq Business Process Logic PARM Wwacss 1 Indented Source View Select Indented Source Code option from the Source Options menu This displays the Indented Source Code view Indented Source Code e Programs Flea CEGDBR 25 EL Indented Source of CB906R in XANACDEM QRPGSRE Lines 154 View leve 5 GA EE Ed EH ES B ur Eg 92 BM EE 09 i ER Seq No INDENTED SOURCE CODE ooz2 00 o636c SDPOOL DOUEQ N 0023 00 o64o0c AAA RTM DOUEQ E 0024 00 n642c BRBBCTL ANDEQ E 0025 00 g SSRLNB IFEQ BLANES 0026 00 Z MOVEL ON ZZERR 0027 00 C MOVEL OEMOO003 MSGID 0028 00 p ENDIF 0029 00 C MOVE ACACFN WUACFM 0030 00 0765C EXSR Pvoo1 0031 00 Z READ CBACPF 0032 00 cr INITIALISE SCREEN v r4 lil gt Return to Normal Source Code by selecting the Normal Source Code option Source Outline The Source Outline feature displays an outline of the source member The Source Outline view lists all subroutines available in the code Copyright Databorough Ltd 2012 Page 63 Source Outline option e Programs Eq CEGUBR Z3 Source List of CB9O06R in XANACDEM QRPGSRE Lines 156 View Level 5 E B EH aE B9 H Eg SB 0 m Re 0022 Bc SDPOOL DOUEG HH Double click on any of the li
27. in the cross reference library Annotation dialog for the object OEMENU Annotation for OEMENU Additional Notes Wirike note here Re generate the Structure Chart Diagram to check any object annotations Copyright Databorough Ltd 2012 Page 35 GN Chapter 3 Analysis amp Documentation Annotation Icon for OEMENU in re generated Structure Chart Diagram te Files ZA Object Where Used CUSTMNT1 ae Ego G QEMENMU Z3 H Structure Chart for DEMENU Total Objects 14 amp ml euH 7 Annotation L OEMENMU Order Entry Menu OTH E icon oEUn1 Order Entry EDTFIL CUSLET Customer Letter Stage 1 OTHCAL LIPD CUSLET1 Customer Letter Stage 2 OTHCAL UPD gt lt Ill Double click on the Annotation Icon to bring up the Annotation dialog Detailed Structure Chart The Detailed Structure Chart diagram displays files used by each program together with each program s generated program text X Analysis recovers the generated program text which describes the purpose of the listed programs automatically To generate the Detailed Structure Chart diagram click the Show Narratives icon Show Narratives icon on toolbar Structure Chart For DEMENL Total Objects 14 Show Narratives CEMEMU Order Entry Menu OTH OPOTE Copyright Databorough Ltd 2012 Page 36 Detailed Structure Chart Diagram te Files ZA Object Where Used CUSTMNT1 ae EDZ G QEMENU Z3 H Deta
28. oOED 08 Ee CEOS Z3 H Source List of OEO08 in XANACDEM QRPGSRE Lines 167 View Level 4 ee E Eh E cC S E P U B SBGA amp fa Seq Mo res e lo Cae n uda M dE S e dux Ls cm A nonz nn GRENI ESFILE OE nona nn E K DISK 0004 00 E K DISE 0005 00 E K DISK 0006 00 v r4 Ili gt B A user can browse the source code of associated files by double clicking on it Alternatively select CUSFL3 from the Source Browser and opt for context menu Then select Zoom Source option Source Browser for the file CUSFL3 te Programs CEDOS E oOED 08 Ee CUSFL3 i5 Source List of CUSFL3 in XAN4CDEM ODDSSRC Lines 3 View Level 4 aol Lm la ml seg Mo uet ter ek OO01 00 Don O0 E RCUSF Lus ut E CUSNO 4 A user can also further drill down to the source code of associated PFILE CUSF of the LF CUSFL3 PFILE selected on the Source Browser for CUSFL3 te Programs CEOS E oED 08 CUSFL3 Z3 Source List of CUSFL3 in XAN4CDEM ODDSSRC Lines 3 View Level 4 aol Lm la I E ECUSF PETEEICUSE adz ut E CUSNO 4 Double click on CUSF to invoke the Source Browser for the file CUSF Copyright Databorough Ltd 2012 Page 75 Source Browser for the file CUSF te Programs OEO08 E oEu na Eg CusrF i3 Source List of CUSF in zAN4CDEM DDSSRE Lines 65 View Level 4 gol Lm la m seq No LM ee teens 0001 00 lea ele Uae CH AME TEET i Company DSDCDE TEAT Distributor TATUS
29. related to the file CUSF Furthermore the Data Model Diagram Details list displays only those relationships related to the file CUSF With the help of a file specific Data Model Diagram a user can view relations for any available files These relations can be understood better when we talk about them in the View Data section LFs Access Paths A user can opt for the LFs Access Paths option for a file from the Data Model Diagram The LFs Access Paths option shows all access paths associated with a selected file Select file CUSF and then select LFs Access Paths option from the context menu Copyright Databorough Ltd 2012 Page 87 LFs Access Paths option on DMD a Programs CB906R at Data Model Diagram at Data Model Diagram 2 2 mL Data Model Diagram for CUSF Total Objects 9 A gt i OoOo BEA Referred to by Referred to bi STATUS St Zoom Source LSLCDE Orig List ORG On Referred to by f Data Flow Diagram Object Where Used d Variable Where Used d at Data Model Diagram File Field Details eee ccess Path Diagram WI Fa Consolidated Rules Refers to by Annotate CUSHO Cus Hao Mark For Diacumenter More Info Ef Source Compare i This brings up the Access Path list LFs Access Paths for the file CUSF CBS06R at Data Model Diagram at Data Model Diagram EB Access Paths 2 3 i Li LFs Access Paths for CUSF Total Objects 14 i m Access Path Text Unique Keys
30. the selected program to invoke the source compare editor Copyright Databorough Ltd 2012 Page 119 AX Chapter 6 Metrics Analysis Source Compare Editor displaying the Code Differences mE Ay vk 49 XA Ta Summary Metrics Ta Metrics History E Source Compare i Text Compare SLMEMSEL Changed on 2011 09 22 SLMEMSEL of 2011 08 05 Z EXSR E EXZSRE C Until Exit Cancel C UIntil Exit Cancel C INOS DOWEO Z INOG DOWEUO C INi1z ANDEO T INiZ ANDE O C Display screen C Display screen C EXFHT EXFMT C TIf Exit Cancel C If Exit Cancel C INOS IFEQ T INOS IFEQ C INi1z OREO E INi1zZz ORE Cane MOV sm MOVE E uuu MOV Eom MOVE E ao MOM CN MOVE E LEAVE p T Watt m TETT r5 Screen Metrics There are various screen functions of a specific program The Screen Metrics is a display of these screen functions for a complete application and for all the application areas Screen metrics are designed to help refacing projects and UI rewrites They describe designs uses and relationships of file complexities thus helping to measure the database complexities The Complexity Level on Screen Metrics displays two groups i e the Grand Total and Application Area totals Hereafter all functions in application areas or cross reference application are grouped on a dual level of complexity and on type of function The Screen Metrics option provides low medium and high complexity classific
31. Analysis Application Dakal amp 6 209 50 1461PCF xAM4CDXAYSysEem Document Far XAMACDXA pdF Cancel The Type and Location dialog consists of two sections e System Documentation Type e Document Details The System Documentation Type section provides facilities to generate the following types of documents e Generate Single System Document Generates a single PDF MS Word document Copyright Databorough Ltd 2012 e Generate Individual System Document Generates a PDF MS Word document for each object e Generate System Documents Using Previous Values Generates system documentation using the options selected in previous instance of system documentation This option is only available for generated system documents select Generate Single System Document option The Document Details section specifies the document title generated system document name and its location A user can specify a different file name for the generated PDF MS Word document and a different location to save the generated document Click the Next button Copyright Databorough Ltd 2012 Page 49 AX Chapter 3 Analysis amp Documentation System Documentation Wizard Specify Contents X Analysis System Documentation Specify Contents Select Features bo be included in the System Document Object List Data Model Diagram LF Access Path details File Field Details Object Where Used Data Flow Diagram Normal Struc
32. Bus Routing Block Diagram gives user an idea of where and how the data that is input affects the output required enables user to see how an object within an application relates with other objects The Bus arrangement helps even non technical user to gain clarity into how a particular object correlates with the other s The user can generate a DFD by navigating back to the object list using the navigation arrows available on the Eclipse toolbar The user must select the object CUSF and then choose Data Flow Diagram option from the context menu as shown below Data Flow Diagram option e Files Z3 334 Object Where Used CLISTMMT1 mL Object List of FALLUSR ALL FILE PF ALL ALL Total Objects 50 Ar Ac a A Library Mame Type Attribute Description Statu FF XAN4CDEM CPYBKSRC FILE X PF Cobol copybooks D sAM4COEM PFXAM4CDEM CUSGRP EGDIIODUNEE er Groups A PFXAM4CDEM CUSTS ases B PF ANACDEM DELIV rv Areas B PFXAN4CDEM DISTS Object Where Used utors A PFXANM4CDEM EVFEVEMT D PFXAM4CDEM GENTAB variable Where Used ic Table File D sj att Data Model Diagram a Data Flow Diagram This brings up the DFD for the object CUSF Copyright Databorough Ltd 2012 Page 18 Chapter 3 Analysis amp Documentation Data Flow Diagram 2s Files Object Where Used ga usr 3 Object Centered Data Flow Diagram for CUSF Total Objects 70 gm DM ES a DSPPTYPES CUSF B Display Product sites
33. Dacumenter Change Application Folder Open Log Folder Open Application Folder Report an Issue This invokes Application Folder containing generated system documents Double click on a generated document to open it X Analysis also creates a log file under Application Folder It logs what the Document Generator does in the process of documenting selected objects Copyright Databorough Ltd 2012 Page 53 Application Folder containing generated document r PCF XANACDXA File Edit View Favorites Tools Help ay Back i gt Z7 Folders Address size Type 35KB Text Document 7KB Adobe Acrobat Dac s System Document for XAN4CDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced Window Help i LJ pe v SENIE SYSTEM DOCUMENT FOR XAN4CDXA TABLE OF CONTENTS Document Source Selected Optons EON ERROR SHORE RI TERT EMPTIO EEEE Object List for XAMAC DXA Access path details for CU SF File Field Details for CUSF Object Where Used for CUSF E Data Flow Diagram Norma for OE MENU Annctiston for OEM n Data Flow Diagram Normal for CUD Foe eens nce nee enna nee ranenran eranen enner as masa me sas mna Annotation for CUSF Siructure Chart Diagram Normal ir QEMENU Se eas ea a ete eee Annciaton for OEM n i Program Structure Chart for QEMEWNL __ 22 22 ee ne ceeeeeec cere LL e led eeaeee neen eam rorem am eea O26 11 69 in Copyri
34. F l CONDET REFERS TO COMNHDE aOR aOR DN 2 CONDET REFERS TO STEBAL SANORDMN E WABCS BD WA s 3 CONDET REFERS TO STEMAS aM ABCD a ABCD 4 CONDET REFERS TO STomMAS SW OOS SW OOS The Data Model Diagram displayed above is a restricted Data Model and it only displays the objects which belong to the application area MVCPROCESS The toolbar on the Data Model Diagram has an option to generate the Un restricted Data Model Diagram Click the Un restrict to Application Area icon Copyright Databorough Ltd 2012 Page 103 Unrestricted to Application Area icon Iz Application Area Diagram A a Diagram Data Model Diagram for M CPROCESS ALL Total Objects 13 cB fl Hw p Data Model Diagram for Application Area Unrestricted Il Application Area Diagram xi Data Model Diagram s Data Model Diagram for MYCPROCESS ALL Total Objects 74 nsaction type Order status description Status File Distributors description o Note the objects displayed in blue colour These are the ones which do not belong to the application area MVCPROCESS Data Flow Diagram Application Area Specific The Data Flow Diagram for an application area displays objects that belong only to that application area From the Data Model Diagram displayed above right click on the object CUSTS and opt Data Flow Diagram option Copyright Databorough Ltd 2012 Page 104 NW YN Chapter 5 Business Rules Analysis Data Flow Diagram
35. History Chart Displaying Cyclomatic Complexity Summary Metrics Ta Metrics History bS Metrics History Chart Ei mL Metrics History S00 1 700 gao p B 400 300 200 100 U E F F T Bai F T T P p 11 10 9 B F 6 5 4 3 2 1 Time in Months Interactive Source Members Low Total od Similarly a user can generate charts for all the other parameters Similarly user can check Metrics History for all the Interactive Batch Programs and Grand Total from the Metrics window Source code tracking The Metrics History also provides a facility to see the source code changes To invoke a source compare editor expand one of the listed programs from the Metrics History list Program Selected for Source Code Comparison Df Summary Metrics p Metrics History 53 Metrics History for XANACDXA Complexity Level Change Date Sour Cyc Cn Halst Maint In Low Total 33 Low Total Current State 2 241 74b 40 94 7 E3 05 months back 2011 10 27 2 211 te 40 852 06 months back 2011 9 2 2 lz te 40 052 CLISGRSEL Changed on 2011 09 22 CLISFSEL Changed on 2011 09 22 WU CLSTP Changed on 2011 09 27 TRMTPSEL Changed an 2011 09 22 SLMENSEL Changed on 2011 09 22 ORDSTSEL Changed on 2011 09 22 OSPPTYPES Changed on 2011 09 22 Ilii Double click on
36. IL Email FAXNO Fax No JTITLE Job Title LCTDAT Last Contact Date PSCD Post Code SALUT Salutation SINIT Salesperson STATUS Status B 13 Objects H 45 Objects H 1 Object H 2 Objects H 9 Objects H E CUSFMOLD Customer Site Maintenance Update 20 Fields ADD1 Address 1 ADD2 Address 2 ADD3 Address 3 ADD4 Address 4 APDATE Next Contact Date CNAME Company CNTRY Country CUSNO Cus No DSDCDE Distributor EMAIL Email FAXNO Fax No JTITLE Job Title LCTDAT Last Contact Date PSCD Post Code SALUT Salutation SINIT Salesperson STATUS Status cusfla For testinq No Attributes Sites by Salesperson No Attributes a CUSFLE Sites by Organisation No Attributes 6 CUSFL2 Sites by Status No Attributes a CUSFLS Sites by Dist amp Status No Attributes g CUSFL7 Sites by Last Cnt Date No Attributes 6 CUSFL9 Sites by Fax No No Attributes SA O R a CUSFLB Sites by Oriq List No Attributes m CUSFLD Sites by validator No Attributes a CUSFL1 Sites by Name No Attributes g CUSFL3 Sites by Number No Attributes a CUSFL6 Sites By Dist amp Name No Attributes m CUSFL8 Sites by Next Cnt Date No Attributes Legend Icon The Legend icon on the Eclipse toolbar displays details of the colour scheme used by DFD Click the Legend icon As shown below Legend Icon ZAUDCUSF E Audit CUSF file DSPPT
37. INTS DECI Ac COLINTS MWwCPROCESS ACCOUNTS ORDERS Ac COLINTS PLAM Ac COLINTS PRIRIT AC COLINTS SALES Application Area ACCOUNTS ACCOUNTS ACCOUNTS Area Flow Diagram Type Referred File Called Program Referred File Called Program Referred File Referred File Called Program Referred File Referred File Referred File Referred File Referred File AZANALDEA Object Count CUSTOMERS Wi Another important diagrammatic construct is the Area Flow Diagram As the name suggests this option is available for application areas only It displays programs and files available in an application area along with their relations Select Area Flow Diagram option from the context menu of the application area MVCPROCESS Copyright Databorough Ltd 2012 Page 99 Area Flow Diagram option in Application Area Diagram Application Area Diagram for XANACDXA 70 Files 28 Files NR j __17 Pgms 14 Application Area Diagram a xt Data Model Diagram Fee Overview Structure Chart Planning Systei Area Flow Diagram 105 Files 69 Files 84 Poms 81 Poms Z5 Work with Objects e Programs 5 Files ATEST Business Rules 70 Files Annotate t Pgms Document Application Area This invokes Area Flow Diagram for the application area MVCPROCESS Copyright Databorough Ltd 2012 Page 100 v AN in Application Area Diagram Chapter 5 Business Rules Analysis Area Flow Diagram
38. IX 2 LETNR LI CUSN 5P TEXT i Cus MNao E CUND customer 3 5p Uu zcusno cusna cusno zcusnoa cusno customer Customer cusna C1 C c1 0 01 EJ if I cu Level 5 Cascading Parameters Extending the information in Level 4 Level 5 includes references where CUSNO fields are parameters in a function called by another function Level 6 Aliases Level 6 adds all references to any fields that are aliases to the CUSNO field Level 7 Maximum Tracking Tracks the usage of a variable or a field to its maximum level of indirection This is the highest view level also referred as Maximum Tracking This level displays Variable Where Used information for all the levels mentioned above as well as any other possible references of the field CUSNO The Variable Where Used option can be opted over a large variety of items including Files Array Definitions Data Structures Sub Fields of a Data Structure Indicators Key Lists Data Fields File Formats Subroutines Program Variable Array Elements Parameter Lists Parameters Key Fields Message Ids EXCPT Names etc Structure Chart Diagram SCD In order to interpret the application design it is important to have some idea about how the control transfers from one program to the next SCD addresses this need by presenting a graphical diagram which contains relevant information as per control flow and call structure In addition you can view data input objec
39. Object Mame Select Report Columns and Options Column Metrics varMame Subr Object and Source ID Data Object Library OBJLIB Object Name OBJNAM Object Type OBJTYP Object Attribute OBIATR Object creation date OBJCRTDAT Object last used date OBJLSUIDAT Source File OBJSRCFIL Source Library OBJSRCLIB Source File change date OBJSRCFCHD C aae Ted BALEBe n Show report data at subroutine level Save and Submit Report Save Definition Only View Log The View Log icon shows the log related to the Metrics processing Copyright Databorough Ltd 2012 Page 132 View Log Icon on Specialized Analysis Toolbar 1 Specialized Analysis 2 z Analysis Metrics for XANACDXA Category Report Type Status 2 RPG Metrics Reports Click the View Log icon to check the log View Log Window gg view Log 3 Um Log Report Number af Lines 39 Log Time Report name Log text IMMETGEN A CVSRCC NO DLETHSTOU YES1 New metrics daba not generat 7011 12 05 05 39 19 786000 METGEMN ACVSRCUCCNO DLTHSTEFYES Mew metrics data not generat 011 12 05 05 37 12 728000 xMETGEN AV SRC NO DETHSTCCYES Mew metrics data not generat 7011 11 30 11 25 486 712000 xMETGEMN ACVSRCUCCNO DETHSTEFYES Mew metrics data not generat 2011 11 30 11 14 25 8632000 AMETGEN AV SRC ENO DETHST CYES Mew metrics data not generat 2011 11 24 09 13 54 6 9000 XMETGEM ACVSRCUCCNO DETHSTEFYES Mew metrics data not generat 2011
40. Objects b Input Services 1 Object b Output Programs z Objects Update Programs 9 Objects CLISFIMAIMNT Customer Site Maintenance CLISFPMOLD Customer Site Maintenance CUSLETSO Update Letter Sequence CLISRGZ Reorganize Customer File FAXERR1 Faxshot Errors Part 1 FASERR2 Faxshot Errors Part A FASSHT1 Generate Fax Shot CBCLISFMMT Customer Site Maintenance W WCLISF Work with Customer Sites Copyright Databorough Ltd 2012 mE g r ih CLISFLA Sites by Product renamed Fra cusfla For testing b Attribubes Li CUSFLC P Sites by Salesperson b Attributes Ci CLISFLE Sites bv Organisation b Attribubes CUSFLZ Sites by Status b Attribubes m CUSFLS Sites by Disk amp Status b Attribubes m CUSFL Sites by Last Cnt Date gt Page 21 View Annotation The View Annotation option allows user to see annotation for a specific object There is a red icon on the right side of the Object that denotes Annotated text see the following screenshot View Annotation Option fe Files J Object Where Used 38 cusF ES E Object Centered Data Flow Diagram for CUSF Total Objects 70 Po m amp E m CLISF CUSFLA Sites Sites by Product renamed Fro Pa aot eres cusFla Far testing UU pee b Attributes b Input Programs 45 Objects b Input Services 1 Object m CUSFLC b Output Programs 2 Objects Sites by Salesperson b Update Programs 9 Objects b
41. Oee2 nona OLY OOee2 OO1O odl O04 Juss una Une una nas n3 0056 Olel uu O0 uu uu ut uu uu OO ut ut ut ut ut ut ut ut ut ut ut OO uu uu uu uu uu uu uu uu uu uu ut ut ut uu pcnc cM lc EM DCL WAR sCUSNO TYPE DEC LEN 5 O CHGVAR amp CUSNO CUSNC CALL LETN1 sCUSNO amp PREFIX sLETSQ PGM FARM cCUSNO amp PREFIX sLLETSQ DCL WAR sCUSNO TYPE DEC LEN 5 0 CALL LETN1 sCUSNO amp PREFIX sLLETSQ CUSNO 5P D E CUSNO aZcusno cusnua CUSHO zciusnua cusna Customer Cuero E CUSNO E CUSNO DEL VAR i amp CUSNO TYPE DEC LEN 5 O CHGVAR amp CUSNO amp CUSNC CALL LETMl sCUSNO PREFIX sLETNR DEL VAR sCUSNO TYPE DEC LEN 5 O CHGVAR amp CUSNO sCUSNC CALL WESECF6B sCUSNO SERLC ge ge C c C C B ge sEXDNO DEL WAR lt CUSNO TYPE DEC LEN 5 O CHGVAR amp CITSN CUSNC CALL WESECF6BR2 amp CUSNO amp SERLC COSHNO COSNO ICOSNU SEINO CHAINCUSFLS Bl ADD 1 COSNO CHAINSECF B3 4 ADDCUSNU a CUSNA ICOSNU READE SECF LTTSNU ar D E LISNU Cusnu ICUSNU rouse SCUSnO cusna chainre eval TEXT Cus HNo ICT SH ACOSO TEAT Cus No amp MESHE H O0 Level 2 Level 2 adds extra indirect references one reference removed to the Level 1 list E g CUSTOMER is set equal to CUSNO a direct reference and then CUSTOMER is a variable in the statement IF CUSTOMER ZEROES a one reference removed ind
42. R etn eee ee a m DERI AM IE Aud c T Iu rer O021 00 Initialise Parameters 0030 00 0765C EXSR PVDD1 no3z nn C INITIALISE SCREEN Dosaza ur L calculate predicted interest 0046 00 C EXSR RETRN E 0079 00 C IF CAP UPDATE ARREARS ON MIN EVENTS 0103 00 C RETEN i 4 00 xx cc a df dc d f d f a ee Tee dfc a a a a a a oo ae 0105 00 C SPVOD1 BEGSR O106 00 a a a o a a a a a c c c c c c 2 c 2 fff fff fd f e 0107 00 C PVOD1 VALIDATE NON SUBFILE SCREEN DATA 0108 00 Carrere eee eee eee eee TTT ATT TATA AAA a a a a 0122 00 c CALL XBGSCD 0138 00 C ENDSR v ES TIT e View Level 2 includes File Operations e View Level 3 includes Program Structure Operations e View Level 4 includes Field Operation e View Level 5 includes the Commented Out code amp Exclude Flowchart The other way to look at program source code is to check the execution model of that program which is the Data Flowchart Opt for Flowchart option from source browser This generates Program Flowchart in MS Visio Flowchart option e Programs Ba cesor E3 Source List of CE906R in X4N4CDEM QORPGSRC Lines 156 View Level 5 H E Hl gE E E F E H S9 LE 00 S F8 EUM Flowchart o021 00 SADETE ETE t Flowchart for current Subroutine Procedure Copyright Databorough Ltd 2012 Page 66 Flowchart in MS Visio y ORPGSRC_XAN4CDEM_CB906R vsd Microsoft Visio SEE File Edit wiew Insert Format Too
43. S OVA rFeybor rT OUE rna oe aa Bo UAM 7 SAME SS SWAT SNO US Maximum allowed storage NOMAX Kilobytes NOMAX Highest ocChedule priority ee 3 O Jope dee p Onea eee ODFTJOBD Name Dror c eee NE qc QGPL Name liBL CURLIB gsm Pod ee eee A mre NONE Name NONE Ic FS ExIL F4 Prompt F5 Refresh F12 Cancel PIS How to use this display F24 More keys Step 3 Logoff Copyright Databorough Ltd 2012 Page 143 BR sept ete Code Request om Appendix B License Code Request Form 2 Databorough Producers of X Analysis License Code Request Form Kindly complete and confirm the details below and fax this form to 44 1932 859211 Alternatively this can be emailed to admin databorough com company T Contact name Contact email Telephone Fax Address Post Code Country AS 400 Serial No Model Processor Group WRKLICINF Agent or Distributor Comments If software is required to be sent and the AS 400 is not located at the same address as indicated above please provide the appropriate delivery address and contact details below AS 400 Contact Contact email Telephone AS 400 Address Post Code Requested By Date Position Unit 12b Weybridge Centre 66 York Road Weybridge KT13 9DY United Kingdom Tel 44 0 1932 848564 Company Registration Number 01795263 VAT number 492 6942 05 Copyright Databorough Ltd 2012 Page 144
44. SFLC 2 4 EL m ome Navigate back to the Source Browser for the program OE008 using the back navigation arrow Zoom Source in SEU Lpex Editor Lpex Editor A user can make changes to the source code using the Zoom in Lpex option Click the Zoom in Lpex icon available on the Source Browser Toolbar Zoom in Lpex option on the Source Browser MM T EE EN NE EXSR SRYCTIS This invokes the Lpex editor from within the X Analysis Perspective SEU A user can make changes to the source code using the SEU option Click the SEU icon available on the Source Browser Toolbar Copyright Databorough Ltd 2012 Page 77 Invoke SEU option from the Source Browser Source List of DEDU8 in XAN4CDEM QRPGSRC Lines 220 View Level 5 ee Seca EE pe ee SEMEN F amp fa Seq Mo hada sacco do aaa a els nace 4 5 6 ee yf SEU DG al Fee C BPeceive Parameters Zoom in Lpex is a default option for all IBM Rational products having an RSE plugin For all other eclipse products SEU 5250 emulator is the default option A user can change the default settings using the X Analysis General Preferences option Creating a SEU 5250 emulator session requires the user XAN4SEU IBM i Please refer to Appendix A for creating the user XANASEU The X Analysis Plugin comes with default preference settings To change the preference settings Start IBM s RDi RDp WDSC or Eclipse 3 2 and above then select Windows
45. TEZT Status COLHDG 2ts l p TELMO TEXT i Fhone ETH TEXT Extn LCTDAT TEXT Last Contac COLHDG Last Cnt EDTCDE Y APDATE TEZT Next Contac COLAHDG Next Cnt EDTCDE Y I Pe de de de de ode dede doge a X Analysis makes the browsing of an application very easy In the Source Browser a user can go anywhere from anywhere thereby assisting the user to drill down to a particular feature resulting in a better understanding of the application Let us now move on to some other features available on the source browser Bring up the Source Browser for the program OEO008 Screen Design Most of the application programs interact either with display files or with printer files DSPFs PRTFs The Source Browser provides a feature to view layout of the associated display printer files Note this feature does not require the execution of an actual program Click the Screen Report Design icon available on the Source Browser Screen Design option on the Source Browser e Programs Ee obo E3 mL Source List of OE008 in XAN4CDEM QRPGSRC Lines 220 View Level 5 r E E AEH P Ww Enc See DL 7 m Re oeg No AU en Se ae pan 0109 00 This brings up the Screen Design window for the program OEO008 Copyright Databorough Ltd 2012 Page 76 GN Chapter 3 Analysis amp Documentation Screen Design option for the program OE008 Se Programs GEDDE EB Device Design 53 mL Screen Design for GEOO1DF OE
46. TO1 I 2CMAME blank ffFTO1 I ZTELMO lt gt blank and ZzFTO1 I ZTELMO ZZFTOI I ZFAXMO lt gt blank and 27FTO1_ I ZFAXMO ZZFTO1 IzDSDCDE lt gt blank ZZFTO1 I zUSERMIM blank Scroll down to the object CUSTMNT1 and double click on Rule No 00002 This zooms into business rules of the program CUSTMNT 1 with the cursor positioned on the selected business rule Copyright Databorough Ltd 2012 Page 107 Business Rules for program CUSTMNT1 Business Rules for CUSTMMNT1 in XAN4CDEM QRPGLESRC View Level 2 ES Fly B9 ue EEA at Business Rules ROOOOZ Cus No not found on Sites ff If rrors found IF Not Found CUSFLS3 Display error message and re display screen aMZAdGE ERBMSG ITER ELSE LEAVE END End Hor each screen page If Not F3 F12 If confirmation received then update or write record End Jf Not F3 F1 E VALIDI amp d fl z 7 lt 7 DMD Details Business Rules 2i Business Rules For YALL Number of Lines 340 Source Member Rule No Field File Rule CLSFMOLD 00017 SALUT USF Salutation lt gt blank and lt gt blank and lt gt blank CUSFMOLD QUOT CLISNO CLISF CUSTOMER CUSLETSO OOOO CLISRO USF Cus Ma Found an Sites CLISREAD poggi CLISNO CLISF Exact match nat Found Far Cus Ma on Sites CUSRG2 poggi CLISNO CLISF Cus Ma Found an Sites EnCLISTMMTI o0001 D5DCDE CUSTS Distributor not Found on Distributors E CUSTMNT1 gogz i LISNO C LISTS Cus Ma nat
47. VE E NS Has d HH E MOVE c MNPOOOZ MSGID 0328 Hu CALL ETNHHTZX 0329 00 E PAEM MSGID 0330 00 i PAEM ERE oG 0331 00 C LEAVE Hee a 00 fe ENDIF 0333 00 C ENDDO b i B Export List to PDF Microsoft Word or Microsoft Excel X Analysis provides a facility to export data from any displayed window The window toolbar on the Object Where Used view has an Export Options dropdown button with Export to PDF Export to MS Word and Export to MS Excel as options Select your desired option to export the list into PDF MS Word or Excel Use X Analysis preferences to set export option as PDF or MS Word Copyright Databorough Ltd 2012 Page 17 Export icon on Object Where used e Files A Object Where Used 2 2 CUSTMNT1 mL Object Where Used Usage References For CUSF Total Objects 65 m A Object Type Text Usage CE Export to PDF CBCUSFMNT PGM Customer Site Maintenance File Lp Eg Export to MS Excel CBCUSTMNT PGM Customer Detail Maintenance Long Fields used File Rew Data Flow Diagram DFD A DFD as the name suggests is a pictorial representation of data flow It depicts the interrelationships among all the files and programs contained within a particular application A colour coded DFD simultaneously plays the dual role of showing the data flow at high object level besides providing contextual details regarding specific variables and parameters passed between objects The
48. X Analysis Professional TUTORIAL Software Version 9 8 This product requires a security code to activate it For Security Code please call Databorough N America 705 458 8672 Europe 44 1932 848564 Alternatively contact Databorough by email at support databorough com Or info databorough com X DATABOROUGH Weybridge Business Centre 66 York Road Weybridge KT13 9DY UK Telephone 01932 848564 Facsimile 01932 859211 Copyright 2012 Databorough Ltd All rights reserved A Table of Contents Table of Contents Welcome to this Tutorial eere 3 How this Tutorial is Organized sus soes rait mp tenendi aep ESQ Rando amat o e xin 3 Who Should Read This TUtoralscisnckienbenvbuvetsankbintsatebeV vl sation qa soak rage ate sae Etico air nOn en 4 Acronyms Used in This DODGE sero Re bib FUDUPEEREUEN EUU ERR HERR TE IERI Sr PI sree 4 Chapter 1 Introduction to X Analysis 5 Benefits of X Analysis 2 0 cece eececccecceeseecceccaeeecceecaeseceeecuenececeeeaeseceeeeeaessceeeseuaneeeesseauaecesessaneeeessaenees 6 Sici P citi MPO TT RE ES 6 Chapter 2 Getting Started with X Analysis Client 7 TAS TS Sl E S P 8 Application Library ee 10 Chapter 3 Analysis amp Documentation 12 Chronology of FEAtUreS cccccccccsesecccecceeseceecceesseeeeee
49. YPES Display Product Y Input Input z Fields 1 Field The colour scheme helps user to understand the reference and association of specific objects Copyright Databorough Ltd 2012 Page 25 AX Legend Expanded fe Files AA Object Where Used SU Cusr 3 Object Centered Data Flow Diagram for CUSF Total Objects 70 a BID i Input Output tl LI DSPPTYPES A Update Display Product Input Input 1 Field Called e CNAME t PRPCDE Product Code s CUSNO Calling Access path z LI ZALIDLISTS uy Internal routine Audit LISTS file Input Field s PRPCDE Product Code s LSLCDE Orig List Code Ll Variable Where Used Input 1 Field Chapter 3 Analysis amp Documentation mL r gt b Ac b Ing b In bor P Up 4 we This specific option is for conducting impact analysis The option basically apprises you of the entire source lines where the field variable of a file or program has been used and or referenced in any of the source members and their associated device files and copybooks Throughout an application the Variable Where Used option lists all source lines with references within source members made to fields variables of a file program their associated device files and copybooks Continuing with the same example i e OE002 we can figure out that the fields used by object CUSF are CUSNO
50. ZEIIIZIEZIZIIIIIIIIIIIIIITIIIIIIIIIIE Oozi ud C Receive Parameters 0018 00 E EMTRY PLIST 0019 00 E PARM 3 3 RTH l Be 0021 00 C Until F3 0022 00 E THOS DOUEQ 1 OO24 00 Cr Initialise screen 0025 00 E MOVEACHD 1 CMDDTA nae u E MOVEL BLAMNES Ch AME a TIT gt Let us now discuss other important options available on the source browser Member X Reference On the source browser for the program OEO006 select the line number 0022 00 with indicator INO3 From the context menu on INO3 opt Member X Ref option Member X Ref option e Programs Es ceog x 7 mL Source List of OE008 in XANACDEM QRPGSRC Lines 220 Yiew Level 5 HB S B Hl E E E H9 ut A SBE E aA Th ke ae i ee i ee ee ce lI Iz F S Ls adi eel 2 3 IOS E OO24 00 C Initialise z Variable Where Used b 0026 00 c Enhanced Member Ret CN AME 0027 00 Indicator Where Set ADDI 0028 00 c mevnucsuamns ADDS This displays the Member X Ref view for the selected variable IN03 The Member X Ref lists all source lines where the selected Field Variable used referenced Copyright Databorough Ltd 2012 Page 70 Member X Ref ted Member X Ref 3 a A H I d Member x R eFerence Far YINOS in xAN4CDEMIQRPGSRC OE008 Lines 5 View Level 1 seq No DEDOLIDF i OOe2 00 DOUEQ 1 0050 00 IFWE l O066 00 IFWE l Do 7 nn LEME 1I lt TIT Jump to Subroutine One of the impor
51. a Objects Show Options for Objects Hu cuse 3 Object Centered Data Flow Diagram for CUSF Total Objects 70 Expand Collapse Referenced Objects i E eee CLISCPY Customer Copy b Attributes Ei SECFO Reorganize Codes File b Attributes M gt The DFD takes another dynamic form when user gets to expand the referenced object s on selecting a particular category from the main object s box The following screenshot displays the action to be performed Copyright Databorough Ltd 2012 Page 20 x Files Object Centered Data Flow Diagram for CUSF Total Objects 70 n i Expand Referenced Objects 3 Object Where Used S9 CusF E3 E IB 3s CLISF Sites b Access Paths 13 Objects b Input Programs 45 Objects b Input Services 1 Object b Output Programs 2 Objects Update Programs 9 Objects 4 Chapter 3 Analysis amp Documentation mL r O CUSFLA Sites bv Product renamed fra custa Far testing b Attributes CUSFLC Sites by Salesperson b Sttribukes A single click on the arrow icon adjacent to Update Programs reveals all objects updating the file CUSF The following screenshot displays the expanded referenced objects list 2 Files Object Where Used HB USF Object Centered Data Flow Diagram for CUSF Total Objects 70 Expanded view of Update Programs a m o Bs CLISF sites b Access Paths 13 Objects b Input Programs 45
52. at some rows are blank under the application area column which means that the object does not belong to any application area Similarly note the sign which means that the object belongs to multiple application areas Summary Report The Summary Report option generates structured report for the Metrics Analysis and the Problem analysis as a PDF MS Word document Select Summary Report option available under the sub menu Audit Options from the context menu on XAN4CDXA This invokes the following documentation wizard Copyright Databorough Ltd 2012 Page 135 Summary Report Type and Location X Analysis Audit Report Type and Location Select the type of documentation and its location Audit report generates Single document with documentation of the selected Application 4reafCross Ref Audit report Documentation type Generate Single Audit report Document Generate Audit report Using Previous Values Document Details Marne Browse Audit Report Far XANCDXA pdf Path C Documents and Settings alakhitly Documents s 4nalysis Application Datal amp 6 209 50 146 PCF XANACDEZAVAudit Report For XANA4CDEA pdf Cancel Specify the Type and Location information and click the Next button Copyright Databorough Ltd 2012 Page 136 Chapter 6 Metrics Analysis Summary Report Options X Analysis Audit Report Options Select option to be included in the Audit report
53. ation of the available screen functions The Screen Metrics information displayed for the complete application and its application areas The Screen Metrics information displayed under the following headings e Grid type functions e Record type functions e Other functions The following screen displays the Screen Metrics information for the cross reference library XANACDXA Copyright Databorough Ltd 2012 Page 120 Screen Metrics for cross reference library XAN4CDXA a Screen Metrics for XANACDZA 4E IE m A Complexity Level Units Files Database Fields Work Fields Outgoing Calls Incoming Calls Function Keys Conditioning Fields Grandtotal fiat isa ode 9s at INI High 23 14 105 23 12 10 8 57 Average 104 127 513 650 H Low 14 13 2b 3 Application Area Breakdown ACCOUNTS 54 4i 38 144 40 21 21 280 High E a a N H Average b 2 24 38 3 0 3 Low 0 0 0 0 0 0 0 0 CUSFMAINT 4 44 333 BBB 254 CUSTOMERS 70 134 510 Y 70 55 O 49 030 High 0 0 0 0 DO O 0 ZO10 h 9M0 The Metrics information displayed above has the following columns 1 Complexity Level This shows various groups The top most group is either Grand Total or App area totals All functions in application area or cross reference application are then grouped based on complexity and then on type of function Units Sho
54. ck on a record to display the complete record Copyright Databorough Ltd 2012 Page 92 AX Double click on the record Bertwhistle amp Company Ltd This brings up the record display along with its dependent files data Chapter 4 Data Modeling Record Display with Dependents L Programs Ea CB906R d Data Model Diagram lt Data View for CUSFL1 C NAME DSDCDE Sts USERNM SALLIT JTITLE EMAIL WEBSIT CNTRY ChIMNT1 ChIMNT2 CMIMNT3 PRPCDE Orig List Spec Req ORIS Berbwhistle amp Company Ltd DT 8 Databorough Tech 0 5 WE statuss ooo Janet Dawson Lr rs Financial Director jdawson bertco com WAAL berkco cam change comment 1 amp again amp again change comment z amp again change comment 332xxxyyvy LR 1 1 E OO000 TELMO EXTM Last Cnt Date Mexk Cnt Date FAXMO ADD1 ADDz ADDS 4004 PSCD ALTTEL ALTTL2Z FDATE CRTMAIM CRTDAT LIPDINAT A ooo ll Security Codes Product Code Srl na Elend Agent Code Comment Line 1 Code iiti LDEMO Expires The tab at the bottom displays dependent file data These are any ACCESSES OWNS REFERS TO relationships for the file CUSF in t
55. cords in this file Deleting Programs The number of programs deleting records from this file Total References The total number of programs referencing this file in effect total of 3 6 See Ic The following screen displays the File Metrics information for the cross reference library XANACDXA Window displaying File Metrics for the cross reference library XANACDXA File Metrics for XANACDXA Sa d Mame Units Fields Access Paths CreatingPoms Reading Pgms Updating Pgms Deleting Pqms Total References s ETIENNE Business Process Logic Metrics The Business Process Logic Metrics report displays the migrated logic data in metrics form total lines included lines excluded lines unmarked lines etc The following screen displays the Business Process Logic Audit Report for a XAN4CDXA Copyright Databorough Ltd 2012 Page 123 Business Process Logic Audit Report for XAN4CDXA Ta Summary Metrics E Business Process Logic Audit Report for XAN4CDXA i al Po d Total Lines Excluded Lines Controller Lines Process Logic CBS06RR CHT CMAINT CHT CMAINTR CONOO1 CONOO1LR CLISCPNY CUSCPYR CUSFMAINT oOo Ooo Ooo oo E a Specialized Analysis Measuring and managing the quality and complexity of a code base is the topmost priority for a systems analyst Specialized Analysis is an invaluable feature that allows one complete freedom to create customized reports using the full metrics database in
56. d sA N C Navigation Metrics Dashboard a B 192 168 170 10 W XAN4CDXA XAN4CDEM Tutorial System Work With Members L2 Application Area Diagram at Data Model Diagram im Overview Structure Chart a all Objects A Programs m E Files fg All Procedures lg Exportable Functions e J Source Files nm Business Rules pes ee Consolidated Rules mnane H Regenerated Frograms Copyright Databorough Ltd 2012 Page 11 Chapter 3 Analysis amp Documentation Before we begin to read into the sophisticated features of the specialized Analysis and Documentation solution set by X Analysis it is very important to learn why analysis and documentation has become such a major concern When business applications the in house business codes aka legacy applications are programmatically written their longevity and success is the result of well crafted application designs Although more than four decades have elapsed thousands of IBM i applications are still in use However it is said change is the only constant Therefore superior application designs notwithstanding reasons like continual technical enhancements syntax variations in programming styles financial and time constraints and absence of original application designers and or monolithic application codes have rendered changes inevitable for the existent application designs When these monolithic application tomes are decoded system analysts or software pr
57. d to data model extraction While analyzing a legacy system it is important to understand the application s design An analyst looks for the implicit Data Model information of the legacy system which is the foundation of the application s design In the context of X Analysis the term Data Model not only refers to the physical model of a database design but also refers to the foreign key or the relational model X Analysis automatically derives an explicit physical amp logical data model by analyzing both the actual data and the programs that use that data to verify the existence of any cross file relationships X analysis verifies these potential relationships by performing an integrity check to ensure that all data from dependant file validly refers to the data records from the owning file A complete data model accurately describing all possible relationships between each file is essential for productive maintenance and development work Such a model also provides a foundation to automate critical data administration tasks such as referential integrity testing and test data extraction The graphical representation of automatically generated Data Model information in X Analysis is a Data Model Diagram The Data Model Diagram displays file relationships for an Application or an Application Area Generating Data Model Diagram Double click on Data Model Diagram node under the cross reference library XANACDXA to display the Da
58. e DMD Details view with Hide Description icon Business Rules Member X Ref 1 Screen Fields DMD Details 22 n 22 mL DMO Relations For ALL Total Relations 46 Hide Description RelMo Dependent File Relation Type Main File Dependent Fields Parent Fields Dept 1 Contacts REFERS TO Status file Ss Status CNTLF3 Contacts REFERS TO Sites Cus Mo Cus Mo Contacts REFERS TO Names Index Contact Mame Contacts OWNED BY Products Prod Code Code CHTLF4 Contacts REFERS TO Salespersons Sales Person Person Contract Detail REFERS TO Contract He Contract Contract Let us now move on to another aspect of data model diagram A single click on an object displays the references of that object with other objects in the Data Model Diagram Click on the object CUSF to view its references Copyright Databorough Ltd 2012 Page 85 IN Chapter 4 Data Modeling Data Model Diagram with the selected object CUSF e Programs CB906R zi Data Model Diagram 22 mL Data Model Diagram for ALL Total Objects 50 m fl Po GA SLMEN Status File Mames _ Products Salespersol STEGRP2 CONDET Stock Group 2 Contract De TRNHST PROJECT UT DELI A STEGRPS TRE Delivery Areas Stock Group 3 Project Tracking Transaction History Purchase CONHDR Conkrack Hee CUSGRP Customer Groups Organisations Lists Distributor 4 The screen above displays relations for the
59. ed Rules Annotate Mark For Documenter Refers to by CUSNO Tus Ho Mark as web Service More Info Now a new window appears displaying File Field Details information File Fields Details for the file CUSF a Programs CB906R at Data Model Diagram i File Field Details 2 5 7 File Field Details for CUSF Total Fields 47 im m Mnemonic Long Mame Type Length Dec Pos Inp Buf Pos Display Grid5 Record Sc Company d34 oooi es e a D5DCDE Distributor HAR DOO 00035 2 00 3 00 STATUS Sts HAR DOCU OOS 3 00 4 00 TELMO Phone HAR DO 17 Ontras 4 00 5 00 ESTN Extn CHAR agge 00055 5 00 6 00 LCTDAT Last Cnt Date ZONED OO0UE OU0G1 6 00 7 00 APDATE Next Cnt Date ZONED OO006 000er 7 00 B LISER MIT Contact CHAR DDO34 OOO S 2 00 9 00 SALLIT Salutation CHAR DO0034 OO 9 00 10 00 JTITLE Job Title CHAR DO034 0141 10 00 11 00 Fash Fax Ma HAR 00015 00175 11 00 12 00 EMAIL Email HAR O0040 00190 12 00 13 00 WEBSIT Website HAR DOO anz3 13 00 14 00 amp Lil c xc Copyright Databorough Ltd 2012 Page 89 Access Path Diagram APD APD is a graphical presentation of all access paths related to a specific file The diagram can be generated by simply choosing the Access Path Diagram option from the context menu over a selected file CUSF Access Path Diagram option on DMD Data Model Diagram for CUSF Total Objects 9 fl fj Po g zoom Source m Zoom in Lpex Referred to by Referred to by Ref
60. eeeeceeeeaeseceeesuenseeeeeeuenececesaaeeeeeessauaeeeeessaaeeeess 13 Work with Objects EE 14 Ee WT U E Rt 16 Export List to PDF Microsoft Word or Microsoft Excel vcccsiininiasewsonis got Rn ee nns 17 Data Flow EB PAP QRAMMTMEH 18 Variable Where Used sicsvomiveielet conpicntievaionsq cocks atsagecek giis sae annes ae On ien vl SO End oe 26 Structure Chart DISSESITES SOD een nee ee en CITED BOCETIMR UIQUN EN DEP U REIN 31 Detailed Structure Chart s ipcaninssxsyocsncd qoi cwnssaneinnacsqaisesuallatieeanayansaarce EUR obl Ru DU DNE EDU RA 36 Hierarchal Structure B arc na a cera insane TRTOEETRTu 37 Document PAU ise seeds terenn cea epi apiece dette qe ee pita de ood aa a aa raa O etu Re re iini e UR LEON i EE 44 SOUFCE BONTE oen qon dense EE dM I ee a E E E ne eee 60 OUI BITOW EF FODA RR m eem 62 Other Options on the Source Browser ccccccsssecccccssssecccseasseeeecseasseseccseasseeeceseaseeecssaaseeeeeseageeees 69 Chapter 4 Data Modeling eese 80 Generating Data Model Diagram usdeeseviieti xr aaior Petar User PEDRXY RIGEN UR ERR rcr order RS rbi Enron 81 CES ACC cc ci CERT E m 87 File Field Details 7 PIED eduaieoretessanandodi raa Sadendi i wes aa tori pad wea th Sob ucro 89 Access Path Diagram APD ssssssssssssssseseeneennnnennnnnnnnnnnnnn
61. efinition Source Object Reports Delete Report Definition HARDCODE Programs with hardcoded libraries 7 MISSING Source or objects missing SRCOBJDT Source change date after object created Database Reports DATAERR Database File and member errors and alerts DSGNALRT Database design alerts Select Modify Report Definition option to invoke the report configuration dialog Copyright Databorough Ltd 2012 Page 128 Report Definition Dialog X Analysis Metrics Report Specification and Submission Report Mame Report Title General cross language complexity by SUBROUTINE Report category RPGMET wt Application Area All Members Selected Object Mame Select Report Columns and Options Column Metrics varMame Subr OB IN AM Object and Source ID Data OBISUBHAM Object Library OBJLIB OBJATE Object Name OBINAM CYC Object Type OBITYP Object Attribute OBIATR Object creation date OBJCRTDAT Object last used date OBJLSUIDAT Source File OBJSRCFIL Source Library OBJSRCLIB OBJSRCFCHD Show report data at subroutine level OBJATR RPG OR QBJATR RPGLE Filter Search variables User program Save and Submit Report Save Definition Only After changing the report definition click the Save Definition Only button User can click the Save and Submit Report to generate a report Copy Report Definition The user has the option to copy an existing report definition This shall retain an existing repo
62. er with access to other features contained within an object There are features and options as varied and flexible like Hide Show Object Expand Collapse Referenced Objects View Annotation Attributes all of these and more are explained in the sections ahead Hide Show Object At times in order to have better understanding of object interrelationships user may want to hide show all objects pertaining to programs A single click action on the icon alongside the objects enables the user to hide show objects In the following screenshot the icon against Access Paths is clicked to hide objects Copyright Databorough Ltd 2012 Page 19 fe Files Sy Object Where Used 38 Cusr 53 Object Centered Data Flow Diagram for CUSF Total Objects 70 e A amp o s USF Sites b Access Paths 13 Objects b Input Programs 45 Objects b Input Services 1 Object b output Programs 2 Objects b Update Programs 9 Objects Hide Option for Objects 3 ide Objects Chapter 3 Analysis amp Documentation mL r m CLISFLA Sites by Product renamed From cusfla For testing b Attributes CUSFLC Sites by Salesperson b Attributes The following screenshot shows how another click displays all the objects within s Files bh Object Where Used amp EH USF Sites b Access Paths 13 Objects b Input Programs 45 Objects b Input Services 1 Object b output Programs 2 Objects b Update Programs
63. erences from the sub menu Object Where Used This brings up the Object Where Used list for the Usage References of the object CUSF Object Where Used e Files A Object Where Used 2 2 Object Where Used Usage References for CUSF Total Objects 65 Object Type Text CBCLSFMMT PGM Customer Site Maintenance idated written To Bv Program CBCUSTMANT PGM Customer Detail Maintenance Long Fields used File Read By Program CBCLISTS PrGM Work with customer Cobol vers File Read By Program CBTRMHST FROM Work with transaction history File Read By Program CUSCPY PGM Customer Copy File Read written To By Program CLISFL1 FILE Sites by Mame Logical File CLISFLZ FILE Sites by Status Lagical File CLISFL3 FILE Sites by Mumber Lagical File CUSFLS FILE Sites by Disk amp Status Logical File CLISFL amp FILE Sites By Disk amp Mame Lagical File CLISFL7 FILE Sites by Last Cnt Date Logical File CLISFL8 FILE Sites by Next Cnt Date Logical File lt TIT The Object Where Used window is a multicolumn display The Usage column displays uses of the object CUSF in a particular object The Object Where Used window also allows a user to drill down to a specific line of code where the object is used Scroll down to the object CUSTMNT1 in the Object Where Used window displayed below Copyright Databorough Ltd 2012 Page 16 AX s Files Object Where Used Usage References for CUSF Total Objects 65
64. erred 1 STATUS LSLCDE Org List ORG fa Data Flow Diagram Object Where Used d Variable Where Used d lll File Field Details LFs Access Paths Access Path Diagram 3 z Data Model Diagram 5 Consolidated Rules Annotate Refers to by CUSNO ue ae Mark For Dacumenter Mark as Web Service More Info wf This brings up the Access Path Diagram for the file CUSF Copyright Databorough Ltd 2012 Page 90 Access Path Diagram for the file CUSF af Data Model Diagram af Data Model Diagram ES Access Paths Ej cus 23 N i mL Access Path Diagram for CUSF Total Objects 14 A a H Oooo d 7 CUSF E Sikes CUSFLY Sites by Fax Ma FAXMO Fax Mo amp Hill x E CUSFLA CUSFLB CUSFLC Sites by Product renamed From Sites by Orig List Sites by Salespersa cusflaf or testing LSLCDE Orig List Code SINIT Salesperso aE ae GEE CUSFLE CUSFL1 CUSFL 2 Sites by Organisation Sites by Mame Sites by Status STATUS status CUSFL5 CUSFL6 CUSFL Sites by Dist amp Status Sites Bv Dist amp Name Sites by Last Cnt Da LCTDAT Last Conta STATUS Status STATUS Status Go back to the Data Model Diagram displaying the file specific Data Model Diagram for the object CUSF View Data X Analysis allows a user to view file records from an application s data model A user can view the actual records held in PFs using the View Data option The View Data option is availab
65. exposes the Business Rules implicit in the data and the process models of an application but also digs out the vast amount of business logic buried inside the source code of the programs Over two decades of dedicated research and development has rewarded us with a sophisticated software solution like X Analysis built to meet the requirements of advanced computing and analysis Today we are at that exciting phase from where we can look forward to being more progressive and introduce futuristic Re engineering or Re architecting tools and solutions The X Redo module is one such innovate As we know X Analysis dissects legacy application programs to decouple screens from embedded business logic This componentization can be leveraged by the X Redo module to generate JSFs JavaBeans and ORM objects thereby assisting in Re architecting a legacy application in J2EE Having seen the X Analysis solution set in action you are now equipped to get on with the application redevelopment Copyright Databorough Ltd 2012 Page 141 ee Appendix A Enabling the SEU Interface Create User Profile XANASEU When browsing source code using the AS400 SEU it is necessary to be logged in as user XANASEU The following gives instructions for creating the correct user profile Step 1 Logon as QSECOFR Step 2 Create user profile XANASEU Use the CRTUSRPRF command to create the user profile XANASEU Make sure that the following parameters are set
66. ferences databases and ensures that the display is always up to date and is a true representation of the application on the IBM i Prerequisites Before starting this tutorial the following are required The X Analysis server and the Client components should be installed to an IBM i server and a Windows PC respectively The demo library XANACDEM and its cross reference library XAN4CDXA should be successfully restored on the IBM i For details on how to implement these prerequisites please refer to the X Analysis User Manual Note This tutorial only teaches the usage of the tool and not topics like Initialisation Reengineering etc Copyright Databorough Ltd 2012 Page 6 Chapter 2 Getting Started with X Analysis Client The chapter gives you the sequence of steps to get started with the software There are simple guidelines that accompany individual screenshots making the activation process easy to understand The chapter contains Take the first step Open Perspective and select X Analysis Perspective page 8 Instructions to fill the X Analysis Signon dialog screenshot of the dialog box pages 9 10 Expanded Application Library screenshot page 11 Copyright Databorough Ltd 2012 Page 7 Take the first step Start IBM s RDi RDp WDSC or Eclipse 3 2 and above Select Windows gt Open Perspective gt Other gt X Analysis Open Perspective menu m i B gd Dh Mew Window Mew Edi
67. file CUSF This helps a user to make out all the relationships for any selected object Another way of understanding file relations for any specific file is to have a file specific Data Model Diagram A file specific Data Model Diagram displays the data model information for a given file only Double click on CUSF to get the file specific Data Model Diagram Copyright Databorough Ltd 2012 Page 86 File Specific Data Model Diagram for CUSF e Programs CB906R at Data Model Diagram at Data Model Diagram 55 mL Data Model Diagram for CUSF Total Objects 9 H fal T Po B Referred ta by Referred to by Referred ta by Referred ta En STATUS St OSOCOE Distribute LSLCOE Orig List ORG On Refers to by Refers to by CUSHNO Cus Mo CUSNO Cus Mo lil Business Rules i Member X Ref 1H Screen Fields zi DMD Details 25 DMD Relations For CLISF Total Relations 8 Rel No Dependent File Relation Type Main File Dependent Fields Parent Fields l Sites REFERS TO Status File Ss Status CLISFL2 Sites REFERS TO Distributors Distributor Code Sites REFERS TO Lists Orig List Code CLISFLB Sikes REFERS TO Organisations Organisation organisatio CUSFLE Sites REFERS TO Products Product Code Code i anbacEs REFERS TO Sites Cus Mo Cus Ma Purchases REFERS TO Sites Prospect Mo Cus Ma Security Codes OWNED BY Sites cmp Mo Cus Mo The Data Model Diagram displayed above is a file specific Data Model Diagram for CUSF It only has objects
68. for application area MVCPROCESS cH Area Flow Diagram 22 Area Flow Diagram for M CPROCESS Total Objects 327 ORDERAUD 1 Batch test Audit program change lewel 3 WECUSL WKCUSLY Validity Checker for WRECOUSL unmuusTs Work with Customers CUSFSEL Customer Site Selection DISTSSEL L iztributor Selection ORDERAUD 3 Batch test Audit program change lewel 3 Contract Header Customer Groups ORDERAUD_O Batch test Audit program initial wersion ORDERAUDIT Batch test Audit program initial wersion Salespersons STKMASEL Product Waster Selection s amp TOUMASEL Selection C SKLNO gt Order status descnption TRATPSEL Transaction type Selection H ai OOO Un ONHDR mm Un TRNHST Witork with transaction history Transaction type description ORDSTSEL Order status Selection UM ONDET Work with Order Details CUSTMANT1 Customer Detail Ivaintenance The default selection is on the file with the greatest number of programs referring it Data Model Diagram Application Area Specific The Data Model Diagram for an application area represents relationships among the related objects that belong to that application area only Select Data Model Diagram option for the application area MVCPROCESS Copyright Databorough Ltd 2012 Page 101 Data Model Diagram option from the Application Area Diagram Yn Application Area Diagram 2 5 Ap
69. g the advanced software Chapter2 Getting Started With X Analysis Client Provides you simple delineation of steps to starting the initialization process for X Analysis Chapter 3 Analysis and Documentation This chapter is in separate sections and sub sections that explain the latest computing and documenting features of X Analysis The sections use actual screenshots of the respective windows and drop down menus Chapter 4 Data Modeling The chapter provides an in depth pictorial overview of how Data Modeling helps to understand the application design in purview of all possible relationships among files Chapter 5 Business Rules Analysis This chapter comprises details of how X Analysis creates application areas that in turn aid the Business Rules Analysis tool in isolating indexing and documenting the design elements Chapter 6 Metrics Analysis This chapter gives you a systematic theoretical and visual description of the features and functions of X Audit module meant for advanced computing purposes Chapter 7 What s Next A look at exciting technological days ahead Copyright Databorough Ltd 2012 Page 3 Who Should Read This Tutorial Software professionals from analysts and developers to architects and operations teams who intend to analyse document or modernize AS 400 IBM i applications may read this tutorial Explore this tutorial and gain insight into the inimitable facets of X Analysis that equip users with ric
70. ght Databorough Ltd 2012 Page 54 System document Legends System Document for XAN4CDXA pdf Adobe Acrobat Professional Sl x File Edit View Document Comments Forms Tools Advanced Window Help DOs tlm EC LEGENDS Structure Chart Diagram Legends Data Content Diagram Legends EE Inidesem inabe Funcion Eure Program Function IDPerert Program Nawigadon Logic Different Progra Data Flow Diagram Legends Calling pierna Roine Data Model Diagram Legends z6 x 11 69 in Copyright Databorough Ltd 2012 Page 55 System document Selected Options System Document for XAN4CDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced Window Help oe me G amp D ENT Selected Options 1 Object List 2 LF Access Path details 3 File Field Details 4 Object Where Used 5 Data Flow Diagram Normal with Annotation 6 Structure Chart Normal with Annotation Level 5 7 Program Structure Chart B zbx11l B8in System document Object List System Document for XANACDXA pdf Adobe Acrobat Professional File Edit View Document Comments Forms Tools Advanced Window Help Denne eel Wy Object List for XAN4CDXA Mae ne j Wwe __ oeserpton 000 00 00 OEMENL Ww Mr nium CUSF FILE sites B zbxl1l B8in Copyright Databorough Ltd 2012 Page 56 System document Access Paths System Document for XAN4CDXA pdf Adobe Acrobat Professional
71. grey block represents an application area The size of a box is indicative of the number of objects it contains A larger box has more objects as compared to a smaller box The diagram also shows relationships between application areas displayed by selecting an application area Select an application area to test this feature The red and blue coloured connecting arrows are the relationships between application areas Blue Arrows Indicate Program to Program calls The blue arrow points towards the application area which has more calling programs Red Arrows Indicate Program to File references Application Area Diagram Details The Application Area Diagram also displays relationship details for each application area Click the Show AAD Details icon available on toolbar to invoke the detailed view Show AAD Details icon Co HJ i im TL Application Area Di Xx LI B LI om s LI LH tub t LJ Ll MI os Ps Application Area Diagram for ANACDXA m YANACDxA Show 440 Details Copyright Databorough Ltd 2012 Page 98 X Application Area Diagram details for XANACDXA fz Application Area Diagram i Chapter 5 Business Rules Analysis Application Area Diagram for ANA4CDXA ACCOUNTS Company Accounts 70 File fl Pans Rel Application Area OPHIR CUSFMAINT CLISFINAINT Ac COLINTS CUSTOMERS Ac COLINTS CUSTOMERS ACCOUNTS DELIG Ac COL
72. h understanding of existing legacy applications Acronyms Used in This Document ACRONYM MEANING APD Access Path Diagram DFD Data Flow Diagram DMD Data Model Diagram FFD File Field Details SCD Structure Chart Diagram Copyright Databorough Ltd 2012 Page 4 Chapter 1 Introduction to X Analysis Get to know the most sophisticated and easiest to use analysis tool in this chapter Learn about the tool s instant and automated features viz impact analysis cross referencing and graphical documentation of RPG and COBOL applications Also get updated on the hardware prerequisites needed for successful installation of the software Copyright Databorough Ltd 2012 Page 5 Benefits of X Analysis Databorough s X Analysis product suite is an essential tool for IBM i application documentation design recovery and re engineering The X Analysis software works as a plugin under IBM s RDi RDp WDSC and Eclipse enabling users to browse and visualize applications from a high level model down to individual lines of code RPG amp COBOL as pseudo code variable level impact analysis graphical flow structure charts graphical data flowcharts PDF MS Word and MS Visio documentation wizards are just some of the features packed into this globally renowned tool X Analysis allows technical analysts to navigate graphically through an IBM i application from a Windows PC Working in a true client server mode X Analysis automatically cross re
73. hat particular object See the following screenshot to view how a click on the icon preceding Referred Files expands to display files referred to by the object OEO01 Copyright Databorough Ltd 2012 Page 41 Chapter 3 Analysis amp Documentation Referred File Icon be Files 34 Object Where Used CUSTMNIT 1 3 OEMENU rh OEMENU i 4 mL Hierarchal Structure Chart for DEMENLU Total Objects 14 Po BA rl O OEMENL q Order Entry Menu Referred Files O OEO01 Order Entry Referred Files O OEDOZ O OEDUO3 Order Enquiry Product Enquiry Referred Files Referred Files O OE004 O OEUDG Customer Enquiry Maintena Print Invoices Referred Files Referred Files 4 The following screenshot shows the Referred Files of the object OE001 The colour coded geometric shape before the file name indicates type of file Copyright Databorough Ltd 2012 Page 42 GN Chapter 3 Analysis amp Documentation Referred Files Expanded be Files 34 Object Where Used CUSTMNIT 1 2 OEMENU rh OEMENU i 4 mL Hierarchal Structure Chart for DEMENLU Total Objects 14 Po BA rl O OEMENL q Order Entry Menu Referred Files OEDUT O OEDOZ O OEDUO3 Order Enquiry Product Enquiry Referred Files Referred Files Order Entry Referred Files A A CUSTSL3 by CusnojR O oco wA G LI Sells OEDDIDF Order Entry Customer Enquiry Maintena Print Invoices Referred File
74. he Data Model Diagram On the record display the descriptor button displays the ACCESSED BY REFERS TO relations This is similar to a JOIN to a foreign file to get the description for the code used from the Master Owning file Copyright Databorough Ltd 2012 Page 93 AX Chapter 4 Data Modeling Descriptors Button on record display H Programs Data View for CUSFL1 CNAME D5pcpE Sts LISERIMIM SALLIT E cesoeR Data Model Diagram Fs Data View for CUSFLI 23 m Bertwhistle amp Company Ltd TELMO Databorough Tech Es TMN lt r Last Cr Date escriptors Australia Belgium Databorough France Databorough Spain Dakaborough Tech Germany Iceland Treland Italy Portugal South Africa Uruguay Copyright Databorough Ltd 2012 GemtDSW Next Cnt Date Fash Cancel Page 94 Chapter 5 Business Rules Analysis This chapter tells you about the Business Rule Analysis solution set In addition the chapter tells you how X Analysis expedites the analytical procedures using its host of refined features The chapter contains Application Areas Application Area Diagram Area Flow Diagram Application Area Specific Data Model Diagram Application Area Specific Data Flow Diagram Application Area Specific Business Rules v v v 9 v FY Consolidated Rules Copyright Databorough Ltd 2012 Page 95 The Business Rules Analysis solution set addre
75. ht Databorough Ltd 2012 Metrics Analysis Metrics History Tells you how to track all the generated data at different levels of complexity Screen Metrics Provides you with the multi level classification of all the screen functions File Metrics This segment briefs you on how to access various metrics information Business Process Logic Metrics Displays migrated logic data in metrics format Specialised Analysis This feature lets the user to customize reports Problem Analysis Select this feature to know about any existent discrepancies in the data Object Allocation Displays objects allocation with their respective application areas summary Report Use this option to generate structured reports Generate Metrics Analysis Option to generate Metrics data Generate Problem Analysis Option to generate Problem Analysis data Page 111 The Metrics Analysis solution set comprises the X Audit module The X Audit module provides quality and complexity metrics for development and analytical purposes X Analysis client provides options related to the X Audit module called Audit Options Audit Options in X Analysis 6 209 50 146 eoni ea pm Add Alternate Data Library List Application Library List Refresh Options Derive Business Rules Expork Options Document Entire 4pplication Document Changed Objects Reengineer Programs Generate Programs Generate Web Services Generate Data Application Data Migration
76. iled Structure Chart EMENU Total Objects 47 3 A 9 H aa OEMENU OTH Order Entry Menu Program Order Entry Menu 4 principal Function of this program is to present a menu to call certain programs Display GEMENMLIDF Order Entry Menu OEDUT EDTFIL UFE Order Entry Program Order Entry A principal Function of this program is the online maintenance of CLISTSL3 the by Cusno Representative File through a subfile display Data is retrieved From Ehe Following Files PTYPES The Following programs are called to carry out subsidiary Functions CUSLET Parameters are passed to the program when itis called The program is called by OEMENLI DEJOS Update Out CUSTSL3 by Cusno Representative Display GEOD1DF Order Entry Display CORSEERGERUE ERES REUS Input PTTYPES Products Click the Normal SCD icon on the toolbar to switch back to the Normal Structure Chart Diagram Hierarchal Structure Chart An upgrade on the Structure Chart Diagram the Hierarchical Structure Chart offers a precise view of all the programs representing their control flow and call structure through neat colour coded bus routing block diagram Select Hierarchical Structure Chart option from the context menu over OEMENU from Structure Chart Diagram as shown below Copyright Databorough Ltd 2012 Page 37 Hierarchal Structure Chart Option te Files ZA Object Where Used CUSTMNT1 ae Ego OEMENU Structure Chart for OEMENLI Tota
77. indow Help Of ub a i B wne Eo PTEs B iine eus CLEF nie D pere Product biz bs Predict enar cla For testira P rctributes F Arbuces F teran Poot ha 13 Chiscts F Ie alih P Irgat rcgrara 15 b H E ZALDPTITES E ZAHLT P Ing Service i owe H Aiit PTYPE Se At LIST fie E n obit A iA I fet tributes b sir bukan aisi m Siu by Sala quest biles Peces 9 Objects H T a B Do r5 a CLEA AL Audit c 5 file Tax Sarueardiad Pard acto CLEFLE ottrhytes b nrbes Stan lr Orgias le ahri ie C s3FHPULJT m mieia EC E MOLD m TAASTATI Diw Sie Maine nce Casto ier Fahami Sra ry Duet caer ept iori STATUS File b Ari dun b aridus n CLEPLZ b urbes b Miis Si pz ry Seng IP hiiia ive lk CLELETSX m pae iara E CLETHHT IR Lipclaka Labar Saguaren Her gana Cusieraur Fla Cuztower Cota Maintenance pirim b trium n COURS b bites Site Eee ert b cn F fiiria ii EH PASE RL m FAXERRZ Pacte Err an F t 1 Pascal Erran Part 2 I E CBCUSTS Dette steer l b rikes CLGFL ork v thi cugbcarear Coba ani Jis Ex Lat Cr E F at tributes piiri im m F xzHTI a CECU PTNT E 4 Cannas sic Fx Shot Cin ner She Maine h A CHT RMHST MALS TSA P iiie b tribes ELEL virt with Eranmactia r Fia tery Wok rath Curbarmara zkan bre Pace Ida E imbieg E Strib F dhiri ie is Pi SF biei h c Se Boo E cumst P actibus Part val hi Eranee xc n his Inn Customer She Sesertim b tbe b eb L CIISTMNT R ibare Diehl pisiri b bites b Attrition E OLS THAT I L
78. ine RVCUS is called Program Structure Chart Another way of looking at the structure of the program is to view the Program Structure Chart for that program A Program Structure Chart graphically displays the sequence of calls in the program Click the Program Structure Chart option available under the Diagram Options dropdown menu on the Source Browser Toolbar Program Structure Chart option a Programs Ee oboe E3 A Source List of OE008 in XAN4CDEM QRPGSARC Lines 220 View Level 5 ee Ar E E ef S E73 82 Mv Ey 989 E EI A m Re Seq No B Data Flow Diagram E s 0016 00 ZB ch Hierarchal Structure Chart OOLY OO OO16 00 001s 00 m Structure Chart Diagram E Screen Flow Diagram 0021 00 C Until F3 amp Hill Copyright Databorough Ltd 2012 Page 72 GN Chapter 3 Analysis amp Documentation On selecting the Program Structure Chart option a diagram appears displaying the program structure chart for that program Program Structure Chart for the program OE008 e Programs ia CEOS OED0B Z3 gt m Program Structure Chart for GE008 Total Objects 7 i l fA Po Gd u cc ey QEOO1 Order Entry CRORD OEMENL1 The Program Structure Chart shows each subroutine as small rectangles with grey background with the name of each subroutine The object s type i e the Function Type determines the colouring of all other shapes Programs Modules a
79. ion areas into sub application areas for better application analysis For ease of analyzing application areas X Analysis provides another diagrammatic construct called the Application Area Diagram The Application Area Diagram helps in visualizing relationships between the application areas When the option Application Area Diagram is opted for entire cross reference library it displays all application areas and the sub application areas if available The following screenshot displays the Application Area Diagram for the tutorial application Copyright Databorough Ltd 2012 Page 97 Application Area Diagram for XAN4CDXA Application Area Diagram for XAN4CDXA XANACDXA ACCOUNTS Company Accounts CONHDR conhdr DATATEST e a 106 Files 20 Files E uc 33Pgms 0 Pgms A DU 7 Lp e 1H R yy sed ELL LZ a s W ALLE AAAI is S a ve _ x ZZ ar tf 7 EP M l AA 1 4 Dedi TIA 776 8r L p ne Ar ge QA A 7 A ppt NS FF I GA Dene P Ranes VI 7 7 Jd file wa AG S7 24 bams S eo Fo a Lay p ZZ ri P AS 2 145 ri CLS Nar 7 iy z E Xr Pes I m x Ex I eee am ing Syste Sh 728 Mean SALES Syst AOTAN anhing System t RIK Sales System AN AX 05 Files 7 47 Fil D Mes t EIC ies N ZAS ars M4 S 3 P LUC XARA h A te S A Uy x Y 2 ty E E TEST test app area 72 Files ex 20 Files 17 Pgms 7 Pgms Each bluish
80. irect reference Copyright Databorough Ltd 2012 Page 29 Variable Where Used View Level 2 dz Outline 244 Variable Where Used 22 i n R3 Fe o variable Where Used For ALLICLISNO Lines 267 View Level 2 Name neg No DOOR ELA ME OE CNTCMATNT 0021 00 DD customer CNTCMAINT 0101 00 C eval zcusno cusna CNHTCMAINT oO120 00 C eval Ccusno zcusno CNTCMAINT u257 00 C parnm customer CNTCMAINT 261 00 C Efld cusno CNHTCMAINTD 0025 00 A ZCTITSNU SY OB 4 26 CNTLFE3 0003 00 A E CUSNO CHTLF4 OO05 00 A EK CUSNO CPLM 0n3 00 DEL YaR amp CUSNO TYPE DEC LEN S 0 CPLM 0010 00 CHGVAR amp CUSNO amp CUSNC LOEL 0004 00 DCL VARI amp CUSNO TYPE DEC LEN S er 0017 00 CHGYAR CUSNO0 amp CUSNC aes Sy ae 0na n0 DCL YaR s amp CUSNO TYPE DEC LEN S 01 LORCA 0017 00 CHGVAR CUSNO CUSHC CUSCPY 0010 00 CUSNO ICUSNO CUSCPY OOle2 00 CUSNO SCUSHNO CUSCPY 004z 00 ICUSNO CHAINCUSFL3 Bl CUSCPY 0058 00 ADD 1 CUSNO CUSCPY 0074 00 ICUSHNO CHAIMSECF B3 CUSCPY 0076 0 Z ADDCUSN SCUSHO CUSCPY 0078 0 0 ICUSHNO READE SECF B3 CUSF oo026 00 CUSHNO 5P TExI Cus No CUSFL3 oo03 00 E CUSNO CUSFMAINT 0016 00 Customer 3 5p CUSFMAINT 0056 00 cusno chainfe rcust CUSFMAINT 0082 00 callpfe wwcconsizcuzsnno CUSFMAINT lzl U eval zcusno cusno LUTSFMAINT oO150 00 eval cusno zcusno CUSFMAINT 0310 00 callpfe custsel customer CUSFMAINT 0314 00 eval cusno customer CUSFMAINT 0326 00 pari cust
81. l Objects 14 qROEMEML order Entry Menu Foom Source Ba Data Flow Diagram OoEUU01 Order Entry Obiect where Used jec ere Use CLSLET Customer Letter Stage 1 Variable Where Used Hierarchal Structure Chart 2 z m CUSLET1 Customer Letter Stage 2 Structure Chart Diagram Inverted Structure Chart E In the display below the OEMENU has been broken down into several blocks of related objects in call order The colour codes indicate whether a particular object is command based or input based or print based and so on Copyright Databorough Ltd 2012 Page 38 GN Chapter 3 Analysis amp Documentation Hierarchical Structure Chart de Files 34 Object Where Used CUSTMNIT 1 2 OEMENU oh OEMENU i 74 E Hierarchal Structure Chart for OEMENU Total Objects 14 Po BA O OEMENLI m Order Entry Menu Referred Files OEO01 Order Entry Referred Files O QEDD2 O OEOOS D Order Enquiry Product Enquiry Referred Files Referred Files O OEOD4 GJ IL OEUDG Customer Enquiry Taintena Print Invoices Referred Files Referred Files O CLISLET qo Customer Letter Stage 1 O CUSLET1 D Customer Letter Stage 2 a gt Narration User can avail of additional details regarding a specific object via the Narratives icon as shown below Copyright Databorough Ltd 2012 Page 39 Chapter 3 Analysis amp Documentation Narration Ic
82. laying all files Object List Window displaying all Files PF e Files E3 Object List of ALLUSR YALL FILE PF YALL YALL Total Objects 50 m fle Library PF XANACDEM PF XANACDEM r Changed 5 06 12 Created 30 031 Attribute Description Statys FILE PF D FILE PF Status file A Name Type ASIMPLTEST ASTATLIS PF XANACDEM PF XANMACDEM PF XAMACDEM PFXAMACDEM PFXAMACDEM PFXAMACDEM PF XANACDEM PF XAMACDEM PF XAMACDEM amp CNTACS CONDET CUORNDETINW CORIHDR CPYBESR CLUSF C LISGEP CUSTS DELIVA FILE FILE FILE FILE FILE FILE FILE FILE FILE Copyright Databorough Ltd 2012 PF PF PF PF PF PF PF PF PF Contacts Contract Detail Contract Detail new C Contract Header Cobol copybooks Sites Customer Groups Purchases Delivery Areas TE B B D B B B 05 06 12 05 06 12 15 08 12 5 06 12 12 06 12 05 06 12 2210612 05 06 12 15 08 12 5 06 12 01 09 08 01 09 08 01 09 08 ozjozii1 Diana 10 05 11 01 09 08 01 09 08 01 09 08 01 09 08 Page 15 The object list window is a multicolumn display In this window a user can sort a column data with a single click of a column heading Object Where Used The Object Where Used feature generates a list of all usage references for an object To make an Object Where Used list for the object CUSF locate and select the object CUSF Right click on CUSF and select Usage Ref
83. le on all objects displayed in the Data Model Diagram Copyright Databorough Ltd 2012 Page 91 AX Chapter 4 Data Modeling View Data option on the DMD object Data Model Diagram for CUSF Total Objects 9 Zoom Source m9 Zoom in Lpex Referred ta by STATUS Referred ta by LSLCDE Referred ta bi pa Data Flow Diagram ong a one um Object Where Used variable Where Used at Data Model Diagram File Field Details LFs Access Paths 4ccess Path Diagram Consolidated Rules Annotate Refers to by Mark For Dacumenter CUSNO Mark as Web Service More Info EF Source Compare Data View for the file CUSF CBS06R af Data Model Diagram 5 Data View For CUSFLI E3 mL Data View for CUSFL1 A l 7 po Distribukor Sts Acoustical Turbines Led F Programs Last Cnt Date Wexk Cnt Date Cus Mo Fax Mo O135 56 7 670 Company Air Tickets plc DT Albatross Trading IR A1 Bank of Bromley Ltd DT Bavs Engineering LEd DT Belmont Bros Bank DT Bert and Company Plc DT Berth Ltd DT Berbwhiskle amp Comoany Ltd DT nT Record Display 030506 030406 030514 030908 030514 030514 O30514 030908 O30514 031013 031006 031025 031013 031025 031025 031025 031013 031025 0iSi 678 1234 06 94 601148 4582 8 1482 UulzuUz z 5x3l O121 550 753 OO11 00136 O04 45 DICES 1 00016 Dres OOO 00126 OO001 The View Data window lists records for a selected file Double cli
84. ls Shape Window Help Adobe POF Dm ee ee NT WWE e A Sa La tA 2 Li WAE ee IHE EMTS BLT MWMVRDCEH 3 AGIP 1 MAAC IE WYNS OR RES FRI vemm ne WHT hi T WATT 2 Wael Oe En WAT Bali Boo AGF T NETIA bb WHE C awe la 17 n ac FAT Mer iE PANSA ETETE s IO ae LH Linea PIH DD cp EET MI 3 MKTVEL UH ZERRA Y MOWELUEMEEET MEC T flire 3323 Ds 1 I Mork RR a T r Oba UM ra Hi CEP 77 PML LEES RITE EUM Bae MED ACT LLL n I riz E Page 1 3 Note that the flowchart option creates an individual flowchart for each subroutine The first page of the flowchart displays the processing for the Main Procedure From the Main Procedure a user can jump to any of the subroutines available in the program Copyright Databorough Ltd 2012 Page 67 Jump option on the Flowchart El ORPGSRC_XAN4CDEM_CB906R vsd Microsoft Visio Sele Ek File Edit wiew Insert Format Tools Shape Window Help Adobe POF Em Xx icu dic alviA 3X 92 iisl L A 9 v LOR gt opt B Z U a NEERNTNNNENRNHNNNENRNHREOZRITNONERRNTNSERNTEERANENENES TUM Jump to subroutine P O01 h omer cs READ CBACPF d ag Copy um Paste shines 0032 00 0034004 HIE INITIALISE SCREEN WWACFN IFEQ AC Format WWACSS OREQ D Line 0030 00 i EXSR SP V n ra qi md Shape Help Lines 0035 00 ta 0038 00 Properties 2 ADDO XX Z ADDO XXTRAM v gt Page 1 3 se From the context menu
85. lt gt b Attributes The different objects corresponding to the main object have fields within them implicit as Attributes These are easily accessible by a single click on the Attributes icon The term Attributes is changed to related attribute input update output etc on expanding Attributes button as shown below Copyright Databorough Ltd 2012 Page 23 GN Chapter 3 Analysis amp Documentation Expanded Attributes fe Files Sgy Object Where Used 39 CUSF 52 E Object Centered Data Flow Diagram for CUSF Total Objects 70 Po aa a D B E amp Sites zu b Access Paths 13 Objects H b Input Programs 45 Objects H z b Input Services 1 Object H b Output Programs 2 Objects H m Update Pragrams a Objects H CUSFMAINT E CUSFMOLD Customer Site Maintenance Customer Site Maintenance b Attributes b Attributes E CUSLETSO E CUSRGZ Update Letter Sequence Reorganize Customer File i T Update 2 Fields b Attributes a CLISMO Cus Mo s LLETS Last letter no a s gt Detailed DFD Icon User can opt for the Detailed DFD from the toolbar for viewing field usage of all the objects Detailed DFD Icon e Fies 3A Object Where Used B Cusr 53 Object Centered Data Flow Diagram for CUSF Total Objects 70 e aly amp Bb Detail DFD USF Sites b Access Paths 13 Objects When user clicks on the Detailed DFD icon the Attributes section of all the objects gets expanded di
86. lysis Object Allocation for XAN4CDXA mL ea jd Tvpe Attribute FILE PF FILE PF OMFORM QUERY MGR OMFORM QUERY MGR P M CBL PGM CBL e Object Allocation 2 3 Allocation of Objects for XAN4CDXA Total Objects 395 Mame ASIMPLTEST ASTATLIS BALANCEPRD Description Application Area Status File PRINT Balance by Product BALAMCESTO Balance bv Store CBCONDET Work with Order Details CBCOMDETNW Work with Order Details Long Fields used PRINT PRINT CBCONHDR CBCUSFMAT CBCUSTMAT 2 CBCUSTS CBCUSTSD CBC 110 CBTRMNHST C BSUBSR CBS06RD CBS06RR CLET CLETM CNTACS CNTCPMAIRMT Work with Orders Cobol vers Customer Site Maintenance Customer Detail Maintenance Long Fields used Work with customer Cobol vers Work with Customers Order Entry System Work with transaction history Back ouk account Order Entry display File Back ouk account Build Customer Letter Print Customer Letter Contacts Contacts Maintenance CATCMAINTO Contacts Maintenance P GM Pi3M Pi3M Pi3M FILE Pi3M el P GM FILE Pi3M Pi3M Pi3M FILE Pi l FILE CBL CBL CBL CBL DSPF CLP CBL RPG DSPF RPGLE CLP CLP PF RPGLE DSPF PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT OEDUT PRINT PRINT PRINT amp The above screen lists all objects from the application library XANACDXA and provides information about the application area Note th
87. m Structure Chart Paper Size C Letter 8 5 x 11 9 A4 Size 8 27 x 11 59 Contention Resolution System Documentation creates documents in Application Folder IF the Application Folder is shared and documents are created opened while the documentation is in progress then this may lead to contention Please select appropriate options Ea enable resolution CO Do not overwrite 9 Overwrite iF exists but if in use then Create document by similar name CO Exit Skip document creation Select the required formatting options available to generate a system document Click the Finish button to end configuring the system document contents and start the document generation After the system document generation there is the following dialog Copyright Databorough Ltd 2012 Page 52 System Documentation Completion Dialog X Analysis sp System Documentation process completed The POF document has been saved ER J as C Documents and Settings alakhiMly Documents 4nalysis Application Datal66 209 50 146 PCF XAMACDXAYSvsbem Document For XAMNACDXA pdF Do vau want to open this Click the Yes button to open the generated document A User can also view a previously generated document To open a generated document opt for Open Application Folder option from the X Analysis menu Open Application folder option pem Run Window Help Mew DE400 Connection New DBS Connection Mark all Far
88. me MARE Password Instructions to fill the Signon dialog Copyright Databorough Ltd 2012 Page 9 1 Enter TCP IP address Computer Name of the IBM i to be accessed 2 Enter username and password of a valid IBM i profile 3 Click Login button After a successful signon X Analysis Client displays a list of application libraries These libraries are initialised using the master command XAWRKAPP on IBM i Application Library When used for the first time the X Analysis Client displays only one application library XANACDXA X Analysis Client displaying Application Library X Analysis Eclipse Platform File Edit Navigate Search Project x Analysis Run Window Help B e G ee p m7 Gh ES d aM N Navigation Metrics Dashboard m 66 209 50 146 EZ Mi ZANAUDEXA XANACDEM Tutorial System Session Information Session Items Description Hast Name 66 209 50 146 amp Analvsis Username TESTER amp Analvsis Library AA NdCDXA Jab Details 244111 Q72DASOINIT QUSER Database Library Application Area Data Model Info Available Library List AAMA Ox xANICDEIN OP Different nodes options are available under the cross reference library node XAN4CDXA Expand XAN4CDXA node to see the available options Copyright Databorough Ltd 2012 Page 10 Application Library expanded File Edit Navigate Search Project Analysis Run Window Help E E 3 rm i na E P3 EE 9 iy J m o5
89. meters CBCUSFMNT 0291 00 MOVE ZCUSNO OF Z2FT01 0 Lv amp Aliases CBCUSTMNT2 0426 00 IF CUSNO DF ZEFTOZ I z Maximum Tracking CBCUSTMNT2 0440 00 MOVE CUSNO OF ZFFTO2 I TO LCUSL3 CUSTUMER NU OF CUSFL3 RECORD CBCUSTMNT2 0598 00 MOVE CUS PROSPECT OF CUSTS RECORD TO CUSNO OF ZZFTO2 0 CBCUSTS 0696 00 MOVE CUSNO OF CUSTS RECORD TO ZCUSNDO OF ZZFTO02 D CBCUSTS 0821 00 MOVE ZCUSNO OF ZZFTO2 I TO CUSNO OF CUSFL3 RECORD CBCUSTS 0875 00 MOVE ZCUSNO OF ZZFTO2 0 TO CUSNO OF CUSTS RECORD CBCUSTSD 0270 00 a ZCUSNO R B 19 22REFFLD CUSNO XANACDEN w TIT gt The default View Level for Variable Where Used option can be set using X Analysis Preferences General preferences window As an example let us test the View Levels for the field CUSNO Level 1 Level 1 lists all direct references to the CUSNO field Copyright Databorough Ltd 2012 Page 28 AX Outline E Variable Where Used UN Chapter 3 Analysis amp Documentation Variable Where Used View Level 1 variable Where Used For ALLICLISNO Lines 174 View Level 1 lame CLET CLET CLET CLETH CLETH CLETH CNTACH CNTACH CNTCHAINT CNTCHAINT CNTCHAINT CNTCHAINT CHTLF3 CNTLF4 LEDN LPDN LPO LOLL LAEL LALL LELA DELE LL COSCPY LUSLE COSCPY LUSLPT CUSCFY LUSLPT LUSLPT LUSE COSFLS COS FHAINT COS FHAINT 4 aem Mo nana nans odli oddl oddz odli oddz Dog 010l 0lz0 Dagr 026l n3 nus n3 Du Dll na BIET O
90. nd Service Programs Boxes other than the subroutines are the same size of a program element as used in the Structure Chart Diagram On the Program Structure Chart double click on a subroutine This initiates the Source Browser for the program OEO008 with the subroutine selected Copyright Databorough Ltd 2012 Page 73 Program Structure Chart with Subroutine selected Program Structure Chart for OE008 Total Objects 7 t n T Oooo Eii J E008 Order Entry SRVCLIS ORLNS Double click the subroutine box to bring up the Source Browser positioned at the beginning of the subroutine VALID QEOO1 Order Entry PC CRORD OEMENL1 This displays the Source Browser for program OE008 with the subroutine RVCUS selected Source Browser for program OE008 te Programs El OE008 E oOED 08 Ee oED08 Z3 mL Source List of OE008 in XANACDEM QRPGSRE Lines 167 View Level 4 HH Em E EH f S Ej P W Be SBE D m Re Seq Mo uum ca tie She eee oe CUL Sn Ce koe tee eee oe EXSR RVCUS Doss uu C Set up blank subfile for order lines 0056 00 C EXSR ORLNS 005a aa Cy Display Order Entry Screen 0059 00 C MOVEL 1 IN34 0060 00 Z MOVEL O IN33 0061 00 Z MOVEACHD 3 CHDDTA v Il gt Zoom Source to Files defined in File Specification The program OE008 has files defined in the File Specification Copyright Databorough Ltd 2012 Page 74 Files listed on OE008 source e Programs El OE008 E
91. neral cross language complexity by SUBROUT DATACPX Program data complexity ul LOGICF Program logic complexity Copy Report Definition LOGICS Program logic complexity by subroutine Delete Report Definition 3 Source Object Reports HARDCODE Programs with hardcoded libraries MISSING Source or objects missing SRCOBJDT Source change date after object created Database Reports DATAERR Database File and member errors and alerts D 5GMALRT Database design alerts Run Metrics Report When user opts for this option the pre configured report dialog invokes Copyright Databorough Ltd 2012 Page 125 AX Report Definition Dialog Chapter 6 Metrics Analysis X Analysis Metrics Report Specification and Submission Report Mame Report Title Report category Application Area Object Mame Select Report Columns and Options Column OBINAM OBJATE CYC HAL MI SRCLINSTM Metrics Object and Source ID Data Object Library Object Mame Object Type Object Attribute Object creation date Object last used date Source File Source Library Source file change date C aaa o0 d habe Edit categories bll Members Selected varMarnnie OBILIE OBJNAM OBITYP OBJATR OBICRTOAT OBILSUDAT OBISRCFIL OBTSRECLIB OBJSRCFCHD Show report daka at subroutine level Filter Subr OBJATR RPG OR OBJATR RPGLE User program Submit Report Click the Submit Report to genera
92. nnnnin netiis nhan nsns sss a nnns nsns a nnne sra 90 View Data 91 Chapter 5 Business Rules Analysis 95 Application Areas ee 96 Application Area AGRA sisccarey rortehcacmnronvinse a ae T A ne AEE SA 97 Arca FION DOG aN aaraa aAA Ei NA E A T Noe naa A A don adsense A 99 Data Model Diagram Application Area Specific c cc cccccccccssesecceeceeeeeeeecaeseceeecaeseceeeeeaeeeeeeeaas 101 Data Flow Diagram Application Area Specific cccccccceseeecccceeeeeeeensecceeeeeeeaeseseceeeeesaaaaneeeeeees 104 BUSINESS o oo ee ne ee ee ee eee 105 Consolidated RUES serias LN FER NUR DU ka ausnadesestecdnan nana ANI RIA ral REN Co DU DUREE TENA CUI ral RU Cui DN DRE A 108 Chapter 6 Metrics Analysis eene 111 Pies ci M TCTCT 112 Metrics Analy iS esoneri m 112 Metrics History ccs RH A A 9 mm5 EEEIMHMEMM 116 Screen Metrics MR RNRCREEPCDC aE a 120 FAN Era e E E E E E E E E RUNE UTR preteen eae E T 123 BUSINESS Process Logic Metrics sequat on cuota ooe d nodo duoc iha iN ose d or S Ross danaa day wesc ia diee 123 Specialized Analysis cccccessseccccccsssececssosseeeeceeanseeeecseasseeeecseasseeeesseanseseesseasseseeeseauseeeesseaeeeeesseases 124
93. of calling programs from a source member Metrics Toolbar The metrics toolbar comprises of various options Toolbar available on Metrics Window Df Summary Metrics E3 E Metrics Analysis for XANACDXA Double Click to View History 45 a 3 7 EE d Bid Metrics Preferences A user can set the Metrics Preferences as per requirements General Metrics Preferences Icon on Metrics Window Toolbar Metrics Analysis for XANACDXA Double Click to View History 45 amp F Po S Complexity Level Units Source Type Sourc Grand Total is i General Metrics Preferences Click the General Metrics Preference icon to invoke the preferences dialog General Metrics Preferences Dialog Metrics Preference Setting Source Lines Cyclomatic Halstead Maint Idx Called Pgm Calling Pam Files Device Files igh value E Average Value IL jd Specify a high value so that any value above this will determine that program is of higher complexity Any program that falls below an average setting will be determined as fewer complexes Print Metrics To print the Metrics information click the Print button Copyright Databorough Ltd 2012 Page 115 Print Icon on Metrics Window Toolbar Complexity Level Units Source Type Source Lina Halstead Grand Total 156 Pre Print Export Metrics Select PDF or MS Excel option as required from the Export icon Export Options on Metrics Window Toolbar Complexity Level
94. ofessionals become equipped to remap the designs using the latest technical format in keeping with the present or future requirements of the business It is here that the role of X Analysis is manifest The Analysis and Documentation tool set is patterned to convert all IBM i applications in the latest format This software suite has precise tools for conducting advanced application and documentation work minus the legacy code s redundancy and complexity In this chapter you will learn about the specialized Analysis amp Documentation solution set The chapter explains how by using this tool you can avail of prompt and automated documenting and computing solutions The chapter contains Chronology of features Work with Objects Object Where Used Export List to PDF MS Word or MS Excel Data Flow Diagram Variable Where Used structure Chart Diagram Detailed Structure Chart Hierarchal Structure Chart Document Manager Source Browser v v vvv FF FY Copyright Databorough Ltd 2012 Page 12 Chronology of Features The Analysis amp Documentation solution set is a sophisticated tool for instant and automated cross referencing impact analysis and graphical documentation of Synon 2E RPG and COBOL applications All the functionality above amp more is contained in the following separate features used in this tutorial e Work with Objects It is a list of all the objects in a chosen application or application
95. omer CUSFMAINTD 0035 00 ZCTITSNU 5Y OB 4 38DSPATER HI ll I I E E E E E A A D C C C C C Ee nnmn m Level 3 Level 3 builds on the Level 2 references adding indirect references that are one further reference removed Level 4 Parameters Level 4 further includes fields used as parameters For example in the statement CALL LETN amp CUSNO amp PREFIX amp LETNR CUSNO is a parameter to call LETN Copyright Databorough Ltd 2012 Page 30 Variable Where Used View Level 4 Outline 244 Variable Where Used 53 i i n RB Fs gt mL variable Where Used For ALLICLISNO Lines 305 view Level 4 Mame Sen No iN erase de cuc e nce DE MIS T E an e E CLET 0004 00 DCL VAR CUNO TYPE DEC LEN 5 0 CLET 0006 00 DCL V Risprefix TYPE CHAR LEN 5 CLET 0009 00 CHGVAR CUSNO amp CUSNC CALL LETN1 amp CUSNO PREFIX amp LETSQ CLET 0011 00 CHGVAR amp CUSNC PREFIX CLET 0014 00 CALL WECUSL amp CUSNC PREFIX amp LETMR CLETN 0001 00 PGM PARM amp CUSNO PREFIX amp LLETSQ CLETN 0003 00 DCL VaR eCUSNO TYPE DEC LEN 5 0 CLETN 0004 00 DCL VaR PREFIX TYPE CH amp R LENIS CLETN 0010 00 CALL LETN1 amp CUSNU PREFIX amp LLETSQ CLETN 00l2 00 CHGVAR YAR CUSNC VALUE ZPREFIX CLETN OO16 00 CNTACS nona un CNTACS OO21 00 CNTCHAINT 0021 00 CNTCHAINT 0101 00 CNTCHAINT U Ulz u u CNTCHAINT O24 00 CNTCHAINT 0257 00 CNTCHAINT 0261 00 WEKCUSL CUSNO sCUSNC 2 PREFIX sPREF
96. on be Files 34 Object Where Used CUSTMNIT 1 OEMENU oh OEMENU i 4 mL Hierarchal Structure Chart for DEMENLU Total Objects 14 Po BA rl LJ OEMENL Order Entry Menu Referred Files Order Entry Menu O OEO01 Order Entry Referred Files O OEDOZ O OEDUO3 Order Enquiry Product Enquiry Referred Files Referred Files O OE004 O OEUDG Customer Enquiry Maintena Print Invoices Referred Files Referred Files 4 lt gt When the user clicks on this a pop up window provides the auto generated narration for the program as shown below Copyright Databorough Ltd 2012 Page 40 AX Ch Narration Dialog Box e Files bh Object Where Used CLISTMMT1 OEMENL Lm Hierarchal Structure Chart for OEMENU Total Objects 14 LJ OEMENL Order Entry Menu Referred Files O OEDOZ Product Enquiry Referred Files Order Enquiry Referred Files O Customer Enquiry Maintena Referred Files O OE0D4 OCG Print Invoices Referred Files Referred Files OEMENU apter 3 Analysis amp Documentation Program Order Entry Menu 4 principal Function of this program is to present a menu ka call certain programs Order Entry Referred Files Hierarchical Structure Chart has a feature to display referred files inline An expandable icon called Referred Files is available in each box Once user clicks on this he gets to view all files belonging to t
97. opt Ls Application Area Diagram at Data Model Diagram E3 ion from Data Model Diagram UL JA amp 5 CONDET yntrack Detail Om Sites Transaction History he Data Model Diagram for M CPROCESS ALL Total Objects 74 ra zoom Source mr Data Flow Diagram Object Where Used Purchases variable Where Used Data Model Diagram File Field Details LFsfAccess Paths Access Path Diagram Contrack Heade Consolidated Rules Annotate EASLI Dl D L This generates the Data Flow Diagram for the object CUSTS Data Flow D ata Model Diagram CUSTS 93 x Data Model Di ig custs Application Area Diagram Object Centered Data Flow Diagram for CUSTS Total Objects 56 E CBCONDET B work with Order Details b Attributes CBCONDETNW Work with Order Details Long fields used b Attributes Bl WWCONDETR Bi Work with Order Details b Attributes WWCONHDRR Work with Orders b Attributes b Update Pro CBTRNHST n Work with transaction history b Attributes WWTRNHSTR Work with transaction history P Attributes m CUSMTH Update Maintenance Month b Attributes al al CUSREAD Test Sequential Read options b Attributes CONODO1 Contract Entry b Attributes a CBCUSTMNT2 Customer Detail Maintenance Long fields used E i CLISTRPTO1 b Attributes Customer Order Report Detail b Attributes CUSTSSELR Customer Selection b Attrib
98. option from the context menu on the object CUSF Copyright Databorough Ltd 2012 Page 45 Mark for Documenter Option Context Menu on CUSF e Files E3 Sg4 Object Where Used CUSTMNT 1 OEMENU rh OEMENU 78 E Object List of ALLUSR ALL FILE PF ALL ALL Total Objects 50 ee r 2A 7 om fl Library Marne Tvpe Attribute Description dg oF Wel IET Tg isthe secte iles PFXAM4CDEM CUSGRP ustomer Groups T PFXAM4CDEM CUSTS a Data Flow Diagram urchases PF ANACDEM DELIVA b h d elivery Areas E PFXAM4CDEM DISTS Object Where Use istributors PFXAN4CDEM EVFEVENT variable Where Used d gt PFxANM4CDEM GENTAB eneric Table File PFXAM4CDEM ITEMS a Data Model Diagram fem Master File ii PF AMNHCDEM LISTS File Field Detail sts PFXAM4CDEM MAMESID ES ames Index PFXAM4CDEM ORDSTS LFsiAccess Paths jeder status description PFxAM4CDEM ORGS Access Path Diagram irganisations PF xAMACDEM PRODFT Consolidated Rules roject Default Steps PFXAMA4CDEM PROJECT rojects PFXAM4CDEM PROORDS Annotate rofiled Orders Mark For Dacumenter To start the documentation process click the Documenter icon available on the toolbar Documenter icon on toolbar UT d aco JaA c Ge Los ME D 7 22 E ET IDocumente MER Object Where Used Ee CUSTMNT1 ae OEO02 OEMENU Object List of ALLUSR FALL FILE PF ALL ALL Total Objects 50 Library Name Type Attribute Description PF XANACDEM ASIMPLTEST FILE PF
99. plication Area Diagram for XAN4CDXA 4 rice 3 Poms 70 Files 28Files 0 Poms Pgms I Application Area Diagram Data Model Diagram Planning Syste a Overview Structure Chart SH Area Flow Diagram 105 Files 69 Files 64 Pgms 81 Pqms amp work with Objects e Programs ATEST B Files Business Rules 20 Files T Poms Annotate Document Application Area This invokes the Data Model Diagram dialog for the application area MVCPROCESS Data Model Diagram dialog Data Model Diagram Application Area Name Description MVCPROCESS Re Engine ering Object Object DMD Data Options CO Re Use cached DMD data if exists Re generate DMD data Display External Relationships Copyright Databorough Ltd 2012 Page 102 Chapter 5 Business Rules Analysis Click the OK button to generate the Data Model Diagram for the selected application area Data Model Diagram for an application area Restricted D Application Area Diagram xt Data Model Diagram mE Data Model Diagram for MYCPROCESS ALL Total Objects 13 ze Ls z Booo a 7 Purchases Order status description Contract Detail BR rx acl Salespersons Transaction type Store Master Distributors description Customer Groups 4 Business Rules em AAD Details a DID Details 2 5 DMC Relations For MVCPROCESS ALL Total Relations 20 Rel No Dependent File Relation Type Main File Dependent Fields Parent Fields Dep L
100. print the Screen Metrics information click the Print button available on the toolbar Print Icon on Metrics Toolbar Screen Metrics S3 m Screen Metrics For XANACDXA JI im n Complexity Level Units Files Database Fields Work Fields Outgoing Calls recline Grand Total asi isa ese 569s 9 TES Export Screen Metrics Select the PDF or MS Excel option as required under the Export icon Export Options on Screen Metrics Toolbar Ta Screen Metrics 5 Screen Metrics for XANACDXA 4E E B um Complexity Level Units Files Database Fields Work F es Expart to PDF E Grand Total eee ee E e Export to M5 Excel High 23 14 105 23 Copyright Databorough Ltd 2012 Page 122 AX Chapter 6 Metrics Analysis File Metrics The File Metrics is a display of metrics related information on all the files One can overview metrics data for the complete application and or for all the application areas The File Metrics displays information under the following headings Units Displays total number of Files Fields Displays the total number of fields available in the file Access Paths The total number of access paths for the file Creating Programs The number of programs creating records in this file Reading Programs The number of programs reading this file Updating Programs The number of programs updating re
101. racterized through the logic embedded in its source codes and process models This logic is also collectively referred to as Business Rules Legacy RPG and COBOL Copyright Databorough Ltd 2012 Page 105 programs suffer from a drawback in which the business rules logic get mixed with screen handling database I O and flow control Most organizations shy away from the challenge of retrieving these business rules as it is a time consuming highly specialized expensive and labour intensive exercise The task of decoding and configuring the legacy code becomes easier and more cost effective by using X Analysis First it automatically runs the scan on RPG amp COBOL programs and 2E model secondly it separates the rule code from the body of the application like the proverbial separating grain from the chaff It stores the business rule code into a neatly structured usable repository Finally it provides precise text narratives describing these retrieved rules The user can check out the derived business rules using the Business Rules view Building a repository of business rules serves well in the long run It not only expedites the future reengineering rewrite projects or package replacement projects but also facilitates ongoing legacy maintenance operations The Derive Business Rules option on a program or application recovers the business rules In the tutorial application there are some previously derived Business
102. rce Browser Options These are all the extra Source Browser options Copyright Databorough Ltd 2012 Page 13 Work with Objects Work with Objects displays a list of all the objects for a chosen application application area To generate object list for all files double click Files node available under the application Library X Analysis displaying Files Node X Analysis Eclipse Platform File Edit Navigate Search Project x Analysis Run Window Help 9o cW 9 EAAX Navigation Metrics Dashboard B 66 209 50 146 E ih ZANAUDZA XAMACDEM Tutorial Syster im Application Area Diagram a Data Model Diagram im Overview Structure Chart fe All Objects a Programs E Files Eg All Procedures les Exportable Functions 3 Source Files Business Rules e Consolidated Rules Screen Components Change History Regenerated Programs A Source Scan OM w Sanitize i k Session Information Pa The double click action invokes the Work with Objects dialog with Type set as FILE and Attribute as PF Copyright Databorough Ltd 2012 Page 14 AX Chapter 3 Analysis amp Documentation Work with Objects dialog Work with Objects Application Area Mame Description 4ll Members Selected Library ALLLISR hull Mame Tvpe Attribute Function Attributes PF Name tmn 0 Component Status Program Type Function Type Click the OK button to invoke the Object List window disp
103. rce member changed after deviceFile created el Ma File Found Far existing source member 6 Mo source member Far File 1 Mo program object Found For source member 20 Mo source member Far program 5 Source member changed after file created B7 Mo device File Found Far existing source member 8 Ma source member Far device File 4 Referenced data area does nok exist Referenced other File does nok exist Referenced program object does not exist Database Alerts File has Constraints Files with zero members 4 Internally described File 2 Program Code Alerts Greatest depth of nested ELSEs exceeds 1 Number of GOTOs exceeds 0 Greatest depth of nested IF DOs exceeds 5 Greatest IF D black nbr of lines exceeds 48 Greatest depth of nested loops exceeds 1 Greatest subroutine nbr of lines exceeds 60 Program has man excluded hardcoded libraries 3 Migration Alerts File has Select Omit rules Others Update date on source and object do nat match Unused Subroutines Hj Unused Procedures Hj Unused Logical Files Lm Lm h wn E E Ed t0 01 C f QO 0 E E E E o Expand the Problem Category section to view the objects having problem Object Allocation The Object Allocation window displays the information about all the objects along with the application area names to which they belong The following screen displays the object allocation window Copyright Databorough Ltd 2012 Page 134 Chapter 6 Metrics Ana
104. rograms with hardcoded libraries MISSING Source or objects missing SRCOBJDT Source change date after object created Database Reports DATAERR Database File and member errors and alerts D 5GNALRT Database design alerts The report displayed as under Copyright Databorough Ltd 2012 Page 127 COMPLEX Report igs Specialized Analysis icc COMPLESP x F COMPLEXP General cross language complexity by program Run 1 Total Objects 187 Eg Object Mame Object Attribute Sum of Cyclomatic Complexity Sum af TEENS volume CBIOBR T COMO RFG 0 CUSCPY RPG CUSLETSO RPG CUSMTH RPG CUSRGZ RPG DREPORT RPG FAXERR1 RPG FAXERR2Z RP FAXMOSI RPG FAXSHT1 RP GCNTACL RPG fa_UST 1 RPG LETM1 RPG MEOO1 RP E E EE Ec Ec Er Ec Ec Er Ec Ec Ec E EE e e e BPR mo oO O e h If required the user can export this report to MS Excel Modify Report Definition User has the option to modify an existing report definition Modify Report Definition Option Specialized Analysis 83 z Analysis Metrics For XANAUDXA Category iReport T Tvpe Status RPG Metrics Reports COMPLEXP General cross language complexity by program COMPLEX General cross language complexity by SUBROUTINE a i a a DATACPX Program data complexity Run Metrics Report LOVSICP Program logic complexity Modify Report Definition LOGICS Program logic complexity by subroutine opv Report D
105. rpret different colours used in the Structure Chart Diagram X Analysis also allows annotation on the structure chart Copyright Databorough Ltd 2012 S_ QEMENU aA roRM J 7 Pu Chapter 3 Analysis amp Documentation Pd mE OTHCAL UPD CLISLET1 Customer Letter Stage 2 OTHCAL OTHFIL TF FPRTFIL OPC LIPEM OTH LIPEM PRTF SCD Legend Update F Display Print Input Output Command Others Internal Routine Indeterminate Trigger 3 Module Page 34 Select an object displayed in the Structure Chart Diagram and opt for Annotate option from the context menu The Annotate Option te Files ZA Object Where Used CUSTMNT1 ae Ego G OEMENU ES H Structure Chart for OEMENU Total Objects 14 Aly amp iF H Po Fi THAOEMENU Order Entry Menu 200m Source pa Data Flow Diagram 8OE001 Order Entry Object Where Used HICUSLET Customer Letter Stage 1 Variable Where Used ch Hierarchal Structure Chart CLUSLET1 Customer Letter Stage z Structure Chart Di agram EB Inverted Structure Chart LETM1 Letter Prefix Genera Program Structure Chart SCreeniIReoort Design 3 Ryecusl customer Letter all ee 3 Screen Report Source e Consolidated Rules CLISLETSG Update WKCLISSEF Find Fe Mark For S ll More Info This brings up the Annotation dialog Write your note and click the SAVE button The annotation is stored in a file available
106. rt and allow having a customised report Copyright Databorough Ltd 2012 Page 129 AX Chapter 6 Metrics Analysis Copy Report Definition Option Specialized Analysis 3 z Analysis Metrics for XANAUCDXA Category Report RPG Metrics Reports COMPLEXP General cross language complexity by program COMPLEX General cross language complexity by SUBROLUTIN DATACPX Program data complexity LOVSICP Program logic complexity LOGICS Program logic complexity by subroutine 3 Source Object Reports HARDCODE Programs with hardcoded libraries MISSING Source or objects missing SRCOBJDT Source change date after object created B Database Reports DATAERR Database File and member errors and alerts DSGNALRT Database design alerts Delete Report Definition If required the user can delete an existing report definition Run M Date Status Type Run Metrics Report Modify Report Definition Copy Report Definition Delete Report Definitio Delete Report Definition Option Specialized Analysis ci z Analysis Metrics for XANAUCDXA Category iReport RPG Metrics Reports COMPLEXP General cross language complexity by program COMPLESS General cross language complexity by SUBROUTINE DATACPX Program data complexity LOGICF Program logic complexity LOGICS Program logic complexity by subroutine Source Object Reports HARDCODE Programs with hardcoded libraries MISSING Source or objects mi
107. rules Double click on Business Rules node under the tutorial application Business Rules node under Tutorial Application B 192 168 170 10 E lih EZANAUDZA XAMACDEM Tutorial System ll Application Area Diagram ad Data Model Diagram im Overview Structure Chart te All Objects Ig Programs Files e Al Procedures g Exportable Functions Source Files Business Rules de Consolidated Rules Screen Components This invokes the business rules window displaying business rules for the tutorial application Copyright Databorough Ltd 2012 Page 106 AX a DMD Details Business Rules i Business Rules Far amp LL Number of Lines 340 Source Member CBCONDET CBCONDET CBCONDET CBCONDET CBCONDET CBCONDETEIN ww CBCONDE TH yy CBCORNDE Tv CBCORDE TH CBCUSFMAIT CBCUSFMAIT CBCUSFMAIT CBCUSFMAIT CBCUSFMAIT Rule Ma Oo001 OOOO OOOO DIETE DOES opogi ojog OOOO DIE OO001 OOO OOOO Di 0000s Field Chapter 5 Business Rules Analysis Business Rules Window File D STEMAS aOR DM ARCM ARCI t NAME TELM FAMO DSD_DE LISERMIM CORNDET CORNDET CORNDET CORIHDR STEMAS CORDET CORNHBDE CORNHDFE USF USF USF USF USF Aly tH Found on Product Master CONDET RECORD Contract lt gt LS SNvvoOoRDM Mok Found on Contract Detail FTO1 Contrack 0 Found on Contract Header Found on Praduck Master Mok Found on Contract Detail FTL Contrack 0 Found on Contract Header ZzZF
108. s Files Device files comprising Display Files and Printer Files Called Programs Calling Programs The Metrics information is broken down at highest level into the following categories e Batch programs e Interactive programs These two highest levels are then further sub categorised as High Average and Low The user specified values determine where a program fits into these sub categories By default these preferences are blank so every program is Low complexity until values have been set Check the Metrics Preferences section below to set these values E Please execute Generate Metrics Analysis option before opting Metrics Analysis option The following screen displays the Metrics information for the cross reference library XAN4CDXA Metrics Analysis for XANACDXA tg s ummary Metrics i E Metrics eu for XANACDXA Double Click to View History Complexity Level Units Source Type Source Lines Cyc Complex Halstead Maint Index Files Device Files Called Programs Calling Programs S Grand Total i Grand Total mE l Interactive source Member BEB High Tota 5 4 150 405 2 l 8 B 5 3b 5 ES mm rmm 23 283 2181 Low Total 40 947 3038 Batch Source Members 20 922 High Total m T35 5 799 196 E 3 Avage Tatal Low Total Application Area Breakdown as oo L 882i sw zn w9 m3 w 3 8 Average Total 266 1 263 Low Total ES
109. s Referred Files fF PTYPES Products x Legend Icon The Legend icon on the toolbar displays details of the colour scheme used by Hierarchical SCD Click the Legend icon As shown below Legend Icon e Files SA Object Where Used CUSTMNT1 OEMENU PE oEMENU ue H Hierarchal Structure Chart for DEMENU Total Objects 14 Po S p Legend OEMEMU D Order Entry Menu Referred Files 4 lt gt The Legend displays colour scheme which helps user to understand the reference and association of specific objects Copyright Databorough Ltd 2012 Page 43 Legend Expanded te Files ZA Object Where Used CUSTMNT1 S_ OEMENU rh OEMENU ES 771 mL Hierarchal Structure Chart for OEMENU Total Objects 14 Ley o Gd Update s O OEMENL D Displ Order Entry Menu mp 1 Referred Files Print Input m Output ID Command O OEDOZ O OE003 OE others Order Order Enquiry E Product Enquiry FE Referred F Internal Routine Referred Files Referred Files m SRTA Indeterminate O OEUD4 Gy LI OEUDE B Trigger Customer Enquiry Maintena Print Invoices l Referred Files l Referred Files 9 Module a ll m gt Document Manager One of the most powerful functionalities of X Analysis is the ability to generate structured documentation automatically The inbuilt document manager facilitates the generation of PDF MS Word document containing the sy
110. s reference library or in an application area New Application Area option B 192 168 170 10 he BP Lik Mew Application Area Add Alternate Data Library List Application Library List Refresh Options d Derive Business Rules The tutorial application contains pre configured application areas The following screenshot displays the available application areas in the tutorial application Copyright Databorough Ltd 2012 Page 96 Application Areas under XAN4CDXA BA 56 209 50 146 E m Application Area Diagram a Data Model Diagram Iz Overview Structure Chart Se All Objects Ts Programs Files All Procedures A Exportable Functions Source Files Business Rules Ua Consolidated Rules Screen Components e Change History SH Regenerated Programs Esl SOURCE Scan ki L8 amp Sanitize Resize E3 BG ACCOUNTS Company Accounts E B CONHDR conhdr i BG CUSTOMERS Customer App Area i BG DATATEST Data Test Demo E BG MVCPROCESS Re Engineering HES OE Order Entry DG OEDUO1 Application Area CEOO1 Application A gt ORDERS orders Areas H B ORDERS orders i BG PLAN Planning System i BG PRINT Printed documentation H B SALES Sales System E BG TEST test app area i B ATEST Test Demonstration Application Area Diagram A user can easily sub divide an application into business areas or application areas using X Analysis Similarly a user can further split applicat
111. s the Source Browser for the member CB906R Source Browser displaying CB906R source e Programs Ela cesor E3 mL Source List of CBSOGR in XANACDEM RPGSRE Lines 156 View Level 5 r E E EH f S e B9 M En SBE 0L m Re Seq No eto ee ae p Cu darum ee ee oe ee a ae ee C EMTRY 5 0009 00 Z FARM WWACFM 3 0010 00 E FARM WWACTP 10 0011 00 i FARM WWacss 1 0012 00 T FARM WWDAPG 60 0013 00 E PARM WWPTIT 104 0014 00 Z FARM WWPTTR 104 0015 00 E FARM WWTATP 3 0016 00 T FARM WWVLDA 60 00iF 00 FARM WWTAAM S3 0016 00 Z FARM WWACFG 1 0019 00 G FARM ZATODA 60 0020 00 T FARM WWCHG 1 DE noazi u C Initialise Parameters w ll gt Source Browser Toolbar The Source Browser toolbar has the following options Source List of CB906F in X4N4CDEM QRPGSRC Lines 156 View Level 5 Eg BD AHE G9 7o HU Ey SHO A m amp Source Options Source Outline Display Rules Pseudo Code Source level Diagram Options Generate UML Flow chart Screen Components Screen Report Design Zoom in Lpex available on WDSc Rdi only SEU option set XA preferences to select the appropriate option Export Options Print View Code Copyright Databorough Ltd 2012 Page 62 Source Options The Source Options menu allows a user to view source in various modes The default source view is Normal Source Code Source Options MENGE ES e Programs CBS SR 25 O Source List of EB3UGR
112. splaying referred fields from all objects The following screenshot displays the detailed DFD screen Copyright Databorough Ltd 2012 Page 24 YN Chapter 3 Analysis amp Documentation Detailed DFD View So Files S Object Where Used USF 5 Object Centered Data Flow Diagram for CUSF Total Objects 70 mj ZAUDCUSF Audit CUSF file Input 2 Fields s CNAME Company s CUSNO Cus No Bl ZAUDPTYPES Audit PTYPES File Input 1 Field e PRPCDE Product Code B ZAUDORGS Audit ORGS file Y Input 1 Field e ORG Organisation a WKCUSP Summary Customer Report Input 10 Fields ADD1 Address 1 ADD2 Address 2 ADD3 Address 3 ADD4 Address 4 CNAME Company CNTRY Country OLDMCH Machine STATUS Status TELNO Phone USERNM Contact a DSPPTYPES Display Product Y Input 1 Field a PRPCDE Product Code a ZAUDLISTS Audit LISTS file Y Input 1 Field s LSLCDE Orig List Code a CUSREAD Test Sequential Read options Input 1 Field s CUSNO Cus No L ZAUDASTATU Audit ASTATUS file Y Input 1 Field s STATUS Status B Customer Site Maintenance CUSF Sites b Access Paths b Input Programs b Input Services b Output Programs b Update Programs CUSFMAINT Y Update 20 Fields ADD1 Address 1 ADD2 Address 2 ADD3 Address 3 ADD4 Address 4 APDATE Next Contact Date CNAME Company CNTRY Country CUSNO Cus No DSDCDE Distributor EMA
113. sses the requirement of isolating indexing and documenting the design elements of a legacy application that are relevant in a modern version of application Before this tutorial explains Business Rules it is important to see how X Analysis helps in analyzing a monolithic legacy application by breaking it down into different sub areas for the ease of working Application Areas X Analysis creates application areas from part of one or multiple systems It is possible to subdivide programmatically an application into logical modules or areas This can be within the context of a single system or specific parts from multiple systems For example a user can have an application area as ORDERS containing the Order Entry details from an Operational System to represent single system application areas A user can also have an application area as ACCOUNTS containing the Order Entry details from an Operational System and the Sales Ledger details from the Financial oystem representing the application area as specific parts from multiple systems Application areas facilitate grouping of an application into different business areas X Analysis creates application areas based on certain criteria called Application Area Rules Hence Application Area Rules are a useful mechanism to categorize an application into different application areas A user can add a new application area by selecting the New Application Area option from the context menu in a cros
114. ssing SRCOBJDT Source change date after object created Database Reports DATAERR Database File and member errors and alerts DSGNALRT Database design alerts Specialized Analysis Toolbar pi cUm r Rum M Date Status Type Run Metrics Report Modify Report Definition Copy Report Definition Delete Report Definition The Specialized Analysis tooloar comprises various options discussed below Copyright Databorough Ltd 2012 Page 130 Specialized Analysis Toolbar p Specialized analysis 2 z Analysis Metrics for XANACDXA Refresh Metrics The Refresh Metrics icon performs the refresh function Refresh Icon on Specialized Analysis Toolbar Ta Specialized Analysis 5 X Analysis Metrics for XAN4CDXA Category Report un M Dake Tvpe Statys 3 RPG Metrics Reports Refresh Metrics Create New Report If required the user can create a customised report Use Create New Report icon for this Create New Report Icon on Specialized Analysis Toolbar 1 Specialized Analysis 5 z Analysis Metrics for XAN4CDXA Category iReport RPts Metrics Reports The Create New Report icon invokes the report definition dialog Copyright Databorough Ltd 2012 Page 131 Create New Report Dialog X Analysis Metrics Report Specification and Submission Report Mame Report Title Report category RP MET Edit categories Application Area All Members Selected
115. sted subroutines This positions the cursor on the subroutine inside the source browser Source Outline of CB906R a Programs Be CES 6R 35 Heures ER d Source List of CB906R in Lines 156 ViewLevek 5 ss BA CE3DeR S E EH gE RE E P e 9 EL IL S ER dee Seq No Dot ee eee eo ee ae IL ee RETRN 0020 00 0765C EXSR PVDD1 0031 00 C READ CRACPF 0032 00 C INITIALISE SCREEN 0033 00 WACK IFEQ ACT 0034 00 Wwacss OREQ D 0035 00 Z ADDO 0036 00 Z ADDO 0037 00 END 00238 00 WWACFG IFEQ M 0039 00 WUTATP IFEQ CLS 0040 00 WUCHG IFEQ D 0041 00 MOVE a amp C3 C C3 fy C3 C3 C3 C31 Pseudo Code The Pseudo Code or Structured English view helps a non technical user to understand the code better Click the Pseudo Code icon Pseudo Code option a Programs CB906R fs Source List of CE906R in X4N4CDEM QORPGSRC Lines 156 View Level 5 EE B EH ft E 9 G9 ur Eug 98 B ZI 00 m fae Seg Mo ae avsbum oe Os ac pun equ uo aere 0022 00 Pseudo Code SPOOL DOUE This brings up the Pseudo Code view Copyright Databorough Ltd 2012 Page 64 Pseudo Code e Programs Fla CBOOGR Ei mL Source List of CB906R in XANACDEM QRPGSRE Lines 149 View Level 5 pH E B Ed gE H9 7 dv Enc a BE D0 m 78 e Seq No Pseudo Code S OOz22 00 Repeat until Reditplay Screen equal ta N OO25 00 Repeat until Return Code equal to E Dax uc And i Mode equal to
116. stem design information for specified objects First Objects have to be marked for documentation Select option Mark for Documenter from the context menu over OEMENU Copyright Databorough Ltd 2012 Page 44 Mark an Object for Documentation te Files ZA Object Where Used CUSTMNT1 S_ OEMENU rh OEMENU ES 771 E Hierarchal Structure Chart for DEMENU Total Objects 14 IH Po is BM O OEMENL Order Entry Menu Toom Source Referred Files fa Data Flow Diagram Object Where Used Variable where Used rh Hierarchal Structure Chart OEDD2 J DEDOS S_ Structure Chart Diagram Order Enquiry Product Enquiry Referred Files Referred Files Inverted Structure Chart amp Program Structure Chart H GEOG Screen Report Design Customer Enquiry Maintena Print Invoices Screen Report Source Referred Files HH Referred Files Consolidated Rules Annotate Mark For Documenter X Analysis provides Mark all for Documenter option under the X Analysis menu This flags all objects displayed in the diagram X Analysis Menu Mew DE400 Connection Mew DBS Connection Mark all Far Dacumenter Change Application Folder Open Log Folder Open Application Folder Report an Issue The Mark all for Documenter option is available for all diagrams and lists Next navigate back to the object list window using the back arrow available on the eclipse toolbar and select the object CUSF select Mark for Documenter
117. t provides a toggle button Show Description to switch the DMD details list to display the description of the listed Files and Fields DMD Details view with Show Description icon Business Rules FF Member Ref 1 Screen Fields DMD Details 3 la i mL DMO Relations For ALL Total Relations 46 N Show Description RelMo Dependent File Relation Type Main File Dependent Fields Parent Fields Dep LF 1 C NTACS REFERS TO ASTATLIS STATUS STATUS CHTLF3 CHT ACS REFERS TO USF C EISNO CHINO C NTACS REFERS TO MAMESIDE USERMM IsMAME CHT ACS OWED BY PTY PES PRPCDE PRF DE CHTLF4 CHTACS REFERS TO SLMEM SIMIT PER SOM CORNDET REFERS TO CORIHDR SAM ORDIN aOR Dh Click the Show Description icon to see descriptive names for all the files and the fields Copyright Databorough Ltd 2012 Page 84 DMD Details view with Description Business Rules T Member X Ref TEE Screen Fields at DMO Details fa at mL DMD Relations Far ALL Total Relations 46 RelMo Dependent File Relation Type Main File Dependent Fields Parent Fields Dep LF 1 Contacts REFERS TO Status file Ss Status CNTLF3 Contacts REFERS TO Sites Cus Mo Cus Mo Contacts REFERS TO Names Index Contact Mame Contacts OWNED BY Products Prod Code Code CHTLF4 Contacts REFERS TO Salespersons Sales Person Person Contract Detail REFERS TO Contract He Contract Contract Click the Hide Description icon to switch back the DMD Details list to actual names mod
118. ta Model Diagram dialog Data Model Diagram option BB i92 168 170 10 lih ZANACDZA XANACDEM Tutorial System s Application Area Diagram Data Model Diagram Es Overview Structure Chart a All Objects Is Programs E Files All Procedures ls Exportable Functions Source Files Business Rules Em Consolidated Rules Copyright Databorough Ltd 2012 Page 81 Data Model Diagram dialog Data Model Diagram Application Area Description All Members Selected Object Object Text MS DMD Data Options CO Re Use cached DMD data if exists Re generate DMD data Display External Relationships It prompts a user to input the following 1 Application Area Name leave it as NONE 2 Object Name leave it as ALL 3 The Data Model Diagram option to reuse cached data or regenerate data leave it as Re Generate Data Model Diagram Data 4 Whether to display external relationships available only when Data Model Diagram opted on Application Area Then click the OK button to generate Data Model Diagram for the entire application Copyright Databorough Ltd 2012 Page 82 Data Model Diagram for entire Application KAN4CDXA fe Programs CB906R att Data Model Diagram 35 Data Model Diagram for ALL Total Objects 50 UU 7 ms ii T cts S Security Codes ii Business Rules wi Member X Ref 1 Screen Fields X DMD Details i DMD Relations Far YALL Total Relations 46 RelMo
119. tant features of the source browser is the ability to jump to a subroutine Double click on one of the subroutines available in the source browser for the program OEO008 Select Subroutine to perform jump action e Programs Ee obo 3 E zl Source List of DEDU8 in XAN4CDEM QRPGSRC Lines 220 View Level 5 Jd EE l3 E e S ES S9 v Ey SBE 09 m Re Seq Mo Poe cnr uer ca NEP ps d EL cb d eeu taB s 0044 00 CY Get Order Wo amp Customer Mo 0045 00 E WRITEGECLE ag 0046 00 T WRITEGCE TRL ag E 0047 00 C EXFMTOESFLC ag 0049 0d C So long as Exit not requested 1 0050 00 E INOS IFME 1 OO52 00 CY Retrieve Customer Details 0053 00 Cc EXSR RVCUS mimic r nm DU TIT gt Double click on RVCUS which positions the cursor to the beginning of the subroutine RVCUS Copyright Databorough Ltd 2012 Page 71 Highlighted first line of the Subroutine t Programs Bs OEOOS xi i a Source List of OE008 in XAN4CDEM ORPGSRC Lines 220 View Level 5 EE B Ed f S E eh 98 BN ZI 0 m R SCREEN WEE O109 00 i 2 RYC US BEGZE C Get Customer Record T CUSNG CHAIMCUSFL3 IN40 irgn 1 Z MOVEL BLANES MOVEL BLANES MOVEL BLANES MOVEL BLANES MOVEL BLANES END C ENDSE xXx cc cc eee eee eee eee TTT TAT TATA AAA AAA aa bul ll Click the back navigation arrow to go back to the line where the subrout
120. td 2012 Page 109 Consolidated Rules for XAN4CDXA Eh CUSTMNTI fer Consolidated Rules Ny mL Consolidated Rules for XANACDXA AB a e 4C Oo JdA B CNTACS Contacts ES CLISNO lus Ma Cus Mo not Found on Contacts us Mo Found an Contacts Cus Mo 0 Fash Fax Mo Fax Mo lt gt blank SINIT Sales Person Sales Person lt gt blank STATUS ts Sts 7 blank TELMO Phone Phone lt gt blank USERAM Contact Contact blank 4 CONDET Contract Detail AWAACS Skare Store not Found on Store Master Store nok Found on Stock Balances or CONDET Contract Oty gt Onhand_ Quantity aw BCD Product lii Select a business rule listed under a file and expand the business rule node to see the actual business rule code Expand Business Rules node to see the actual code Ee CUSTMNT 1 A Consolidated Rules x Te Consolidated Rules for XANACDXA AB w e aa 3 CMTACS Contacts 3i CLUSMO Cus Ma Cus Ma nat Found on Contacts IF NOT FOLIND CNTACS END Cus Ma Found on Contacts IF FOUNDECHT ACS AND NOT INIZ END END Cus Mo 0 IF CLISMO EQ zERCOS FAXMO Fax Ma t lii Copyright Databorough Ltd 2012 Page 110 AX Chapter 6 Metrics Analysis Chapter 6 Metrics Analysis The chapter presents another powerful option designed to meet the advanced computing requirements of today Metrics Analysis The chapter contains V V Copyrig
121. te the report A batch job submitted and on its completion the Specialized Analysis window updates itself Copyright Databorough Ltd 2012 Page 126 Specialized Analysis Window Specialized Analysis 3 5 F x Analysis Metrics For ZANACDXA d EL og a B Category Report Run M Date Tvpe Status RPG Metrics Reports Em COMPLEXP General cross language complexity by program 2011 06 17 Metrics data Submitted COMPLESS General cross language complexity by SUBRAOLE DATACPx Program data complexity LOGICP Program logic complexity LOGICS Program logic complexity by subroutine 4 Source Object Reports HARDCODE Programs with hardcoded libraries MISSING Source ar objects missing SRCOBJDT Source change date after object created Database Reports DATAERR Database File and member errors and alerts D5GMALRT Database design alerts To view the generated report select report and opt for View Report option from the context menu Updated Specialized Analysis Window J Specialized Analysis 53 E X Analysis Metrics for XANACDXA Um d Category iReport Run M Date Status RPG Metrics Reports 3 COMPLEXP General cross language complexity by program Metrics d Complete COMPLESS General cross language complexity by SUBROL DAT ACH Program data complexity LOGICF Program logic complexity LOGICS Program logic complexity by subroutine 4 Source Objeck Reports HARDCODE P
122. the defined system repository One can choose to view the report as a Static Report or a Difference Report The latter plots changes in values over a period giving a better idea of measurement Opt for the Specialized Analysis option from the sub menu Audit Options The following screen displays the Specialized Analysis window Specialized Analysis Window for XAN4CDXA Specialized Analysis 2 3 H X Analysis Metrics for XANACDXA Em lt l r Category Repart Run Number Date Type Status RPts Metrics Reports COMPLEXP General cross language complexity by program COMPLE General cross language complexity by SUBROUTINE DATACP Program data complexity LOGICP Program logic complexity LOGICS Program logic complexity by subroutine Source Object Reports HARDCODE Programs with hardcoded libraries MISSING Source or objects missing SRCOBJDT Source change date after object created 4 Database Reports DATAERR Database File and member errors and alerts D5GMALRT Database design alerts The user has an option to generate the pre configured reports Select any report from the listed category and opt for the context menu as shown below Copyright Databorough Ltd 2012 Page 124 AX Chapter 6 Metrics Analysis Context Menu on Report Definition RPG Metrics Reports COMPLESP General cross language complexity by program E EEE Run Metrics Report Modify Report Definition COMPLEXS Ge
123. tor Open Perspective Show View Customize Perspective Save Perspective S Reset Perspective Close Perspective Close All Perspectives Navigation Select X Analysis Perspective Open Perspective fag CWS Repository Exploring EN Database Debug Tz Database Development S Debug a Java 2 Java Browsing 29 Java EE default Te Java Type Hierarchy amp JavaScript He JPA e Planning ip Plug in Development ER Remote System Explorer Resource go Team Synchronizing y web Click the OK button to start the X Analysis Perspective Copyright Databorough Ltd 2012 Page 8 X Analysis Perspective X Analysis Eclipse Platform SEES File Edit Navigate Search Project X Analysis Run Window Help E Ig E d i dG i 3 Ea J s tj Tes J tE lavigation Metrics Dashboard B New Connection Signon to X Analysis Host Mame Expand New Connection node to invoke Signon Dialog Username Password Session Information Camel Session Items Description Host Marne Analysis Username Analysis Library Job Details Database Library Application Area Data Model Info Library List Expand New Connection node to bring up the Signon Dialog X Analysis Signon Dialog Signon to X Analysis Host Mame 1292 1568 170 10 Userna
124. ts and avail a summarized description of each of the objects Important functional aspects like updates prints and displays are colour coded to help you quickly focus on these commonly preferred details Copyright Databorough Ltd 2012 Page 31 Chapter 3 Analysis amp Documentation To create a Structure Chart diagram first select the object OEO002 from Data Flow Diagram for CUSF Double click on an object to bring up DFD for that object e Files oh Object Where Used ae ysr 33 Object Centered Data Flow Diagram for CUSF Total Objects 70 a A 85 EH amp GETDCOD Find Customer Distributor Code b Input z Fields EI orn Order Enquiry M LETN1 Letter Prefix Generation b Input 3 Fields m CEO Print Invoices mL Jin ALI ICZ 7 MIL Pen APDATE NexE Ci CMMNTI Commi CMMAT2 Comm CMMATS Comm CNAME Compan CATRY Country CRTDAT Creatic CRTMAM Create rpm 2 ie Ble he gt b Input z Fields b Input 5 Fields Double click on the object OE002 to display its Data Flow Diagram Data Flow Diagram for OE002 Hs oEgn2 5 E r e Files bh Object Where Used Program Centered Data Flow Diagram for GE00 Total Objects 5 e A amp Bl amp OEMENLU E OEUDZ2 Order Entry Menu Order Enquirv b Attributes b Calling Programs 1 Object H 4 b Input Files 3 Objects H P Output Files 1 Object H m CUSFL3 Sites by Number b Attributes m CUSTSL3 by Cusno Representati
125. ture Chart 9 Normal Depth Program Structure Chart L Screen Report Layout Business Rules Detailed CO Expanded SEE Field Annotation Annotation Detailed Annotation d Annotation F Source Flowchart Residual Logic Source level Level Level Cancel This System Documentation Wizard dialog allows a user to choose various features attributes to be included in system document Select the features attributes as shown above Click the Next button Copyright Databorough Ltd 2012 Page 50 System Documentation Wizard Specify Sequence X Analysis System Documentation Specify Sequence What sequence would vau like to have For the System Document Object List LF Access Path details File Field Details Object Where Used Data Flow Diagram Marmal with Annotation Move Down Structure Chart Normal with Annotation Program Structure Chart Confirm the sequence of the features attributes selected for system documentation Click the Next button Copyright Databorough Ltd 2012 Page 51 System Documentation Wizard Finish X Analysis System Documentation Finish Define Ehe Page Size and Contention Resolution Option Selected Sequence Level Settings Object List Structure Chart Level 5 LF Access Path details File Field Details Object Where Used Data Flow Diagram Marmal with Annotation Structure Chart Marmal with Annotation Progra
126. ur different values N1 N2 n1 and n2 obtained from the source code of each subroutine These values show numbers of different op codes or number of different variables used in the sub routines whether once or multiple times Measurements are calculated thus Module length N1 N2 Module vocabulary n1 n2 Halstead Volume N log 2 n Difficulty n1 2 N2 n2 Effort Volume Difficulty Maintainability Index Hewlett Packard engineers propound this formula According to this a number derived is directly proportional to the maintainability factor This means the lower the number the less maintainable the code will be and vice versa This calculation is also performed at the subroutine level It uses four numbers as input HV Halstead volume from above CC Cyclomatic Complexity from above LOC Lines of actual code in the subroutine COM Lines of non blank comments in the subroutine beginning after the previous ENDSR MI 5 2 naturallog HV 0 23 CC 16 2naturallog LOC 50 0 sin square root 2 46 COM Some more specific details with accompanying screenshots are available in the following pages The Metrics Analysis option provides low medium and high complexity classification of each program based on the following attributes of a program Source Type Source Lines Cyclomatic Complexity Halstead Maintainability Index Copyright Databorough Ltd 2012 Page 113 Chapter 6 Metrics Analysi
127. utes 4 WWCUSTSR Work with Customers b Attributes mj CUSTRPTO2 B Customer Transaction Report CUSTSSEL Customer Selection b Attributes e CUSTMNT1 Customer Detail Maintenanc b Attributes b Attributes H ORDERAUD_O Batch test Audit program initial version b Attributes ORDERAUD_1 Batch test Audit program change evel 3 b Attributes E CUSTMNT1_0 Customer Detail Maintenanc The objects displayed with a blue corner are t b Access Paths b Input Programs b Output Prog iagram for CUSTS B amp m8 amp H R a X CUSTS B a a Purchases CUSTSL1 by Cus Grp Customer b Attributes CUSTSL2 by Representative Customer 5 Objects H b Attributes 31 Objects H 2 Objects B grams 18 Objects H g m CUSTSL3 by Cusno Representative b Attributes CUSTSL4 by Distributor Customer b Attributes rams a CUSTSLS by Statement Customer b Attributes E CUSTMNTIR Customer Detail Maintenance b Attributes 5 Ll CBCUSTS ork with customer Cobol vers b Attributes a GCUST1 Generate Purchase Record b Attributes E CUSCPY Customer Copy b Attributes E CUSTMNTJR Customer Detail Maintenance b Attributes B e a CUSTMNT1_0 Customer Detail Maintenance b Attributes a CUSTMNT1_1 e Customer Detail Maintenance he ones which do not belong to the application area MVCPROCESS and are referred to as External objects Business Rules An application is chiefly cha
128. ve b Attributes PTYPES Products b Attributes 4 TIT gt Copyright Databorough Ltd 2012 Page 32 Select OEMENU and opt Structure Chart Diagram option from the context menu Context menu on DFD Object fe Files Object Where Used E9 oEDU2 3 mL Program Centered Data Flow Diagram For OEOU2 Total Objects 5 Fo m amp H m EI OEMENLI Fae Source OEDDZ Order Entry Menu Order Enquiry b Attributes fa Data Flow Diagram Alling Programs 1 Object H Object Where Used put Files 3 Objects H variable Where Used H jutput Files 1 Object H rh Hierarchal Structure Chart m CUSFL3 iz Structure Chart Diagram M The Structure Chart Diagram is a nested tree diagram that displays the complete call hierarchy of programs called Copyright Databorough Ltd 2012 Page 33 x Structure Chart Diagram te Files Structure Chart for GQEMENU Total Objects 14 A Object Where Used CUSTMNT 1 a EO OEMENLI Order Entry Menu OTH UFPE J OE001 Order Entry EDTFIL CUSLET Customer Letter Stage 1 LETN1 Letter Prefix Generation WECUSL Customer Letter CLISLETSQ Update Letter Sequence WKCLISSEF Find Fax Number WKCLISSE Customer Release Letter WECUSEP Customer Enquiry Letter CEO Order Enquiry DSPFIL Now there is a normal view of a Structure Chart Diagram shown above The Legend button available on the toolbar helps to inte
129. verage Total Be B Low Total Batch Source Members Select High Total Average Total i Low Total and double click to invoke History Window High Total Average Total Low Total ne can also invoke History Window for Grand Total or Batch Program or Interactive Program ee n mbina hor Dur s uu kS jiii Double click Low Total row on the Metrics Window to invoke Metrics History window Metrics History Window for Interactive Programs Summary Metrics Metrics History oS o Metrics History for XANA4CDXA Ea y Complexity Level Change Date Sour Cyc Cn Halst Maint In Files De A Pe Low Total J33 NNNM INT IRL INR Low Total Current State 2 241 T4b 40 94 7 3038 78 05 months back 2011 10 27 2 211 P2 40 652 2959 if 06 months back 2011 9 2 2 162 P2 40 85z 2064 ff OF months back 2011 8 2 2 496 rl 435 526 36065 Py 16 months back 2010 11 25 za rl 435 659 3046 Py 18 months back z 10 9 2 22045 P9 43 762 4376 Py 19 months back z 010 8 2 2 dog fro 42 178 4453 Tr 20 months back 2010 7 2 2 036 FEE 41 379 4200 21 months back 2010 6 2 1 356 Age 38 459 oreo 22 months back z 10 5 2 1 320 699 39 201 3046 TIT E S Metrics History Chart X Analysis can also display Metrics History as a chart form for all the individual parameters The Metrics History toolbar contains a drop down button called Metrics Analysis Copyright Databorough Ltd 2012 Page 117 Metrics Analysis Drop Down Button
130. ws the number of functions in the group Files Total number of Files used by screen function Database Fields Total number of screen fields which are read from database fields Work Fields Total number of work fields in the group Outgoing Calls Number of functions called by this function Incoming Call Number of functions calling this function Function Keys Total number of Function key based actions called by functions in this group Conditioning Fields Number of fields on which there is a conditioning logic I po 9 D am oe DJ Screen Metrics Toolbar The Screen Metrics toolbar comprises of various options discussed below Toolbar available on Screen Metrics Window Screen Metrics Settings Each User can set the Screen Metrics settings as per their requirements Copyright Databorough Ltd 2012 Page 121 Screen Metrics Settings Button on the Screen Metrics Toolbar i Screen Metrics 5 H Screen Metrics for XANACDXA 45 i m Complexity Level Units Files Database Fields work Fields Grand Total dal 154 644 L559 Oukgai Screen Metrics Settings Click the Screen Metrics Settings icon to invoke the preferences dialog Screen Metrics Preferences Dialog Screen Metrics Preference Setting Files Database Fields Work Fields Int Calls Fun Keys The user can set the criteria for High Average using the preferences dialog Print Screen Metrics To
131. ying the presence of cross file relationships or foreign keys X Analysis programmatically works in a two pronged manner from the parent file to the dependent enabling users to extract data models from even the most complicated or redundant legacy system X Analysis is fully loaded with the advanced capability of automatically extracting data model from an RPG COBOL based application This Data Modeling tool set is innovatively devised to forego the cumbersome task of reading millions of RPG or COBOL codes in order to recover a single relational model Through X Analysis the data model is viewable as an interactive diagram The software extends the benefit of perusing the file centric or application area specific filtering of the diagram The colour coded relationships between each entity help you learn their exact nature You can also take a print of the detailed report if you need to The chapter highlights the importance of understanding an application s design and describes how the Data Modeling solution set helps in deciphering complicated codes of databases The advanced tool accomplishes this to further its objective of extending automated solutions for data maintenance and development work The chapter contains Generating Data Model Diagram LFs Access Paths File Field Details Access Path Diagram View Data v v v v FY Copyright Databorough Ltd 2012 Page 80 The Data Modelling solution set is an add on module dedicate

Download Pdf Manuals

image

Related Search

Related Contents

FT-DR ZERO X説明書  LIBRETTO ISTRUZIONI INSTRUCTION BOOKLET  PMD85: Reference and Installation Manual  manual de instruções instrumento eletrônico - pda    TRAC T10124-28-29 User Manual 091010  Avira Mac Security HowTo  

Copyright © All rights reserved.
Failed to retrieve file