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!
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
Create an .exe for ReseqnID.cbl We will first open up the Net Express Command Prompt
Create an .exe for ReseqnID.cbl Location of the .bat script and COBOL programs
Create an .exe for ReseqnID.cbl Inside the script that builds the .exe
Create an .exe for ReseqnID.cbl The Build script is run
Customize the IDE From the Options menu select Customize IDE
Customize the IDE Under the Tools tab we will press the New Tool button
Customize the IDE Use the Program button to locate the ReseqnID.exe Enter the Tool name
Customize the IDE Press Apply to add the tool to the IDE
Customize the IDE The tool ReseqnID is now available.
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".
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.
The Type Library Assistant Select the Library
The Type Library Assistant Generate the Copybook that can be used in the COBOL source
The Type Library Assistant The GENERATED copybook
The Type Library Assistant The EXCEL Library Copybook member
Browse and Go Compilation Complete
Browse and Go Select the Browse Function
Browse and Go Just by pressing enter without search criteria and the Section Button pressed, all program sections are displayed.
Browse and Go Selection of search result Reveals actual source code in Results window Selection in Results window results in highlighting of source in the program editor
Browse and Go Highlighting the references in the Source program
Browse and Go From: is the Execution of line Defn: is the Definition line
Browse and Go Including Data Names in the browse search
Quick Browse Using the Suggest Option