Micro Focus Net Express IDE. Doug Evans GDT 2007 International User Conference: Evolving the Legacy...

Post on 18-Jan-2016

216 views 0 download

Tags:

Transcript of Micro Focus Net Express IDE. Doug Evans GDT 2007 International User Conference: Evolving the Legacy...

Micro Focus Net Express IDE

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Net Express 4.0 IDE

Create / Incorporate Custom tools in the IDE Using the Type Library Assistant Browse and Go

Browse Quick Browse

Remote Debugging Using Revolve Point of Interest files with Net Express

IDE User Defined Extensions – if you are using your own

extensions for Source, Copybooks, or Datafiles Setup a GDT COBOL project and practice these

functions and much more at the Hands on Lab at 3:15pm today!

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create Custom Tools

Demonstration Incorporate a tool to the Net Express 4.0 IDE that

will be used to add a line number to a program and also add a comment in column 73-80.

Components RESEQNID.CBL – source of the Tool to be used within the

IDE COBOLPGM.CBL – Cobol Skeleton program BUILDTOOL.BAT – Batch script to create an exe for the

tool TOOL.APP – Net Express Project

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create an .exe for ReseqnID.cbl

We will first open up the Net Express Command Prompt

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create an .exe for ReseqnID.cbl

Location of the .bat script and COBOL programs

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create an .exe for ReseqnID.cbl

Inside the script that builds the .exe

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create an .exe for ReseqnID.cbl

The Build script is run

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Open the TOOL project

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

From the Options menu select Customize IDE

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

Under the Tools tab we will press the New Tool button

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

Enter the Tool name

Use the Program button to locate the ReseqnID.exe

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

Press Apply to add the tool to the IDE

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Customize the IDE

The tool ReseqnID is now available.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Look at the original program

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run the ReseqnID tool

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Using the Type Library Assistant

The question: Can anyone point me to a good source for information about the methods that excel supports? I need to build a COBOL program that builds an excel spreadsheet, loads it to an excel chart and populates a word document with the excel chart

Basically we need to use Net Express to create a COBOL application that creates a chart in Excel and copies and pastes the chart into Word using OLE Automation.

If you want to see how to code the methods in COBOL then from the Net Express IDE select Tools->Type Library Assistant and scroll through the list of available COM servers until you find "Microsoft Excel ?.0 Object Library".

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Type Library Assistant

Basic Definitions: COM (Communication Object Module) – is the umbrella term

that encompasses the OLE, OLE Automation, Activex as well as other technologies.

OLE (Object Linking and Embedding) - is a distributed object system and protocol

OLE Automation - It provides an infrastructure whereby applications called automation controllers can access and manipulate (i.e. set properties of or call methods on) shared automation objects that are exported by other applications.

Use the Type Library Assistant to interrogate COM type libraries and generate COBOL copyfiles for inclusion in your programs.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Type Library Assistant

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Type Library Assistant

Select the Library

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Type Library Assistant

Generate the Copybook that can be used in the COBOL source

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Type Library Assistant

The GENERATED copybook

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Type Library Assistant

The EXCEL Library Copybook member

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Examine the COBOL programusing OLE Automation

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Execute the program via GDTBATCH

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Compilation Complete

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Select the Browse Function

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Just by pressing enter without search criteria and the Section Button pressed,all program sections are displayed.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Selection of search result

Reveals actual source code in Results window

Selection in Results window results inhighlighting of source in the program editor

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Highlighting the references in the Source program

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

From: is the Execution of line

Defn: is the Definition line

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Browse and Go

Including Data Names in the browse search

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Quick Browse

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Quick Browse

Using the Suggest Option

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Quick Browse

Place cursor fieldPress Cursor button

Source is highlighted

Using the compress option to only view the necessary code

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Remote Debugging

You can debug programs that are running on a different computer from one on which you are using Net Express

The remote computer can be either a Windows system or a Unix system.

Remote machine Must run ANIMSERV –port# before communication can be

made from the local machine Have GDT system up and running (Fileshare, TCS, Console,

Fsys01) Local machine

Requires access to the source files in the project on the Remote machine

Must have access to the dictionary (.idy) files in the project on the remote machine (usually in the \debug or \release subdirectory of the project on the remote machine.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Remote DebuggingThe Local Machine

Map a drive to the Remote Machine drive where the Project resides Example the R:\ drive on the Local Machine is

mapped to the C:\ drive on the Remote Machine Please note: on the Remote machine you must also

setup a R:\ drive mapping to its own C:\ in the case shown

Start Micro Focus v4.0

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

On The Remote Machine

Start ANIMSERV

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine

Open the Project residing on the Remote machine

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine

Prepare the Remote Animation Settings

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine

Start the Remote Animation Process

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine & Remote Machine

Start Debugging on the Local Machine

View the GDTBATCH process on the Remote Machine

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine & Remote Machine

Debugging on the Local Machine

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Local Machine & Remote Machine

Monitoring on the Remote Machine

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Point of Interest files are created via Revolve to direct a developer under Revolve or Net Express to areas of the program source that are of interest during development, analysis or debugging of the code.

Using the browsing tools available under Revolve, a Revolve user can identify areas of code that need to be quickly identified via a Net Express user editing the actual source under the Net Express IDE.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Example, a Revolve user has identified areas of the program (LOGON.CBL) that use the field TERM-DATA-SIZE. This field will need to be expanded. This work is to be done in the near future. The fact that this field is a point of interest to someone should be made evident to other developers that may be reviewing, debugging the source via Net Express IDE.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Via Revolve, capture the results of an analysis.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Export to Point of Interest file

Resulting Point of Interest File

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Point of Interest lines shown via the cross hairs icon in the prefix area.The above view is a compressed view of LOGON.CBL showing only points of

interest

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Revolve Point of Interest Files

Uncompressed view of the source showing points of interest.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

User Defined Extensions

Extensions give you the capability of assigning user defined extensions to the appropriate associated type.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

User Defined Extensions

Create a new association where .RCPY files are to be associated as a copybook

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

User Defined Extensions

Associated Types: Copybook, Program, Data File