Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.

Similar presentations


Presentation on theme: "1 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective."— Presentation transcript:

1 1 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Action Diagram Debugger for Advantage 2E Data Management and Application Development Session Code: DA160SN

2 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 2 Abstract  Haven't you always wanted an Action Diagram Debugger for your Advantage 2E development environment?  Well, you don't have to wait much longer!  This session outlines this long awaited solution being developed by CA partner HawkBridge, and how it will be able to benefit your overall development experience using Advantage 2E.

3 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 3 Biography  Darryl Millington HawkBridge Pty Ltd  Darryl Millington is a senior software engineer and consultant specializing in the AS/400. He has been providing Advantage 2E, RPG and COBOL business systems development and support for over 16 years. His extensive technical experience includes all aspects of Advantage 2E programming, data modeling and environment support. He has been a regular speaker at conferences for more than 14 years.

4 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 4 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

5 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 5 The Generation Process  Involves a two phase process –Source generated from data model objects –OS/400 objects compiled from generated source Generate Source Device File Compile Help Program Data Model

6 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 6 The Generation Process  Generation Errors –If YGENSRC job failed see job log for messages –Scan for ‘ E* ‘ in generated source for messages Data Model Generate Generated Source Device File Compile Help Program

7 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 7 The Generation Process  Compilation Errors –Scan for *ERR in compile listings for messages Data Model Generate Generated Source Device File Compile Help Program

8 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 8 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

9 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 9 Current Unit Testing Tools  What is unit testing? –Check conformance to design specification –Not concerned with achieving user requirements –Conducted by the developer –Minor errors removed save substantial time and resource later on

10 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 10 Current Unit Testing Tools  Use YDOCMDLFUN to perform desk checking –Desk checking is still the most cost effective tool  Use YWRKF to setup test data –A data file utility is an essential tool to developers –Allows test data to be setup easily  Use Y2CALL to execute function –Prompts user with input parameters required –Allows developer to check returned parameters  Use DSPJRN to check file updates performed –Journals provide detailed audit trail of all file updates

11 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 11 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

12 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 12 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys

13 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 13 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Easily jump between different job lists.

14 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 14 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Entries remain on the list even after successful compilation of the object. Enables unit testing activities after compilation.

15 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 15 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Quickly position the list to the desired entry or select specific types of entries to display.

16 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 16 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Extensive number of subfile options available to increase developer productivity. Similar to Edit Model Object List options.

17 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 17 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Start action diagram debugger directly from this screen.

18 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 18 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Check Action Diagram and Generated Source directly from this screen.

19 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 19 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Extensive number of function keys available to increase developer productivity. Similar to Edit Model Object List function keys.

20 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 20 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Enter key no longer submits model generation requests.

21 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 21 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F14=Submitted Jobs F17=Subset F18=Options F19=Build F20=Check F21=Convert F23=More Options F24=More Keys Change submit generation options without exiting this screen.

22 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 22 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F14=Submitted Jobs F17=Subset F18=Options F19=Build F20=Check F21=Convert F23=More Options F24=More Keys Build, Check and Convert model job list entries on the current list.

23 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 23 Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model..... : HBUTLMDL Job List... : QSECOFR Member added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys

24 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 24 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

25 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 25 Check Function Action Diagram  Scans action diagrams for errors  Expands program to include all internal functions  Allow developer to view and edit the error  Finds most generation errors  Freeware version has been around many years  New version more robust and flexible

26 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 26 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

27 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 27 Check Generated Source  Scans source for generator errors and warning messages  Includes device and optional help source

28 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 28 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

29 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 29 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into

30 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 30 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Similar subfile options to existing Edit Action Diagram in View Mode.

31 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 31 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Similar function keys to existing STRDBG command in Source Debug mode.

32 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 32 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Current breakpoint line is highlighted and is identified by a ‘>’ next to the line.

33 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 33 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Breakpoint lines are red and identified by a ‘B’ next to the line.

34 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 34 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Display variable prompts for context and field name. Variable value is then displayed relative to the viewed function.

35 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 35 Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _.-- <<< _....1=Select <<< _. > 2=Edit <<< _..-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _. ¦ > Check return code. On error, send message and ignore. <<< _. ¦.-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _. ¦ ¦ * Error message already sent. Ignore return code. <<< _ B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _. ¦ ¦ <<< _. ¦ ¦-...NOT PGM.*Return code is *Normal <<< _. ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into

36 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 36 Agenda  The Generation Process  Current Unit Testing Tools  Edit Model Job List  Check Function Action Diagram  Check Generated Source  Action Diagram Debugger  Session Summary

37 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 37 Session Summary Unit Testing will be easier and more efficient  New Edit Model Job List function –Greatly improves developer productivity  Action Diagram Debugger –Negates need to read and understand HLL source

38 38 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Questions & Answers

39 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 39 Session Evaluation Form... please place it in the basket at the back of the room. After completing your session evaluation form...

40 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 40 Notes


Download ppt "1 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective."

Similar presentations


Ads by Google