A Modern Programmers Tool Set: CODE OCEAN Technical Conference Catch the Wave Susan M. Gantner Partner400 susan.gantner @ partner400.com www.partner400.com Your partner in AS/400 and iseries Education One of IBM's best-kept software secrets has hit the big time! Now that CODE is included in WDT/400, which is available with all development systems as of V5R1, CODE an essential tool that every AS/400 shops can afford. After all "free" is a pretty good price! CODE is a complete Windows-based programming environment for AS/400-iSeries programmers. It replaces PDM, SEU, SDA, RLU, and the various flavors of source view debuggers. It also adds its own unique features, such as a local code verifier that works even when you are not connected to your AS/400. You can develop and maintain your host-based green-screen applications much faster with CODE and enjoy it more! It supports all the most popular AS/400 languages, both ILE and Original Program Model (OPM) versions. Not only that but it also supports editing of Java and HTML code.once you try it you will soon wonder how you ever coded without it! We'll demonstrate for you some of our favorite features in CODE/400, so you can see for yourself what it can do for you. The author, Susan Gantner, is co-founder of Partner400, a firm specializing in customized education and mentoring services for AS/400 and iseries developers. After a 15 year career with IBM, including several years at the Rochester and Toronto laboratories, Susan is now devoted to educating developers on techniques and technologies to extend and modernize their applications and development environments. This is done via on-site custom classes as well as conferences and user group events. Together with her partner, Jon Paris, Susan authors regular technical articles for the IBM publication, eserver Magazine, iseries edition, and the companion electronic newsletter, iseries Extra. You may view articles in current and past issues and/or subscribe to the free newsletter or the magazine at: http://eservercomputing.com/iseries/. Feel free to contact the author at: susan.gantner @ partner400.com and visit the Partner400 web site at www.partner400.com. Copyright Partner400, 2002. CODE400 Introduction - Page 1-2
What is CODE? A part of Websphere Development Studio (WDS/400) A complete application development environment for developing AS/400 host applications on your Windows PC Formerly called "CODE/400" CoOperative Development Environment An integrated set of development tools that provides significant productivity enhancements for: The edit/compile cycle Designing DDS screens and reports Debugging AS/400 applications And best of all it's "Free" CODE Tools CODE Editor A powerful PC editor for AS/400 and PC source code CODE Designer A rich graphical interface for designing/maintaining DDS display, printer and database files CODE Debugger Debug host applications from your workstation CODE Project Organizer PDM for your PC - integrates and organizes your programming projects Copyright Partner400, 2002. CODE400 Introduction - Page 3-4
Why CODE? Significant productivity gains New functions and GUI Shortens edit/compile/debug cycle Off-loads host cycles Use PC for editing, designing and verifying code Work in 'disconnected' mode - perfect for telecommuters Investment protection Works equally well with leading edge and legacy languages Even non-ile code! Migration path Working together with the other tools in WDT/400, create applications for host, client and web environments How we work without CODE... 1- Open source 2- Make changes 3- Save source 11 10 9 8 7 12 6 1 2 3 4 5 4- Submit compile 5- Batch job ends 6- Completion message 11 10 9 8 7 12 6 1 2 3 4 5 7- Look for spool file 8- Find errors 9- Locate errors in source Copyright Partner400, 2002. CODE400 Introduction - Page 5-6
How we work with CODE 1- Open Source 2- Make changes 3- Verify - Error feedback immediate and obvious 4-Submit compile - Auto save to host - Error feedback when compile ends An Integrated Environment Project Organizer Editor Debugger Program Verifier Error List Program Generator Designer Windows 98 Windows NT/2000/XP Host execution Copyright Partner400, 2002. CODE400 Introduction - Page 7-8
The CODE Editor Seamless access to local and host source Language-sensitive editing Token highlighting Built-in syntax checking Program verification The compiler on your PC!! SEU-commands, format rulers and prompting Lots of on-line help Clipboard, unlimited undo Edit multiple files Command shell Programmable and customizable Plus lots more... RPG II, III, & IV COBOL, CL, DDS, C, C++, Java, & HTML Host or local... it's transparent!! The CODE Editor Status area Sequence numbers Command line Syntax checking Format line Quick file access Copyright Partner400, 2002. CODE400 Introduction - Page 9-10
Integrated Error Feedback System Local processing Much faster! Can save host cycles New edit-compile paradigm Local syntax check Local program verify Invoke host compiler Caching: COPY members, DB refs Editor Program Verifier Error List From the edit window you can: Work with syntax checker, verifier, & host compiler errors Search language reference manuals Start debug session Program Generator The Program Verifier Copyright Partner400, 2002. CODE400 Introduction - Page 11-12
The Error-List Window Help - at your fingertips Context-sensitive Message help RPG, COBOL, DDS online references The manuals at your fingertips! Copyright Partner400, 2002. CODE400 Introduction - Page 13-14
SEU - Like Features SEU Line Commands Format line F4 Prompting Finding Your Way Filtering Find and Replace Copyright Partner400, 2002. CODE400 Introduction - Page 15-16
The Indent Function The Navigator Copyright Partner400, 2002. CODE400 Introduction - Page 17-18
Graphical Compare Inserted Lines Deleted lines Editor Programming Why program it? Need for a new editor function Repetitive task, fastpath key for heavily used function Tailor the editing environment for your shop What can you do? Specify editor default settings Add editor functions and your own macros to the menus and toolbar Assign/re-assign keys and/or line commands to editor functions and your own macros Interact with the host via the CODESRV command How do you do it? Write macros in REXX or Java + editor commands IBM supply a number of samples - more in a moment Use the 'profiles' to load in the macros. Copyright Partner400, 2002. CODE400 Introduction - Page 19-20
Using a simple editor macro The macro on the following chart "typed" this code The actual expression was prompted as shown And then positioned the cursor ready for the first operation The macro itself - very simple Copyright Partner400, 2002. CODE400 Introduction - Page 21-22
IBM Supplied Smart Guide - Procedures IBM Supplied Smart Guide - RPG X-Ref Copyright Partner400, 2002. CODE400 Introduction - Page 23-24
CODE Program Generator Submit compile to host Change CRTxxx command options Compile Option Notebooks CODE/400 remembers your compile options Copyright Partner400, 2002. CODE400 Introduction - Page 25-26
CODE Designer Graphical design tool Create and maintains DDS source for display, printer & database files Unique interface Lets novice create DDS quickly and easily while giving the expert access to all the features of DDS DDS Tree - Hierarchy of the DDS source Details Page - Details of the DDS Tree selection Design Page - Graphically design your DDS here Source - See the actual DDS source Listing - Output from the last verify. Selected DDS - See source for current selection Create keywords - Add file,record,field keywords Error List - Errors from the last verify The Design Page - Display File Design page Properties notebook Copyright Partner400, 2002. CODE400 Introduction - Page 27-28
CODE Designer for Database Files CODE Debugger RPG, COBOL, CL, C, C++, and Java Both OPM and ILE; step between them Multiple breakpoint types Display and change variables Source and listing views Look at call stack Batch and interactive Debug Source/Listing View Enter name of customer... Enter account number... 5250 Emulation Window Application runs on the host AS/400 Copyright Partner400, 2002. CODE400 Introduction - Page 29-30
Debugger Interface Programs and procedures Source View Monitored Variables Active Breakpoint CODE Project Organizer Like PDM - manages lists of local files, host objects and members Pop-up menus allow easy access to local and AS/400 command actions Easy to create user-defined actions Can use all PDM substitution variables Actions are importable and exportable To be replaced in new WDSC product with Remote System Explorer Copyright Partner400, 2002. CODE400 Introduction - Page 31-32
CODE Project Organizer Filter List Details List Context Menu Monitor Window CODE - What you need On your workstation: Windows 95/98/NT/2000 Also works on XP but... Emulator of choice CODE tool - loaded from CD set Part of WDS/400 V4R5 Product 5769-WDS V5R1 Product 5722-WDS If you "own" SEU and a compiler Then you "own" CODE!! No additional charges On V4R5 you may need to request a product refresh Copyright Partner400, 2002. CODE400 Introduction - Page 33-34
What About the New WDSC Package? Websphere Development Studio Client New packaging which replaces WDT/400 in V5R2 and late shipped versions of V5R1 The good news: Great new Java programming toolset, new web design tools, strategic "Eclipse" plug-in technology base The bad news: CODE functionality is not yet incorporated into Eclipse base Existing CODE tool is shipped with WDSC... HOWEVER... It is NOT separately installable (you must install everything) Help text integration is not nearly as good as in existing (V5R1) CODE tool The moral is: If you ONLY want CODE tools, don't lose the V5R1 WDT/400 CD set!!! CODE Summary Complete development environment on your Workstation Huge productivity boost! Work disconnected from host - Great for telecommuters Offloads AS/400 programmer workload Packaged with 4 other great workstation-based programmer tools: VisualAge RPG VisualAge for Java for iseries Websphere Studio for iseries Webfacing Visit IBM's web site: www.software.ibm.com/ad/wds400 User newsgroups Downloadable presentations and lab exercises Fix pack downloads News, FAQs, etc. Copyright Partner400, 2002. CODE400 Introduction - Page 35-36