Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Database 101 on IBM i

494 vues

Publié le

The IBM i is an extremely complex integrated system, and many users struggle to understand its capabilities. View this slideshow to learn how to use the features of IBM i and how to use it to access databases.

Watch the on-demand webinar on HelpSystems.com:
http://www.helpsystems.com/sequel/events/recorded-webinars/database-101-ibm-i

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Database 101 on IBM i

  1. 1. Database 101 on IBM i
  2. 2. © HelpSystems. Company Confidential.2/26/2016 2 Heath Kath Sr. Data Access Consultant Mike Stegeman Sr. Data Access Consultant Today’s speakers: Welcome!
  3. 3. © HelpSystems. Company Confidential.2/26/2016 3 Polling Questions
  4. 4. © HelpSystems. Company Confidential.2/26/2016 4 Today’s Agenda  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A
  5. 5. © HelpSystems. Company Confidential.2/26/2016 5  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  6. 6. © HelpSystems. Company Confidential.2/26/2016 6 IBM i International Business Machine • System/38—37 years ago • AS/400—28 years ago • System i—10 years ago System/38 Power Systems Running IBM i
  7. 7. © HelpSystems. Company Confidential.2/26/2016 7 Top IT concerns for the next 5–10 years? Active Projects IBM i server ROI http://www.helpsystems.com/ibm-i-marketplace-survey-results 2016 IBM i Marketplace Survey
  8. 8. © HelpSystems. Company Confidential.2/26/2016 8 Command Language (CL) CRTPF High Level Language SQL CREATE TABLE SELECT INSERT UPDATE DELETE DB2 for i DB2 for i and SQL
  9. 9. © HelpSystems. Company Confidential.2/26/2016 9 IBM i SQL System Database Library Schema Physical File Table Logical File View Keyed Logical File Index Field Column Record Row Journal Log DB2 Terminology: IBM vs. SQL
  10. 10. © HelpSystems. Company Confidential.2/26/2016 10  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update Data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  11. 11. © HelpSystems. Company Confidential.2/26/2016 11 DB2 Libraries, Files, and Members
  12. 12. © HelpSystems. Company Confidential.2/26/2016 12 Library FILE PGM QMQRY QRYDFN DTAARA OUTQ USRSPC JRN Common IBM Libraries: QSYS, QGPL, QUSRSYS, QTEMP Example User Libraries: DEPTA, HOSPITAL1, BANKLIB, QRY_LIB DB2 Library Objects
  13. 13. © HelpSystems. Company Confidential.2/26/2016 13 SALES Physical File SALES2014 Member 1 SALES2015 Member 2 SALES2016 Member 3 Records Records Records DEPT_A_LIB Library - File - Member - Records Physical File (PF)
  14. 14. © HelpSystems. Company Confidential.2/26/2016 14 SALES Physical File SALES2014 Member 1 SALES2015 Member 2 SALES2016 Member 3 Records Records Records DEPT_A_LIB Library - File - Member - Records Physical File (PF)
  15. 15. © HelpSystems. Company Confidential.2/26/2016 15 SALES Physical File SALES2014 Member 1 SALES2015 Member 2 SALES2016 Member 3 Records Records Records DEPT_A_LIB Library - File - Member - Records Physical File (PF)
  16. 16. © HelpSystems. Company Confidential.2/26/2016 16 SALES Physical File SALES2014 Member 1 SALES2015 Member 2 SALES2016 Member 3 Records Records Records DEPT_A_LIB Library - File - Member - Records Physical File (PF)
  17. 17. © HelpSystems. Company Confidential.2/26/2016 17 SALES Physical File SALES2014 Member 1 SALES2015 Member 2 SALES2016 Member 3 Records Records Records DEPT_A_LIB Library - File - Member - Records Physical File (PF)
  18. 18. © HelpSystems. Company Confidential.2/26/2016 18 Customer Master File DB2 File (Table) Objects
  19. 19. © HelpSystems. Company Confidential.2/26/2016 19 Customer (PHYSICAL) • Customer Name • Customer Number • Address • City • State • Zip Code • Phone Number • Sales—Purchases • Date of Purchase • Credit Card Number • Credit Card Expiration Date • Balance Due Customer_V1 (LOGICAL) • Customer Name • Customer Number (key) • Balance Due • Phone Number Customer_V2 (LOGICAL) • Customer Name (key) • Number • City, State, Zip Code • Phone Number • Credit Card # and Expiration Date Logical File (LF)
  20. 20. © HelpSystems. Company Confidential.2/26/2016 20  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  21. 21. © HelpSystems. Company Confidential.2/26/2016 21 • Control Language (CL) is the language on IBM i • Commands are stored in library QSYS • Use commands to navigate without using menus • A CL Program (CLP) contains commands that can be interpreted or compiled Common IBM i Commands
  22. 22. © HelpSystems. Company Confidential.2/26/2016 22  Prefix—Action – Create CRT – Display DSP – Work with WRK – Send SND – Change CHG – Copy CPY – Start STR – Delete DLT  Suffix—Object – Library LIB – Object OBJ – Job JOB – Message MSG – Password PWD – User Profile USRPRF – Writer WTR – Status STS • Nouns: Attributes A Queue Q Description D Entry E File F IBM i Commands
  23. 23. © HelpSystems. Company Confidential.2/26/2016 23  Prefix—Action – Create CRT – Display DSP – Work with WRK – Send SND – Change CHG – Copy CPY – Start STR – Delete DLT  Suffix—Object – Library LIB – Object OBJ – Job JOB – Message MSG – Password PWD – User Profile USRPRF – Writer WTR – Status STS • Nouns: Attributes A Queue Q Description D Entry E File F WRK + LIB = WRKLIB Work with Library WRK + F = WRKF Work with Files WRK + OBJ = WRKOBJ Work with Objects IBM i Commands
  24. 24. © HelpSystems. Company Confidential.2/26/2016 24 WRKLIB LIB(SEQUELEX)
  25. 25. © HelpSystems. Company Confidential.2/26/2016 25 WRKLIB LIB(SEQUELEX)
  26. 26. © HelpSystems. Company Confidential.2/26/2016 26 WRKOBJ (Work with Object)
  27. 27. © HelpSystems. Company Confidential.2/26/2016 27 WRKOBJ (Work with Object)
  28. 28. © HelpSystems. Company Confidential.2/26/2016 28 Production Data Development Data CUSTMAST CUSTMAST CRTDUPOBJ (Create Duplicate Object)
  29. 29. © HelpSystems. Company Confidential.2/26/2016 29 WRK* • WRKACTJOB • WRKALR • WRKALRD • WRKAUT • WRKAUTL • WRKBNDDIR • WRKLIB • WRKF • WRKOBJ • WRKJRN DSP* • DSPACC • DSPACCAUT • DSPACTPJ • DSPACTPRFL • DSPACTSCD • DSPAPPNINF • DSPASPSTS • DSPAUDJRNE • DSPAUT • DSPF CHG* • CHGACGCDE • CHGACTPRFL • CHGACTSCDE • CHGAJE • CHGALRACNE • CHGALRD • CHGJOB • CHGLF • CHGPF • CHGPWD IBM i Command Tricks
  30. 30. © HelpSystems. Company Confidential.2/26/2016 30 • Apply Journaled Changes • Apply Journaled Changes Extend • Change Current Directory • Change Current Directory • Change Accounting Code • Change Active Profile List • Change Activation Scd Entry • Change Autostart Job Entry • Change Alert Action Entry • Chang Physical File • Change Physical File Member • APYJRNCHG • APYJRNCHGX • CD • CHDIR • CHGACGCDE • CHGACTPRFL • CHGACTSCDE • CHGAJE • CHGALRACNE • CHGPF • CHGPFM GO CMDCHG IBM i Command Tricks
  31. 31. © HelpSystems. Company Confidential.2/26/2016 31 • Close File • Copy File • Copy From Import File • Copy From Stream File • Copy to Import File • Copy to Stream File • Declare File • Delete File • Delete Override • Display File • Display File Description • Display File Field Description • CLOF • CPYF • CPYFRMIMPF • CPYFRMSTMF • CPYTOIMPF • CPYTOSTMF • DCLF • DLTF • DLTOVR • DSPF • DSPFD • DSPFFD GO CMDFILE IBM i Command Tricks
  32. 32. © HelpSystems. Company Confidential.2/26/2016 32  DB2 for IBM i  Objects Types (libraries, files, members, etc.)  IBM i Commands  Securing the data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  33. 33. © HelpSystems. Company Confidential.2/26/2016 33 Security = Authority
  34. 34. © HelpSystems. Company Confidential.2/26/2016 34 Security Breach
  35. 35. © HelpSystems. Company Confidential.2/26/2016 35 FILE PGM QMQRY QRYDFN DTAARA OUTQ USRSPC JRN Libraries Object Level Security
  36. 36. © HelpSystems. Company Confidential.2/26/2016 36  DB2 for IBM i  Object type (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  37. 37. © HelpSystems. Company Confidential.2/26/2016 37 BEFORE Customer # Balance Due • 100–200 $ 5,500.30 • 100–300 $ 20,000.00 • 100–400 $ 13,350.45 • 100–500 $ 7,500.00 Journaling: Tracking File Changes AFTER Customer # Balance Due • 100–200 $ 5,500.30 • 100–300 $ 2,000.00 • 100–400 $ 13,350.45 • 100–500 $ 7,500.00 OR Customer # Balance Due • 100–200 $ 5,500.30 • 100–400 $ 13,350.45 • 100–500 $ 7,500.00
  38. 38. © HelpSystems. Company Confidential.2/26/2016 38  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  39. 39. © HelpSystems. Company Confidential.2/26/2016 39 IBM’s SQL (STRSQL) • INSERT • UPDATE • DELETE DFU (STRDFU) • CHGDTA • UPDDTA Applications (Pgms) • CLP • RPG • COBOL • C++ • Java Other Products EASY VIEW • Update • Delete • Insert • Relations/Auditing SEQUEL • Update • Delete • Insert System i Navigator (Ops Nav) • Insert • Update • Delete How to Update Data
  40. 40. © HelpSystems. Company Confidential.2/26/2016 40  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing your data  Tracking file changes  How to update data  Accessing and distributing data - Data access demonstration  Q&A Today’s Agenda
  41. 41. © HelpSystems. Company Confidential.2/26/2016 41 IBM’s Built-In Data Access Tools • STRSQL (SQL) Start SQL Interactive Session • WRKQRY (QRY/400) Work With Query/400 Queries • STRQM (QM) Start DB2 UDB Query Manager Commands • DSPF Display File Other: • Programs CLP, RPG, COBOL, C++, Java, DFU Accessing and Distributing Data
  42. 42. © HelpSystems. Company Confidential.2/26/2016 42 Display Results QRY/400 SQL DSPF
  43. 43. © HelpSystems. Company Confidential.2/26/2016 43 Print Results QRY/400 SQL
  44. 44. © HelpSystems. Company Confidential.2/26/2016 44 Display Results with SEQUEL Displayed to the screen Exported to Excel
  45. 45. © HelpSystems. Company Confidential.2/26/2016 45 View your data on:  Green screen  Browser  Mobile device Flexibility | Mobility | Productivity › SEQUEL Overview
  46. 46. © HelpSystems. Company Confidential.2/26/2016 46 SEQUEL—Data Access and Distribution • SEQUEL ViewPoint • SEQUEL Web Interface 10 Minute Demonstration
  47. 47. © HelpSystems. Company Confidential.2/26/2016 47 Charts & Graphs Pivot Tables Remote Database Access Custom Reports Scripting Browser Access Executive Dashboards Report Distribution Queries & Views Drill-Down Data Analysis Easily Access and Share Data SEQUEL Data Warehouse
  48. 48. © HelpSystems. Company Confidential.2/26/2016 48 Flexibility | Mobility | Productivity › SEQUEL: Modern Access and Distribution of IBM i and Remote data View your data on:  Green screen  Browser  Mobile device
  49. 49. © HelpSystems. Company Confidential.2/26/2016 49 IBM i/DB2 Summarized Apowerfulsystem Reliability Scalability Security CommandsObject Types Securing Data Tracking File Changes Updating Data Accessing Data
  50. 50. © HelpSystems. Company Confidential.2/26/2016 50  DB2 for IBM i  Object types (libraries, files, members, etc.)  Common IBM i commands  Securing the data  Tracking file changes  How to update data  Accessing and distributing data  Data Access Demonstration  Q&A Today’s Agenda
  51. 51. © HelpSystems. Company Confidential.2/26/2016 51 Quick Feedback
  52. 52. © HelpSystems. Company Confidential.2/26/2016 52 We are ready for your questions! Heath Kath Sr. Data Access Consultant heath.kath@helpsystems.com Mike Stegeman Sr. Data Access Consultant mike.stegeman@helpsystems.com www.helpsystems.com/sequel
  53. 53. © HelpSystems. Company Confidential.2/26/2016 53 Where to Start with IBM i Operations http://www.helpsystems.com/robot/where-start-ibm-i-operations IBM i Operations 101 – Online Training Course http://www.helpsystems.com/robot/ibm-i-operations-101 IBM Knowledge Center http://www-01.ibm.com/support/knowledgecenter/ IBM i Database Tip-Sheet http://bit.ly/1PPS6UO Helpful links:
  54. 54. © HelpSystems. Company Confidential.2/26/2016 54 Website: www.helpsystems.com/sequel Phone: 800-328-1000 or 952-933-0609 Outside U.S. +44 (0) 870 120 3148 Email: heath.kath@helpsystems.com mike.stegeman@helpsystems.com support.sequel@helpsystems.com Thank You for Joining Us Today!

×