Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 41

Easy COBOL Programming

for OS 2200
Wednesday Nov. 11, 2009
1:30 pm
OS 3034

Waldyn Benbenek
Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 2


A Look at Eclipse IDE for OS 2200-
What is an IDE

• My definition:
– An Integrated Development Environment is a single application
that includes many of the tools necessary to develop an
application, and which automates many of the common tasks in
that development.
• Generally includes
– Code Editors
– Builders
– Debuggers
• Often includes
– Deployment assistants
– Administration tools
– Configuration tools

© 2009 Unisys Corporation. All rights reserved. Page 3


A Look at Eclipse IDE for OS 2200-
History of Eclipse

• Eclipse is the foundation of the WebSphere IDE


(now called Rational Application Developer)
• IBM donated Eclipse to the Open Source community
• The Eclipse foundation was established to govern its
distribution
• IBM remains heavily invested

© 2009 Unisys Corporation. All rights reserved. Page 4


A Look at Eclipse IDE for OS 2200-
Eclipse Structure

© 2009 Unisys Corporation. All rights reserved. Page 5


A Look at Eclipse IDE for OS 2200-
Our Philosophy of Development

• OS 2200 Development is based on the work file.


– The connection to the 2200 is configured.
– A 2200 project is associated with a program file on a 2200
– The project’s editable files stay on the 2200.
• Editing is done in Eclipse IDE to the 2200 files.
– CIFS provides connection to the 2200.
– Editing is done in Eclipse IDE the 2200 elements are
changed. No copy is kept on the workbench.
• Builds are user written
• Builds are carried out by a Telnet session.

© 2009 Unisys Corporation. All rights reserved. Page 6


A Look at Eclipse IDE for OS 2200-
Our Philosophy of Development - 2
Setup Build
Get Code Enviroment
to fix (Work Unit,
"Project") Development Administrator

Developer Chores

maintain Access
information

Prepare
Prepare code
processing
for Integration
requirements
(build
Customization Explore Edit Code procedures)
existing
code

build and
Test / Debug fix build
errors Prepare Test
fix errors
/Debug
Enviroment

Developer Tools
code
browsers editors
Code
Generators

© 2009 Unisys Corporation. All rights reserved. Page 7


A Look at Eclipse IDE for OS 2200-
What you get
UNISYS offering for 12.1
Galileo (Eclipse 3.5) JEE Release
A full featured IDE for building enterprise n-tiered Java applications for J2EE platforms. The
IDE is comprised of Eclipse and a set of recommended and tested Eclipse plug-ins. Unisys
extends the IDE with the Unisys Telnet Plug-in, an Eclipse & Plug-in Install Guide, and a
tested Application Development Guide; providing everything needed to build and deploy
Java applications to J2EE systems, including the OS2200.

Unisys Composite Application (CA) Plug-in


The Eclipse Composite Application (CA) Plug-in simplifies the creation of Java composite
applications that use OS2200 COBOL, C , and Fortran programs. This collection of plug-ins
extends Eclipse with an OS2200 project framework and language editors, and allows users to
create, modify, build , debug, and integrate OS2200 3GL programs with new or existing Java
application programs.

Unisys Java Application Integrator (JAI) Plug-in


The Java Application Integrator (JAI) is a collection of Eclipse plug-ins tailored to developers
who uses Java connection classes to integrate Java applications with OS2200 databases
(DMS, RDMS, BIS), transactions (TIP/HVTIP), and programs. It simplifies the process of
creating, configuring, using and deploying the resource connectors for integrating Java
applications with OS2200 resources

© 2009 Unisys Corporation. All rights reserved. Page 8


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 9


Setting up Eclipse IDE for OS 2200-
High level overview

• Latest version available at the Unisys FTP support site:


– ftp://ftp.support.unisys.com/pub/2200/ide/
• Go to the folder of your choice (probably the latest level)
– Download one called “all-in-one”.
– Extract this file to a folder.
• For debugging you will also need the file
Eclipse2200padslib.zip
– Have a drive mapped to os2200 share on host
– Unzip it. It expands to the folder “eclipse2200”
– Copy this folder to the mapped drive

© 2009 Unisys Corporation. All rights reserved. Page 10


The Demo Part

• Create a COBOL data access program


• Write and test the SQL
• Use amazing and powerful tools for COBOL
• Build the project the push of a button
• Debug the output
• Explore the data base from Eclipse IDE for OS 2200
• Add the DB code rapidly to the program.

© 2009 Unisys Corporation. All rights reserved. Page 11


The Demo Part-
The Telnet Client

• Bring up Eclipse
• Open a Telnet Session
• Look at CIFS (show the shares)

