1 / 49

AS/400 Concepts & Tools

AS/400 Concepts & Tools. Day 1. Introduction to the AS/400 Basic Technical Concepts Programming Environment & Tools Programming Development Manager (PDM) Screen Design Aid (SDA) Source Entry Utility (SEU). Day 2. Nano Project Control Language (CL) Crash Investigation Debugging

Download Presentation

AS/400 Concepts & Tools

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AS/400 Concepts & Tools

  2. Day 1 • Introduction to the AS/400 • Basic Technical Concepts • Programming Environment & Tools • Programming Development Manager (PDM) • Screen Design Aid (SDA) • Source Entry Utility (SEU)

  3. Day 2 • Nano Project • Control Language (CL) • Crash Investigation • Debugging • DB2/400 • Query/400 • Introduction to RPG

  4. Objective Give the participants a pretty good idea about what a full course would be like and what to expect if they decide to become AS/400 developers.

  5. Hello World

  6. How are you?

  7. Under the hood

  8. Hello World • Start session B • EX00101DS • SAYHELLO • DSPCMD • EX00101 • HELLOSRC / Library • Library contains HELLOSRC • HELLOSRC contains members

  9. How are you? • Session A • PDM Opt.1 (TRAINER1) • PDM Opt.1 (Ln22/23, F23, F24, F18, Bottom) • 12 on TRAINER1 (Lib, Objects) • CRTLIB (Security, Msgs(24), +) • CRTSRCPF (112, W/o Desc.) • 13 on HOWSRC • 12 on HOWSRC

  10. Architect’s Plan

  11. The House

  12. PF-SRC=Architect’s Filing cabinet Member = Architect’s Plan Compiler =Civil Engineer Object =The House

  13. SDA • Opt.3 EX00201DS EX00201DSA • Opt.17; Explain WW Display Records screen • Opt.12-Ins/Del caution • 2,2 *user, 1,60 *date, 2,65 *time • Date & Time >>>>, <<<<<, • User -=, -==, CW, CB, CP • Exit SDA • Session A (SAYHOWRYOU) • Session B (5 on EX00201DS)

  14. i = Integration

  15. Integrated File System (IFS) Native Environment

  16. Numeric Data • Zoned Decimal (Also called Signed) • Packed Decimal • Binary (My suggestion: Do not use in Business Applications)

  17. 1 1 2 2 3 L 1 1 2 2 3 3 4 M Each digit needs one Byte. If negative, sign is indicated by setting “B” bit “on” in Units position. Zoned / Signed Positive Negative

  18. 4 8 5 2 7 Sequential File Organization 8 7 7 2 5 5 4 8 2 4 School School

  19. Sequential Files • No Key • Data is stored in arrival sequence

  20. 4 8 5 2 7 Indexed File Organization 8 2 7 4 5 5 4 7 2 8 School School

  21. Indexed Files • Have one or more Keys • Conceptually, two files – one containing record data, the other containing Key Values and “Pointer” to the record data. • Record data is stored in arrival sequence. • “The other” file is automatically updated by the Operating System.

  22. Objects

  23. 91 2025399615 Library Type Name

  24. Libraries • Purpose • Similarity to Windows Folders • Exceptions

  25. Libraries (Exceptions) • QSYS • QTEMP • Purpose • Creation • Initialization • Deletion

  26. Library List

  27. Database Files • Physical Files Table in RDBMS • Logical File View in RDBMS

  28. Conceptual structure of a PF File Description (Metadata) Storage Area for Data Index (Access Path in IBM’s terminology)-Optional Member 1 Member 2 . . . Member n

  29. Physical Files PF-SRC PF-DTA

  30. PF-DTA & PF-SRC • No “Structural” difference • Compilation • PF-SRC  No member • PF-DTA  One member (Name defaults to File Name)

  31. Members • Use • Type • When to use • When not to use

  32. Development Tools • Source Entry Utility • Screen Design Aid • Report Layout Utility • Data File Utility

  33. Nano Project

  34. Screen Design Aid (SDA), Option 2-Design menus

  35. PF-DTA Data File Utility (DFU) Screen Design Aid (SDA), Option 1-Design screens Control Language Program

  36. Screen Design Aid (SDA), Option 2-Design menus

  37. Screen Design Aid (SDA), Option 2-Design menus

  38. We need • A menu. • A Physical File to store Fruit Information. For menu option 1 (and 2 too). • A program to read Fruit Information from PF. For menu option 1. • A screen to display Fruit Information. For menu option 1 and 2. • A program to display Fruit Information using the DSPF. For menu option 1 and 2. • A Logical File (Index) with Fruit Name as the key. For menu option 2. • A program to read Fruit Information from LF. For menu option 2.

  39. High Level Plan • Create Menu. • Implement Option 1. • Implement Option 2. • Implement Option 3.

  40. Menu = Gift Wrapping

  41. Revised High Level Plan • Implement Option 1. • Implement Option 2. • Implement Option 3. • Create Menu.

  42. Option 1 Needs • A Physical File to store Fruit Information. • A program to read Fruit Information from PF. • A screen to display Fruit Information. • A program to display Fruit Information using the DSPF.

  43. Option 01 Diagram FRUITS NP0101 Fruit Name F3 Pressed? (Y/N) Purchase Price NP0102 NP0102DS Retail Price Wholesale Price

  44. FRUITS ?

  45. Development Plan-Option 01 ORANGE, 3000, 8000, 5000 PEACH, 15000, 30000, 20000 APPLE, 5000, 10000, 8000 FRUITS • Create. • Populate. • Create. • Test. • Create. • Create. • Test NP0101 NP0102DS Testing Development NP0102

  46. Query/400 • Benefits • Limitataions

  47. RPG • Display “Hello World” (EX00103) • Calculator (EX00403)

  48. I hear and I forget. I see and I remember. I do and I understand.

More Related