Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Modernizing the CA Datacom Data – SQL Access Part I

491 views

Published on

Modernizing the CA Datacom Data – SQL Access Part I
MFX95SA

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Modernizing the CA Datacom Data – SQL Access Part I

  1. 1. World® ’16 Modernizing the CA Datacom® Data – SQL Access Part I Kevin Shuma, VP Product Management CA Technologies MFX95SA MAINFRAME AND WORKLOAD AUTOMATION
  2. 2. 2 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD © 2016 CA. All rights reserved. All trademarks referenced herein belong to their respective companies. The content provided in this CA World 2016 presentation is intended for informational purposes only and does not form any type of warranty. The information provided by a CA partner and/or CA customer has not been reviewed for accuracy by CA. For Informational Purposes Only Terms of this Presentation
  3. 3. 3 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Abstract This is a two part session that provides an overview of steps necessary to take make CA Datacom® available for modern applications via SQL and server. For many shops their CA Datacom®/DB environment was created before the implementation of SQL. This session will walk through the steps necessary to make all the their data SQL accessible using CA Datacom® SQL. From there we add the ODBC and JDBC support provided by CA Datacom® server. Once completed you will have data that is fully accessible to modern applications development environments. Kevin Shuma CA Technologies VP, Product Management
  4. 4. 4 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Agenda WHY SHOULD WE IMPLEMENT SQL? IMPLEMENTING SQL ACCESS LEGACY DATA STRUCTURES SQL COLUMN REPORT SUMMARY 1 2 3 4 5
  5. 5. 5 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Why should we implement SQL? § SQL provides the basic access point for modern applications – ODBC/JDBC use SQL under the covers § Implementing SQL access on traditional data – Opens up critical business data to new applications and business functions – Does not interfere with existing traditional applications § Peaceful coexistence is much preferred to revolutionary change (rewrites) § Implementing SQL constraints on traditional data – Allows business rules to be enforced without requiring additional coding Modernization is the Key to Growth in Today’s World
  6. 6. 6 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD CA Datacom® SQL and CA Datacom® Server CA Datacom data and business logic Web and Application Servers Web and mobile apps Modernization With Coexistence Batch Traditional apps
  7. 7. 7 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL - AUTHIDs § AUTHIDs must be adding to the system before they can be used in table references § Default AUTHIDs provided with Datacom – SYSADM (system tables) – SYSUSR (default for user tables) § We recommend that the user define meaningful AUTHIDs for their environment – user_authid (18 character user specified name) Creating the System Level Schemas - AUTHIDs
  8. 8. 8 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL - AUTHIDs (Cont’d) Creating the System Level Schemas - AUTHIDs DBID AUTHID 0100 DB0100 0200 DB0200 1294 DB1294 • Using an AUTHID that ties to business function may make it easier to group the tables • All SQL table name must be unique with AUTHID • With multiple DBIDs per AUTHID be careful when assigning SQL table names AUTHID Business Function DBID Table PAYROLL Payroll 0100 All VENDOR Accounts payable 0200 VND, VNA, VN3 INVENTORY Sales and ordering 0300 0400 INV, ITM, DTL ORD, ODL, ITM • CA Datacom already requires 3 character table names to be unique within DBID • In this example we are using the DBID as part of the AUTHID as a simple default • Makes it relatively simple for existing users to remember the AUTHID
  9. 9. 9 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL - AUTHIDs (Cont’d) § AUTHIDs can be added to the system through various utilities – They only need to be defined once per environment (MUF) Creating the System Level Schemas - AUTHIDs Datadictionary batch Datadictionary online SQL statement
  10. 10. 10 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL – Database Model Adding SQL Names to the Database Model in PROD Status DD Entity Attribute Req. Values Default Status Comment Schema AUTHID No 18 Character No ADD CPY PROD Must be defined in PROD before using for tables Database SQL- Security No Y or N N UPD PROD Use default or set to N, Use external security SQL-NAME N/A 32 Character None UPD PROD Used for documentation only Area SQL-Name No 32 Character None UPD PROD Needed if adding new tables via DDL (CREATE TABLE … IN …)
  11. 11. 11 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL – Database Model (Cont’d) Adding SQL Names to the Database Model in PROD Status DD Entity Attribute Re q. Values Default Status Comment Table SQL-Intent Yes N, Y or R N UPD PROD Use Y for full SQL access Use R for SQL read access only AUTHID Yes Existing AUTHID None UPD PROD Must be already defined SQL-Name YES 32 Character None UPD PROD Must be defined to access table with SQL Key AUTHID N/A Assigned to table value auto UPD PROD Automatically assigned SQL-Name NO 32 Character None UPD PROD Must be defined to access index with SQL (ALTER or DROP)
  12. 12. 12 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Implementing SQL – Database Model (Cont’d) Adding SQL Names to the Database Model in PROD Status DD Entity Attribute Req. Values Default Status Comment Column AUTHID N/A Assigned to table value auto UPD PROD Automatically assigned SQL-Name NO 32 Character Generated UPD PROD Generated using existing column name Column AUTHID N/A Assigned to table value auto UPD PROD Automatically assigned SQL-Name NO 32 Character User specified UPD Test CPY PROD User wants specific SQL name User specified name for column requires extra steps
  13. 13. 13 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Sample DDUPDATE Job to Add SQL Attributes Update SQL attributes in PROD status Catalog PROD to CXX and DDD
  14. 14. 14 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Making the SQL Attributes “Live” § SQL attributes are set through Datadictionary processes – SQL attributes made usable during the CXX CATALOG § SQL definitions are stored in the DDD § Only “active/production” definitions are in DDD Update TABLE Copy to PROD DDUPDATE MUF DD 0002 Catalog DDUPDATE MUF DD 0002 CXX DDD 0015
  15. 15. 15 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Legacy Data Structures § Legacy data structures may have some “SQL” access limits – All tables are accessible, but the content access may be limited § SQL accessibility to legacy table definitions – Group fields are ignored by SQL § Only elementary fields are viewable – 2nd redefinition columns are not accessible § Only the first set of column definitions are viewable; anything after the REDEFINE is ignored – Elements of repeating groups are not distinguishable § Repeating group (array) is represented as a single character column May Have Been Built Using Older Data Structures (VSAM, COBOL Copybooks)
  16. 16. 16 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD SQL Column Report § Can be executed against any existing table – Regardless of SQL-INTENT setting – Can be used to preview SQL accessibility Quick Way to Determine How SQL Accessible Legacy Table Definitions Are
  17. 17. 17 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD SQL Column Report (Cont’d) Quick Way to Determine How SQL Accessible Legacy Table Definitions Are
  18. 18. 18 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD SQL Column Report (Cont’d) SQL ACCESS STD. - Shows Current SQL Accessibility STD – indicates if column is accessible by standard SQL NO - will include reason data is not accessible • CMP – column is a compound (group) field • RPT – Column is a repeating field • RDF – Colum is a redefinition (2nd definition)
  19. 19. 19 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Experiences SQL Column report provides a detailed report showing SQL column accessibility for any table. Key Topics Adding SQL accessibility to existing tables will allow new modern applications to be created that peacefully coexist with existing legacy applications. Findings It is a simple process to make an existing table SQL accessible. Summary Part I
  20. 20. 20 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Recommended Sessions SESSION # TITLE DATE/TIME MFX92S Strategy and Vision for CA Datacom and CA Ideal™ 11/16/2016 at 12:45 pm MFX93S What’s new in CA Datacom 11/16/2016 at 1:45 pm MFX94S Reducing TCO with Datacom Compression (Presspack) 11/16/2016 at 3:00 pm MFX95SA Modernizing the CA Datacom data – SQL Access Part I 11/16/2016 at 3:45 pm MFX95SB Modernizing the CA Datacom data – SQL Access Part II 11/16/2016 at 4:30 pm MFX96S CA Datacom/AD Installation/Upgrade and Maintenance 11/17/2016 at 12:45 pm MFX97S CA Datacom/AD Report Utilization, and information gather for Support 11/17/2016 at 1:45 pm MFX98S Using CA SYSVIEW® to monitor and measure your CA Datacom environment – AD and DB 11/17/2016 at 3:00 pm MFX99S Birds of a Feather/Stump the Techie! 11/17/2016 at 3:45 pm
  21. 21. 21 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Questions?
  22. 22. 22 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Stay connected at communities.ca.com Thank you.
  23. 23. @CAWORLD #CAWORLD © 2016 CA. All RIGHTS RESERVED.23 @CAWORLD #CAWORLD Mainframe and Workload Automation For more information on Mainframe and Workload Automation, please visit: http://cainc.to/9GQ2JI

×