SlideShare a Scribd company logo
Build a DB2 for z/OS
Mobile Application
Jane Man, IBM
Session Code: AP7
Thursday, Sept 17 11:15am – 12:15pm
Platform: DB2 for z/OS
Please note
IBM’s statements regarding its plans, directions, and intent are subject to change or
withdrawal without notice at IBM’s sole discretion.
Information regarding potential future products is intended to outline our general product
direction and it should not be relied on in making a purchasing decision.
The information mentioned regarding potential future products is not a commitment,
promise, or legal obligation to deliver any material, code or functionality. Information
about potential future products may not be incorporated into any contract. The
development, release, and timing of any future features or functionality described for
our products remains at our sole discretion.
Performance is based on measurements and projections using standard IBM
benchmarks in a controlled environment. The actual throughput or performance that
any user will experience will vary depending upon many factors, including
considerations such as the amount of multiprogramming in the user’s job stream, the
I/O configuration, the storage configuration, and the workload processed. Therefore, no
assurance can be given that an individual user will achieve results similar to those
stated here.
Agenda
• Mobile Architecture
• System z – the best platform for mobile apps and data
• IBM MobileFirst
• 2 working use cases
• Calling a SQL statement
• Calling a stored procedure
• Summary
3
System z information management End-to-End
Architecture for Mobile and Cloud Application
invoking z Services using APIs
Previously known as :
IBM Worklight
Agenda
• Mobile Architecture
• System z – the best platform for mobile apps and data
• IBM MobileFirst
• 2 working use cases
• Calling a SQL statement
• Calling a stored procedure
• Summary
5
6
From the complexity of many…
 Multiple sets of tools & frameworks
 Four codebases to develop and maintain
To the simplicity of one
 One development environment
 One codebase to develop and