© 2009 Unisys Corporation. All rights reserved. Page 12


The Demo Part-
The Telnet Client

© 2009 Unisys Corporation. All rights reserved. Page 13


The Demo Part-
Connections to the OS 2200
PC Under the Hood
Connections Between the Eclipse Project and the 2200

OS 2200Eclipse Project
Cobol File A

Cobol File B
Members of the project
Project Build are actually
links to elements in the
2200 project file.

TELNET
OS 2200
CIFS/SMB Program File
Debug Comm Protoco

Element A
Debug
Xqtable

Element B 2200 Command


Line

© 2009 Unisys Corporation. All rights reserved. Page 14


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 15


The OS 2200 Project-
Creation and Update

• The OS 2200 Project Wizard


– Page 1: Shares and Workfile
– Page 2: Build Script and Brkpt files
– Page 3: Picking project elements

© 2009 Unisys Corporation. All rights reserved. Page 16


The OS 2200 Project-
Creation and Update

© 2009 Unisys Corporation. All rights reserved. Page 17


The OS 2200 Project-
Creation and Update

© 2009 Unisys Corporation. All rights reserved. Page 18


The OS 2200 Project-
The Editors

• C editor
• Fortran Editor
• Plus Editor
• Java Editor
• Text Editor
• COBOL Editor

© 2009 Unisys Corporation. All rights reserved. Page 19


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 20


COBOL-Editor

• Keyword Colors
• Auto-completion
– Templates for:
• Divisions
• Procedures
• Functions
• Entire operations

• Column sensitivity without restrictions

© 2009 Unisys Corporation. All rights reserved. Page 21


COBOL-Editor

© 2009 Unisys Corporation. All rights reserved. Page 22


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 23


The OS 2200 Project-
The Build

• Simple stream to complex SSG


• User determined
• Compiler errors are harvested and presented in the
Problem view, in the project, and in the editor.
• An End line summary view shows the build line that start
“END”

© 2009 Unisys Corporation. All rights reserved. Page 24


The OS 2200 Project-
The Build

© 2009 Unisys Corporation. All rights reserved. Page 25


OS 2200 Project –
The Build Compiler Errors Display

© 2009 Unisys Corporation. All rights reserved. Page 26


OS 2200 Project –
The Build End Summary View

© 2009 Unisys Corporation. All rights reserved. Page 27


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 28


UCS Debugging-
Setup

• Make sure you compile with debug options


• Debug setup page
• Special link

© 2009 Unisys Corporation. All rights reserved. Page 29


UCS Debugging-
Setup

© 2009 Unisys Corporation. All rights reserved. Page 30


Debugging –
Procedure

• Standard debugging
– Step over
– Step into
– Step out
– Set breakpoints
– Resume
• Display variables
• Change variables

© 2009 Unisys Corporation. All rights reserved. Page 31


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 32


Data Explorer-
Basics from Connection

• Connect
• Expand connection
• Do sample data
• SQL editor
– Add table
– Add select items
– Add conditions

© 2009 Unisys Corporation. All rights reserved. Page 33


Data Explorer-
Sample Contents of an RDMS Table

© 2009 Unisys Corporation. All rights reserved. Page 34


Data Explorer-
Using the SQL Editor

© 2009 Unisys Corporation. All rights reserved. Page 35


Exotic Programming.-
More Ways to improve Productivity

• Specialty Templates
– RDMS query
– RDMS Data
• Paste in the query
– Format for COBOL
– Do some editing
• Add the data names
– Split the screen
– Add the” into” clause
• Build and run

© 2009 Unisys Corporation. All rights reserved. Page 36


Using Templates-
Imported Templates for Specialties

© 2009 Unisys Corporation. All rights reserved. Page 37


The Split Screen

© 2009 Unisys Corporation. All rights reserved. Page 38


Easy COBOL Programming for OS 2200

• A look at Eclipse-2200
• Setting up Eclipse (an overview)
• The OS 2200 project
• The COBOL editor
• Building and fixing
• Debugging the UCS program
• RDMS data access from Eclipse
• Summary and messages

© 2009 Unisys Corporation. All rights reserved. Page 39


Conclusions –
The Blessed End is Near

• Even in the hands of a rank amateur, Eclipse IDE for OS


2200 can make COBOL programming for the OS 2200
productive.
• Eclipse can be customized for your shop.
• We continue to add productivity enhancements to Eclipse
and the Editor

© 2009 Unisys Corporation. All rights reserved. Page 40


Questions

• Questions?

© 2009Unisys Corporation. All rights reserved. Page 41

You might also like