IMS Explorer Lab Presentation - IMS UG May 2013 Philadelphia
Upcoming SlideShare
Loading in...5
×
 

IMS Explorer Lab Presentation - IMS UG May 2013 Philadelphia

on

  • 517 views

 

Statistics

Views

Total Views
517
Views on SlideShare
517
Embed Views
0

Actions

Likes
0
Downloads
7
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential
  • - IBM Confidential

IMS Explorer Lab Presentation - IMS UG May 2013 Philadelphia IMS Explorer Lab Presentation - IMS UG May 2013 Philadelphia Presentation Transcript

  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation05/29/13Succeeding at Enterprise Mobility with IMSNancy SteinIBM IMS Advanced Technical Skillsngstein@us.ibm.com
  • Advanced Technical Skills (ATS) North America© 2010 IBM CorporationIMS User Group Meeting – 2013 IMS Open Database, ODBM & IMS Explorer– What is it?– Why should I set it up?– What is it good for?– How can I use it? IMS Enterprise Suite Explorer for Development - Lab– Download & install the IBM Installation Manager and IMS Explorer– View and modify DBDs/PSBs– Experiment with SQL to access IMS Databases2
  • Advanced Technical Skills (ATS) North America© 2010 IBM CorporationIMS Enterprise Suite Explorer for Development3
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Quickly and easily model, display, and edit IMS database and programdefinitions. Use rich GUI controls and contextual help. Simplify segment mapping. Securely and intuitively view and edit z/OS data sets and z/OS Unix files,submit JCL, and view output and job logs. Gain a relational view of IMS data. Build SQL statements to use with IMS data. Integrate with IMS 12 catalog and simplify your application tasks even more. Exploit new structure and array types that are accessible thanks to IMS 12catalog support. IMS Explorer runs on Windows systems and supports cross-productintegration (shell-sharing) with IBM Rational Developer for System z,IBM Data Studio, and IBM Problem Determination Tools plug-ins for Eclipse.4IMS Explorer Capabilities
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation5• Copy the entire “IMS User Group Lab” directory from the Flash Memorydevice to your laptop• The directory contains 2 zip files and various documentation filesCopy IMS Explorer Software vs Download
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Start at the IBMIMS Home Page:www.ibm.com/ims Select the IMSEnterprise Suite6IMS Enterprise Suite Software
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation7Select the IMSEnterprise SuiteExplorer forDevelopmentIMS Enterprise Suite Software
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation8IMS ES Explorer Software Select & downloadthe Brochure: IBMIMS Enterprise SuiteExplorer Then return toprevious webpage
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation9IMS ES Explorer Software Download Link to ES 2.2Information Center Select the IMSEnterprise Suitedownload website If desired, selectthe RationalDeveloper forSystem z websitelink
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation10You will need an “IBM ID” to Sign-in and download IBM softwareIMS ES Explorer Software Download
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation11IMS ES Explorer Software Download Select IMS EnterpriseSuite Explorer forDevelopment Version2.2.0.1 Click Continue atbottom of this screen
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation12IMS ES Explorer Software Download Answer the registrationquestions Select your preferredPrivacy level Select I agree Click Confirm at bottomof this screen
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation13IMS ES Explorer Software Download Recommended: SelectDownload Director Recommend: Download and usethe IBM Installation Manager Click The Installation repositoryfile for IMS Explorer …or… Click Select all Files to downloadboth the standalone and the“shell-sharing” versions of IMSExplorer Click Download now at bottom ofthis screen
  • Advanced Technical Skills (ATS) North America© 2010 IBM CorporationWith downloads running, review the following related documentationThe IBM Installation Manager V1.5.3 documentation and install instructions can befound in the IBM Support Portal: IBM Installation Manager DocThe IMS ES Explorer documentation can be found in the IBM Information ManagementInfoCenter: IMS Explorer for Development DocumentationThe IMS ES Explorer installation instructions can be found in the IBM IM InfoCenter:IMS Explorer Installation InstructionsThe latest IMS ES Explorer “README” containing a cumulative list of changes tocomponents, related installation information, and known issues and workarounds can befound at: IMS Explorer READMEKnown limitations Installing IMS Explorer Version 2.2.0.1Prerequisites information Verifying IMS Explorer installationObtaining IMS Explorer Version 2.2.0.1 List of updatesInstalling IBM Installation Manager Additional information14Software Documentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Installation Manager helps you install, update, modify, roll back,and uninstall software packages on your computer Install the Installation Manager for Windows V1.5.3– Use the version of software you downloaded previously or downloadnow from Installation Manager• agent.installer.win32.win32.x86.zip (110 MB) - installer package– Extract the compressed file to a directory– Install using the Installation Manager user interface• Open the directory where you extracted the compressed file• Double-click the install.exe file• Follow the installer wizard pages to install Installation Manager15IBM Installation Manager Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Use Installation Manager to search for software updates and fixes(BTW: You must have an internet connection)1. Start Installation Manager2. Verify that updates are enabled:Click File > Preferences > Updates and selectSearch for Installation Manager update3. Verify that service repositories are searched:Click File > Preferences > Repositories and selectSearch service repositories during installation and updates4. Click OK5. On the main page of the Installation Manager, click Update16IBM Installation Manager InstallInstallation Manager V1.6.2is the most current versionand can be installed with theupdate function
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation IMS Explorer combines a graphical front end with an integrateddevelopment environment built on the Eclipse platform, an opensoftware development environment that provides a standard GUI-based framework.– IMS Explorer can be integrated with other Eclipse-based plug-in tools—suchas IBM Rational® Developer for System z and IBM Data Studio—to supportthe entire IMS application development cycle.– Developers familiar with Eclipse-based tools can use their existing skills toimmediately start manipulating IMS data through IMS Explorer. Install IMS Enterprise Suite Explorer for Development V2.2.0.1– Use Installation Manager to install the standalone version of IMS Explorer• Add a repository and specify the location, including the zip file name, wherethe IMS Explorer repository file is located - IMSExplorer2201.zip (770 MB)• Click File -> Preferences -> Repository -> Add Repository -> Browse• Click OK to add the repository location to the list• Click OK to go back to the IBM Installation Manager main screen• Click Install17IMS Explorer Software Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation18IMS Explorer Software Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation19IMS Explorer Software Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation20IMS Explorer Software Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation21IMS Explorer Software Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation22IMS Explorer Software Install• Select the check boxes for IMS Enterprise Suite Explorer for Development and clickNext• Accept the terms in the license agreement, then click Next
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation23IMS Explorer Software Install• For installation location, select Create a new package group, and specify theIMS Explorer Installation Directory• Click Next
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation24IMS Explorer Software Install• Click Next to not extendan existing ECLIPSEinstance• For languages, Englishis already selected, clickNext• Select the check box forthe feature to beinstalled and click Next
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation25IMS Explorer Software Install• Click Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation26IMS Explorer Software Install• When the installation process completes, click Finish• Click File -> View Installed Packages
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Verify your installation of IMS Explorer– Click Start > All Programs > IMS Enterprise Suite Explorer forDevelopment > IMS Enterprise Suite Explorer for Development27Verify IMS Explorer Install- Select a name for your Explorerworkspace directory, click OK
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Review IMS Explorer Task Launcher topics– Overview– Getting Started Tasks– DBD and PSB Tasks– SQL and pureQuery Tasks28Verify IMS Explorer Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Click Help on the Explorer toolbar and select Welcome Review Welcome window topics– IMS Explorer Product and Project Overviews– Importing DLIModel Utility Plug-In Projects– IMS Enterprise Suite Web Resources– First Steps – Create an Explorer Project, Create/Edit PSBs & PCBs,Visualize IMS DBs and Edit field attributes in DBDs, Create/Run SQLqueries to access IMS DBs– Tutorials via YouTube– Sample DBDs• C:Program FilesIBMIMS Enterprise Suite Explorer for Development_2201IMS Explorer samples Review the Welcome panel information and close the window pane29Verify IMS Explorer Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation30Verify IMS Explorer Install
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Experiment with IMS Enterprise Suite Explorer for Development– Visualization of IMS Database Segment Hierarchy– Modification of DBDs and PSBs– Creation of Metadata– Connecting to IMS Control Region– SQL Access to IMS DBs– Accessing Metadata in the IMS Catalog To get started, open the IMS Explorer perspective by clicking– Window > Open Perspective > Other > IMS Explorer31IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Create an IMS Explorer Project in the IMS Explorer Perspective– From the main menu bar, click File > New > IMS Explorer Project– In the Project name field, type the name of your project• Ie. User_Group_Lab_2013– Click Next to proceed to the wizard to import IMS resources into the project– Select an Import Source – Local file system, z/OS system, or IMS catalog– Click Next32IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation– Import an IMS PSB resourceinto the IMS Explorer Project• Select Add PSB• Select DFSIVP1.txt• Click Open• PSB DFSIVP1 is imported• Referenced DBDs will beimported automatically, if theyare in the same directory asthe PSB source file33IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation–Click Finish–Resources are imported and Java Metadata Classes are generated in the Project(If the PSB file is valid, Explorer searches for any DBD files that are referenced by the PSB in thesame file directory or subfolder within the directory and selects them to be imported into the project. Ifthe imported PSB references any DBDs that are not in the same file directory or subfolder within thedirectory as the PSB file or that have not been added explicitly, the missing DBDs are listed in theDBDs to import for selected PSBs or DBDs table. Click Add DBD to add the missing DBD files.)34IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation New IMS Explorer Project :User_Group_Lab_2013 The new project isdisplayed in the ProjectExplorer view You can now create orimport the IMS resourcesthat you need to plan,analyze, and makechanges to your IMSdatabases35IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Import resources to an existing IMSExplorer Project– From the main menu bar, click File > Import >IMS > IMS Resources …or…– Right-click on an existing project in the ProjectExplorer view, then click Import > IMS > IMSResources– Click Next to proceed to the wizard to importIMS DBD and PSB resources into the project– Select the Project name– Select an Import Source – Local file system,z/OS system, IMS catalog– Click Next36IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation– Select Add DBD– Select AUTODB.dbd– Click Open37IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation– The DEALERDB DBD within theAUTODB.dbd file is imported– Referenced DBDs are not pulled inbecause they are not in the samedirectory, but the missing DBDs arelisted under DBDs to import– Click Finish– The DBD is imported and the JavaMetadata Classes are generated inthe Explorer Project– Import all remaining sample DBDsvia the Add DBD function• AUTOLDB.dbd• EMPDB2.dbd• EMPLDB2.dbd38IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation After the IMS resource import are finished– PSB and DBD source is imported and parsed– IMS Program definition model generated for PSBs in the “PSB” folder– IMS Database definition model generated for DBDs in the “DBD” folder– IMS Universal Driver metadata generated for PCB DatabaseView– Imported and Generated PSB and DBD Source is stored in the Package39IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation IMS Explorer Project & Package:User_Group_Lab_201340IMS Explorer Experimentation
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation From the Project Explorer or package Explorer panel -double click the DBD …or…right click the DBD name > Open With > IMS DBD Editor– Visualizes an IMS database structure and segment hierarchy– Visualizes the database structure of logical relationships and indexes• For a logical DBD, the view shows concatenated segments• A concatenated segment represents segments from two DBDs that areassociated through a logical relationship• A concatenated segment can be accessed by application programs as asegment in a physical DBD– Displays the properties / attributes for a DBD, database segment or a field in asegment– Use the visualization to plan and design database changes to support applicationrequirements41Visualization of IMS Databases
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation42Visualization of IMS Databases Right click the DBDname > Open With >IMS DBD Editoror Double click on theDBD name
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation43Visualization of IMS Databases Click on the graphical DBD name: IVPDB1, the segmentA1111111 or the various fields to see the “Properties” of each
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation44Visualization of IMS DatabasesDBD
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation45Visualization of IMS DatabasesSEGMENT
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation46Visualization of IMS DatabasesFIELDS
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation47Visualization of IMS Databases Logical Database modeler view– This mode shows the different data structures that are possible giventhe existing secondary indexes and logical relationships that aredefined for a given DBD– Logical relationships: segments labeled as logical child segments arepart of a logical relationship– Secondary indexes: segments labeled as targets of a secondaryindex are defined in the DBD as secondary index target segments
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation48Visualization of IMS Databases Logical database visualization shows concatenated segments
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation49Visualization of IMS Databases Logical relationship between physical database and logically related database– Graphically represented by an arrow from the bottom of the logical parent segment tothe top of the logical child segment.
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Add or Edit Fields in a DBD– From the Project Explorer, right click the DBD name > Open With >IMS DBD Editor– From the IMS DBD editor, right-click the segment name that contains thephysical DBD field(s) you want to add or edit and click Add or EditFields– The Add or Edit Fields for Segment xxxxxxxx wizard opens with theunmapped fields (fields that are not yet part of a map) displayed– Optional: In the Add or Edit Segment Maps wizard, select the SegmentMap and Map Cases that contains the field that you want to add or edit50Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation51Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation52Modification of DBDs and PSBs Add a new physical DBD field or edit or remove an existing field
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation53Modification of DBDs and PSBs Modify the <empty> field to assign a Name and an Alias– Double click the <empty> Name cell Click Next
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Click the IMS fieldradio button Modify the Fieldname, the Alias andthe IMS data type Click Next54Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation55Modification of DBDs and PSBs Modify the Data type,the Length and theConverter type The fill in theCharacter encodingfield Click Finish
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation56Modification of DBDs and PSBs Review fieldmodifications Click Finish
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation At the IMS DBD Editor pane, note the new “MYFLD” field in the MODEL segment57Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Save the changes to your DBD bypressing <Ctrl+S> Review the DBD source code changes– From the Package Explorer– Expand the DBD Source directory > expandthe Generated Source– Double click DEALERDB to review thegenerated DBD source code58Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Verify that the fieldat offset 34 nowhas a NAME ofMYFLD59Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Edit or Add PCBs in a PSB– You can modify properties in PSBs and associated PCB statements by using the PSBsummary page and the IMS PCB editor in IMS Explorer.– From the Project Explorer, open the DFSIVP1 PSB by double-clicking the DFSIVP1.psbprogram definition model60Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Edit the PSB and PCB statements that are associated with the DFSIVP1PSB– Specifying an alternate PCBAn alternate PCB statement describes an alternate message destination where amessage can be sent when the destination of a message differs from the placewhere it was entered. Use the alternate PCB statement section of the PSB summarypage to create or modify an alternate PCB statement.– Creating or modifying full-function or Fast Path database PCBsUse the full-function or Fast Path database PCB statement section of the PSBsummary page to create or modify a full-function or Fast Path database PCBstatement.– Creating or modifying GSAM database PCBsGeneralized sequential access method (GSAM) databases are sequentiallyorganized databases that are designed to be compatible with z/OS® data sets. Usethe GSAM database PCB statement section of the PSB summary page to create oralter a GSAM database PCB statement. The GSAM database PCB statementdefines a view that controls how application programs can access the GSAMdatabase.61Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Edit the PSB and PCB statements that are associated with the DFSIVP1PSB– Specifying PSB generation propertiesUse the PSB generation statement section of the PSB summary page to specify propertyvalues for the PSBGEN statement, which describes the characteristics of an applicationprogram.– Specifying segment sensitivityYou can use the IMS PCB editor to define which segments an application program issensitive to in the database program communication block (PCB) for the hierarchy thatcontains those segments. An IMS application program can access only data to which itis sensitive. Segment sensitivity can prevent an application program from accessing allthe segments in a particular hierarchy. The sensitivity tells IMS which segments in ahierarchy the program is allowed to access.– Specifying field sensitivityYou can use the IMS PCB editor to define which fields an application program issensitive to in the database program communication block (PCB) for the hierarchy thatcontains those fields. An IMS application program can access only data to which it issensitive. Field sensitivity can prevent an application program from accessing all thefields in a particular hierarchy. The sensitivity tells IMS which fields in a hierarchy theprogram is allowed to access.62Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Edit or Add PCBs in a PSB– After you have modified the PSB and/or PCB(s), save your modifications bypressing <Ctrl+S>• If there are unsaved changes, an asterisk (*) is displayed in the PSB tab– When changes are saved in the PSB summary page or the IMS PCB editor, IMSExplorer generates a Java metadata class (DLIDatabaseView) for the PSB and aPSB source file– The generated Java metadata class is located in the Project Explorer, under apackage named after the PSB name (you can use the Java metadata class toconnect to an IMS database from the Data Source Explorer in IMS Explorer, or todevelop Java applications for IMS)– The generated PSB source file is located in the Package Explorer, underPackage name > PSB Source > Generated Source– To connect to an IMS database using the IMS Explorer, you must generate aJava metadata class that provides the application view of the IMS databasespecified by a program specification block (PSB) and its related Program ControlBlocks (PCBs). A Java metadata class is also required to develop Javaapplications for IMS.63Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Review the PSB source code changes– From the Package Explorer– Expand the PSB Source > expand the Generated Source– Double click DFSIVP1 to review the generated PSB source code64Modification of DBDs and PSBs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Connect to an IMS DB System For SQL Access– The IMS Connect, CSL (SCI and OM components), and ODBM tasks must beinstalled, configured, and executing within the IMSplex– In the Data Source Explorer, right-click the Database Connections folder, andclick New65Connecting to an IMS DB Control Region
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Build the New Connection Parameters– Select IMS as the database manager– Select IMS V12 Universal JDBC Driver Default as the JDBC driver– Enter the following connection Properties• Connection name: IMS USER GROUP LAB• Data Store: IMSB• Host: zserveros.demos.ibm.com• Port number: 7013• User name: IMPOTxx (where xx = 60,or 61,62,63…72)• Password: IBM12POT– Scroll down and enter the Metadata source• Local IMS Explorer project– Project: User_Group_Lab_2013 (Project name you used)– PSB: DFSIVP166Connecting to an IMS DB Control Region
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation67Connecting to an IMS DB Control Region You need to usespecific connectionproperties based onthe IMS system youconnect to. You can select touse metadata from aLocal file system,Local IMS Explorerproject, or from theIMS Catalog (if acatalog is enabledand populated) Test Connection Click Finish
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Access to IMS DatabasesUsing SQL– In the Data Source Explorer,expand Database Connections >expand IMS LAB DB and all sub-levels– Right click the A1111111 table,then click Data, then click ReturnAll Rows or Sample Contents toretrieve sample data from theA1111111 segment in theIVPDB1 IMS DB68SQL Access to IMS Databases
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation69SQL Access to IMS Databases In the SQL Results tab, severalwindows of information arereturned from the call:– SQL call Status– Actual SQL call executed– Results Set
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation70SQL Access to IMS Databases Create a Data DevelopmentProject to create/run customSQL calls and scripts– Click File > New > Other >Data > Data DevelopmentProject– Click Next
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation71SQL Access to IMS Databases– Enter a Project name:– Click Next– Use existing connection orcreate new connection– Click Finish– Click Yes
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation72SQL Access to IMS Databases From the Data Project Explorer, expand the UserGroupLabScriptProject projectyou created–Create an SQL Script• Right click the SQL Scripts folder > New > SQL or XQuery Script• Enter a name for the Script (ie. INSERT)• Click Finish
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation73SQL Access to IMS Databases– In the opened INSERT.sql window, key in your INSERT SQL values:• INSERT INTO PCB01.A1111111 VALUES(‘1234567890’,’0987654321’,’0001112222’,’7777777’,’333’)– Replace ‘1234567890’ with last name and ‘0987654321’ with first name– Replace ‘0001112222’ with phone #, ‘7777777’ with zipcode, and ‘333’ with filler value– If needed, look at the DBD for the A1111111 segment layout
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation74SQL Access to IMS Databases Create an SQL statement using the SQL Query Builder– Right click the SQL Scripts folder > New > SQL or XQuery Script– Enter a name for the Script (ie. SELECT) and choose the statement type– Click Finish
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation75SQL Access to IMS Databases Right click in themiddle window to AddTable and then use thepop-up menu– Choose the tableyou want toSELECT data from(ie. PCB01A1111111)– Click OK
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation76SQL Access to IMS Databases Basic SQL call formatted Choose the fields in the tableyou want returned Right click in theSELECT.sql window > RunSQL Use <CRTL-S> to save yourscript
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation77SQL Access to IMS Databases SQL call results Experiment with SELECT, INSERT, UPDATE, DELETE– Please DELETE any data you add to the IVPDB1 database – Thank You! Take what you have learned back to your office and share with others– Open your IMS Explorer project and build a connection to your IMS test datastore– Access your IMS data using SQL calls– Enable and populate the IMS Catalog• Import IMS resources into Explorer from the Catalog• Use the database metadata stored in the Catalog for SQL calls from Explorer– With IMS Explorer, import COBOL copybook and/or PL/I include data structures into DBDs
  • Advanced Technical Skills (ATS) North America© 2010 IBM Corporation Accessing Metadata in the IMS Catalog– For you to do on your test system !!!!!78Accessing Metadata in the IMS Catalog