maintain
IBM
Worklight
AndroidApple
Windows
Phone
AndroidApple
Blackberry
Blackberry
IBM MobileFirst Platform – Integrated development and
continuous delivery of mobile applications
IBM MobileFirst 7 Studio
• Native applications for
• iOS
• Android
• Windows Phone 8
• Windows 8
• Hybrid development
• Server-side development(adapters)
• SQL Adapter
• HTTP adapters
• Java adapters
• ……
• Mobile Console Browser
• …much more 7
MobileFirst Server
Adapter 1
Adapter 2
….
Enterprise
(back end)
Database
Web services
….
IBM MobileFirst Development Environment
MobileFirst Platform Studio -
Eclipse plugin
8
Command line interface
(alternative to Studio)
MobileFirst Plaform Developer Studio – Installation
• JRE 7 (Note: Oracle JRE 7 is required for developing Android
native app)
• Install Eclipse IDE for Java EE Developers installed: Juno SR2
(4.2.2), Kepler SR1 (4.3.1), Kepler SR2 (4.3.2), Luna SR1
(4.4.1), or Luna SR2 (4.4.2) Third Topic
• Start Eclipse, and then select Help > Eclipse Marketplace.
• In the Find field, type “MobileFirst Platform” and click Go.
• In the Find field, type “MobileFirst Platform” and click Go.
• Optional : IBM Dojo Mobile Tools and IBM jQuery Mobile Tools
• JCC driver (DB2 connect)
• (Optional) Android development : Android SDK, ADT Eclipse
plug-in, creating Android Virtual Device
(https://developer.ibm.com/mobilefirstplatform/install/#studio)
9
Agenda
• Mobile Architecture
• System z – the best platform for mobile apps and data
• IBM MobileFirst
• 2 working use cases
• Calling a SQL statement
• Calling a stored procedure
• Summary
10
Use Case 1: SQL statement
Find string from string id in SYSIBM.SYSXMLSTRINGS
table
11
SELECT STRINGID, SUBSTR(STRING,1,60), IBMREQD
FROM SYSIBM.SYSXMLSTRINGS;
Client development using studio
• Create a new MobileFirst Project:
File>New>MobileFirst Project,
select “Hybrid Application”
12
index.html
main.js
Sever side Pre-req for SQL adapter
Add DB2 info to server.xml
13
sever.xml
Server Side development – Creating a SQL Adapter
• File>New>MobileFirst Adapter
14
Hello2DB2Adapter.xml
Creating a SQL Adapter – cont’d
Hello2DB2Adapter-impl.js
• deploy a adapter:
Right-Click the adapter>Run As>Deploy MobileFirst Adapter
• Test a adapter
Right-Click the adapter>Run As>Call MobileFirst Adapter
Test a SQL Adapter
Right-Click the adapter>Run
As>Call MobileFirst Adapter
Result:
What is this?
How to use the adapter result?
main.js
Build all Environments
• Right click <apps>Run As>Build All Environments
• Select iPhone, iPad, Android phones and tablets
18
MobileFirst Console
• Right Click <project> > Open MobileFirst Console
19
MobileFirst Console (cont’d)
20
Run on Android Native Emulator
• (require Android SDK, ADT Eclipse
plug-in, creating Android Virtual
Device)
• Right Click
<project><apps>Android>Run
As>Android Application
21
Use Case 2:
Calling a Stored Procedure
22
RUNSTATS
RUNSTATS – SQL adapter
23
RunstatsSQLAdapter.xml
RunstatsSQLAdapter-impl.js
Call external REST API – Yahoo Weather API
(i.e. SQL Adapter is NOT needed)
24
Main.js
Call external REST API – Yahoo Weather API – cont’d
25
Pitfalls – Oops!
26
Java 8
SELECT
SYSTOOLS.BSON2JSON(DATA)
from JSONPO WHERE ID= 101
SELECT XMLPO from
XMLT1 WHERE ID= 1
SELECT XMLCAST(
XMLQuery('/PO/items/item[1]/productName'
passing XMLPO) as VARCHAR(25))
from XMLT1 WHERE ID= 1
SELECT JSON_VAL(DATA,
'PO.items.item.0.productName', 's:20')
from JSONPO WHERE ID= 101
Agenda
• Mobile Architecture
• System z – the best platform for mobile apps and data
• IBM MobileFirst
• 2 working use cases
• Calling a SQL statement
• Calling a stored procedure
• Summary
27
28
28
Summary
 DB2 for z/OS is the perfect
environment for developing a
mobile transaction and
analytics integrated solutions
 IBM MobileFirst provides an
integrated framework to
develop and test of DB2 for
z/OS mobile applications.
Build a DB2 for z/OS Mobile Application
Build a DB2 for z/OS Mobile Application
Jane Man
IBM
janeman@us.ibm.com
Build a DB2 for z/OS Mobile Application
AP7
Please fill out your session
evaluation before leaving!

More Related Content

PDF
InterConnect 2017 : z/OS-as-a-Service: The Disposable LPAR
PDF
Drinking our own champagne - z Systems Development and Test Environment V10
PDF
InterConnect 2017 : Git for COBOL and PL/I?—Yes, It Can Make Sense
PDF
InterConnect 2017 : Mastering the z Systems Development and Test Environment ...
PPTX
Rational Development & Test for z Systems 9.5 Webinar with Rogers Communications
PDF
File Manager for z/OS - Overview
PDF
Rational developer for z systems : DevOps benefits here and now
PDF
IBM Z for the Digital Enterprise 2018 - API Discovery & Debugging
InterConnect 2017 : z/OS-as-a-Service: The Disposable LPAR
Drinking our own champagne - z Systems Development and Test Environment V10
InterConnect 2017 : Git for COBOL and PL/I?—Yes, It Can Make Sense
InterConnect 2017 : Mastering the z Systems Development and Test Environment ...
Rational Development & Test for z Systems 9.5 Webinar with Rogers Communications
File Manager for z/OS - Overview
Rational developer for z systems : DevOps benefits here and now
IBM Z for the Digital Enterprise 2018 - API Discovery & Debugging

What's hot (20)

PDF
Flexible DevOps Deployment of Enterprise Test Environments in the Cloud
PDF
Automatic Performance Improvement for Legacy COBOL
PDF
Elevating Application Performance with the latest IBM COBOL offerings
PDF
Aligning the Fast & the Slow: The Reality of Multi-Speed IT
PPT
Innovate 2014: Get an A+ on Testing Your Enterprise Applications with Rationa...
PDF
IBM Z for the Digital Enterprise 2018 - Leverage best language for Transforma...
PDF
RDZ for Cobol Programmers slides 7 14 Debugger deep dive final2
PDF
IBM Z for the Digital Enterprise 2018 - Automate Delivery Pipeline
PDF
InterConnect 2017 : Programming languages in the enterprise: Which language s...
PDF
IBM Z for the Digital Enterprise 2018 - IBM ADDI as an Enabler for Digital Tr...
PDF
Fault Analyzer for z/OS Overview
PDF
JavaOne 2017 - Mark Stoodley - Open Sourcing IBM J9 JVM
PDF
Converting to the latest COBOL Compiler made simple with the right tools
PDF
VMIL keynote : Lessons from a production JVM runtime developer
PDF
IOD 2012_ADP_092912
PDF
Introduction to IBM UrbanCode Deploy and Release
PDF
Service Testing & Virtualization in an Enterprise Environments
PDF
Securing the Automation of Application Deployment with UrbanCode Deploy
PDF
Adopting DevOps in a Hybrid Cloud Featuring UrbanCode Deploy with Bluemix
PDF
Avoiding the Release Weekend
Flexible DevOps Deployment of Enterprise Test Environments in the Cloud
Automatic Performance Improvement for Legacy COBOL
Elevating Application Performance with the latest IBM COBOL offerings
Aligning the Fast & the Slow: The Reality of Multi-Speed IT
Innovate 2014: Get an A+ on Testing Your Enterprise Applications with Rationa...
IBM Z for the Digital Enterprise 2018 - Leverage best language for Transforma...
RDZ for Cobol Programmers slides 7 14 Debugger deep dive final2
IBM Z for the Digital Enterprise 2018 - Automate Delivery Pipeline
InterConnect 2017 : Programming languages in the enterprise: Which language s...
IBM Z for the Digital Enterprise 2018 - IBM ADDI as an Enabler for Digital Tr...
Fault Analyzer for z/OS Overview
JavaOne 2017 - Mark Stoodley - Open Sourcing IBM J9 JVM
Converting to the latest COBOL Compiler made simple with the right tools
VMIL keynote : Lessons from a production JVM runtime developer
IOD 2012_ADP_092912
Introduction to IBM UrbanCode Deploy and Release
Service Testing & Virtualization in an Enterprise Environments
Securing the Automation of Application Deployment with UrbanCode Deploy
Adopting DevOps in a Hybrid Cloud Featuring UrbanCode Deploy with Bluemix
Avoiding the Release Weekend
Ad

Viewers also liked (18)

PDF
KDI School Transcript
PPT
musikaa...
PPT
PPTX
Institution
DOC
Baani 80
PDF
Objetivos del Milenio en ESPOL
DOCX
PDF
dnb_vol21_no3_302 (1)
PDF
I CICORRE: CLASSIFICAÇÃO
PPTX
Presentacion como iniciar un negocio exitoso
DOCX
Question 1 of Thriller Evaluation
PPTX
Google google drive_google4appeducation
PPTX
Flower Theory in sustainability
PPTX
SOCIALISMO MILITAR Y LA CONSTITUCION DE LOS PARTIDOS
PPTX
Presentación control y robótica
PDF
Affordable Care Act: What Does It Mean For Large Employers
PDF
Via 09 2013 miriam meckel
KDI School Transcript
musikaa...
Institution
Baani 80
Objetivos del Milenio en ESPOL
dnb_vol21_no3_302 (1)
I CICORRE: CLASSIFICAÇÃO
Presentacion como iniciar un negocio exitoso
Question 1 of Thriller Evaluation
Google google drive_google4appeducation
Flower Theory in sustainability
SOCIALISMO MILITAR Y LA CONSTITUCION DE LOS PARTIDOS
Presentación control y robótica
Affordable Care Act: What Does It Mean For Large Employers
Via 09 2013 miriam meckel
Ad

Similar to Build a DB2 for z/OS Mobile Application (20)

PPT
z Technical Summit Track 3 Session 4 Developing mobilefirst app for z
PDF
Mobilefirst - Build Enterprise Class Apps for Mobile First
PDF
[Whitepaper] an overview of ibm mobile first platform
PDF
Mobile to Mainframe - En-to-end transformation
PDF
Presentation build and connect apps, devices and data ibm worklight overview
PDF
June 25 webcast adding mobile to power applications
PDF
IBM MobileFirst Platform v7 Tech Overview
PDF
Impact 2014 The Mobile Enterprise
PDF
IBM MobileFirst Platform v7.0 pot intro v0.1
PDF
IBM MobileFirst Platform v7.0 Pot Intro v0.1
PDF
Soa architect summit mobile 2013_mar [compatibility mode]
PPT
IBM MobileFirst Technical Overview
PDF
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
PDF
Ibm empresa movil
PDF
IBM Mobile First
PPTX
Connecting Xamarin Apps with IBM Worklight in Bluemix
 
PPT
2109 mobile cloud integrating your mobile workloads with the enterprise
PPT
Mobile OS Platform
PDF
IBM Worklight
PDF
ZSS03120USEN.PDF
z Technical Summit Track 3 Session 4 Developing mobilefirst app for z
Mobilefirst - Build Enterprise Class Apps for Mobile First
[Whitepaper] an overview of ibm mobile first platform
Mobile to Mainframe - En-to-end transformation
Presentation build and connect apps, devices and data ibm worklight overview
June 25 webcast adding mobile to power applications
IBM MobileFirst Platform v7 Tech Overview
Impact 2014 The Mobile Enterprise
IBM MobileFirst Platform v7.0 pot intro v0.1
IBM MobileFirst Platform v7.0 Pot Intro v0.1
Soa architect summit mobile 2013_mar [compatibility mode]
IBM MobileFirst Technical Overview
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Ibm empresa movil
IBM Mobile First
Connecting Xamarin Apps with IBM Worklight in Bluemix
 
2109 mobile cloud integrating your mobile workloads with the enterprise
Mobile OS Platform
IBM Worklight
ZSS03120USEN.PDF

Recently uploaded (20)

PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PDF
Introduction to Business Data Analytics.
PPTX
1_Introduction to advance data techniques.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
Lecture1 pattern recognition............
PDF
Mega Projects Data Mega Projects Data
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Launch Your Data Science Career in Kochi – 2025
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Introduction to Business Data Analytics.
1_Introduction to advance data techniques.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Quality review (1)_presentation of this 21
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Lecture1 pattern recognition............
Mega Projects Data Mega Projects Data
Introduction to Knowledge Engineering Part 1
Business Acumen Training GuidePresentation.pptx
Foundation of Data Science unit number two notes
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Reliability_Chapter_ presentation 1221.5784
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Launch Your Data Science Career in Kochi – 2025

Build a DB2 for z/OS Mobile Application

  • 1. Build a DB2 for z/OS Mobile Application Jane Man, IBM Session Code: AP7 Thursday, Sept 17 11:15am – 12:15pm Platform: DB2 for z/OS
  • 2. Please note IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion. Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.
  • 3. Agenda • Mobile Architecture • System z – the best platform for mobile apps and data • IBM MobileFirst • 2 working use cases • Calling a SQL statement • Calling a stored procedure • Summary 3
  • 4. System z information management End-to-End Architecture for Mobile and Cloud Application invoking z Services using APIs Previously known as : IBM Worklight
  • 5. Agenda • Mobile Architecture • System z – the best platform for mobile apps and data • IBM MobileFirst • 2 working use cases • Calling a SQL statement • Calling a stored procedure • Summary 5
  • 6. 6 From the complexity of many…  Multiple sets of tools & frameworks  Four codebases to develop and maintain To the simplicity of one  One development environment  One codebase to develop and maintain IBM Worklight AndroidApple Windows Phone AndroidApple Blackberry Blackberry IBM MobileFirst Platform – Integrated development and continuous delivery of mobile applications
  • 7. IBM MobileFirst 7 Studio • Native applications for • iOS • Android • Windows Phone 8 • Windows 8 • Hybrid development • Server-side development(adapters) • SQL Adapter • HTTP adapters • Java adapters • …… • Mobile Console Browser • …much more 7 MobileFirst Server Adapter 1 Adapter 2 …. Enterprise (back end) Database Web services ….
  • 8. IBM MobileFirst Development Environment MobileFirst Platform Studio - Eclipse plugin 8 Command line interface (alternative to Studio)
  • 9. MobileFirst Plaform Developer Studio – Installation • JRE 7 (Note: Oracle JRE 7 is required for developing Android native app) • Install Eclipse IDE for Java EE Developers installed: Juno SR2 (4.2.2), Kepler SR1 (4.3.1), Kepler SR2 (4.3.2), Luna SR1 (4.4.1), or Luna SR2 (4.4.2) Third Topic • Start Eclipse, and then select Help > Eclipse Marketplace. • In the Find field, type “MobileFirst Platform” and click Go. • In the Find field, type “MobileFirst Platform” and click Go. • Optional : IBM Dojo Mobile Tools and IBM jQuery Mobile Tools • JCC driver (DB2 connect) • (Optional) Android development : Android SDK, ADT Eclipse plug-in, creating Android Virtual Device (https://developer.ibm.com/mobilefirstplatform/install/#studio) 9
  • 10. Agenda • Mobile Architecture • System z – the best platform for mobile apps and data • IBM MobileFirst • 2 working use cases • Calling a SQL statement • Calling a stored procedure • Summary 10
  • 11. Use Case 1: SQL statement Find string from string id in SYSIBM.SYSXMLSTRINGS table 11 SELECT STRINGID, SUBSTR(STRING,1,60), IBMREQD FROM SYSIBM.SYSXMLSTRINGS;
  • 12. Client development using studio • Create a new MobileFirst Project: File>New>MobileFirst Project, select “Hybrid Application” 12 index.html main.js
  • 13. Sever side Pre-req for SQL adapter Add DB2 info to server.xml 13 sever.xml
  • 14. Server Side development – Creating a SQL Adapter • File>New>MobileFirst Adapter 14 Hello2DB2Adapter.xml
  • 15. Creating a SQL Adapter – cont’d Hello2DB2Adapter-impl.js • deploy a adapter: Right-Click the adapter>Run As>Deploy MobileFirst Adapter • Test a adapter Right-Click the adapter>Run As>Call MobileFirst Adapter
  • 16. Test a SQL Adapter Right-Click the adapter>Run As>Call MobileFirst Adapter Result: What is this?
  • 17. How to use the adapter result? main.js
  • 18. Build all Environments • Right click <apps>Run As>Build All Environments • Select iPhone, iPad, Android phones and tablets 18
  • 19. MobileFirst Console • Right Click <project> > Open MobileFirst Console 19
  • 21. Run on Android Native Emulator • (require Android SDK, ADT Eclipse plug-in, creating Android Virtual Device) • Right Click <project><apps>Android>Run As>Android Application 21
  • 22. Use Case 2: Calling a Stored Procedure 22 RUNSTATS
  • 23. RUNSTATS – SQL adapter 23 RunstatsSQLAdapter.xml RunstatsSQLAdapter-impl.js
  • 24. Call external REST API – Yahoo Weather API (i.e. SQL Adapter is NOT needed) 24 Main.js
  • 25. Call external REST API – Yahoo Weather API – cont’d 25
  • 26. Pitfalls – Oops! 26 Java 8 SELECT SYSTOOLS.BSON2JSON(DATA) from JSONPO WHERE ID= 101 SELECT XMLPO from XMLT1 WHERE ID= 1 SELECT XMLCAST( XMLQuery('/PO/items/item[1]/productName' passing XMLPO) as VARCHAR(25)) from XMLT1 WHERE ID= 1 SELECT JSON_VAL(DATA, 'PO.items.item.0.productName', 's:20') from JSONPO WHERE ID= 101
  • 27. Agenda • Mobile Architecture • System z – the best platform for mobile apps and data • IBM MobileFirst • 2 working use cases • Calling a SQL statement • Calling a stored procedure • Summary 27
  • 28. 28 28 Summary  DB2 for z/OS is the perfect environment for developing a mobile transaction and analytics integrated solutions  IBM MobileFirst provides an integrated framework to develop and test of DB2 for z/OS mobile applications.
  • 31. Jane Man IBM janeman@us.ibm.com Build a DB2 for z/OS Mobile Application AP7 Please fill out your session evaluation before leaving!