Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Download attachment VCCOMDemo.zip VCCOMDEMO This demonstration program shows how a Visual COBOL .NET managed class can be called from a Net Express (or Visual COBOL) native program. The technology used is part of the .NET Interop technology and is known as COM Callable Wrapper or CCW. Basically what happens is that the .NET class is registered as a COM server so that the native COBOL program can call it as such using the COM support available in Net Express. Actually this is not limited to being called by a Net Express application as any COM enabled client can call this server. The demonstration consists of two parts, a managed Visual COBOL project called VCCOMServer and a native Net Express project called NXCOMClient. Please unzip the attached file VCCOMDemo.zip onto your C:\\drive, retaining the folder structure of the zip file. VCCOMServer: This class becomes a CCW by turning on the option Register for COM Interop which is found at the bottom
Visual COBOL for Eclipse R4 is GA today! This is the first Micro Focus release which includes a full GA version of COBOL for JVM... (a pre-release add-in was available with Visual COBOL R3.) So where to start? You could Look at the samples - familiarise yourself with some of the new syntax features by looking at the JVM COBOL sample code provided with the product or Create a new application using the templates provided or Import your existing application to a JVM COBOL project Let’s look at these options in more detail... JVM COBOL Sample Code JVM COBOL samples are included with the product. If running on Windows there is a SamplesBrowser, which you can access from the Start Menu. Windows The samples are installed in subfolders under C:\\Users\\Public\\Documents\\Micro Focus\\Visual COBOL 2010\\Samples. Note: On older versio
SmartLinkage – what does it do? Prior to R4, if you wanted to call a COBOL program from another language, you had to create wrapper functions to convert the COBOL data items to managed types. SmartLinkage does that for you, so you can access COBOL linkage data from other managed languages transparently.– No hand-written wrapper classes needed– No changes required to the original code– COBOL data shown in C#/Java/COBOL intellisense Easy configuration steps • Project1 (COBOL) – Create a managed project and add COBOL code– Compile with the ilsmartlinkage directive• Project2 (eg C#)– Create a C# project in the same solution– Add a project reference to Project1– Add a reference to MicroFocus.COBOL.Runtime (unless Project2 is COBOL)– Now you can access Project1’s linkage data directly Customisation • Default– hyphens are removed from COBOL data names and the following letter upper-cased eg lnk-details is accessed from C# as lnkDetails • ilcutprefix(x) direc
In my last entry I gave an overview of how we test the core component for the Visual COBOL product. In this entry I will cover how we test the Visual Studio and Eclipse integration. Testing of the Visual Studio IDE is kicked off using an in house tool called ‘TestCat’. This tool simply monitors for the availability of a batch script, which is created during the overnight build of the product. The TestCat tool runs the script, which has a number of commands contained – it starts Hyper-V machine instances, copies the build onto the virtual machine and kicks off the IDE tests after installing the test build. Tests cover the basic functions of the IDE, but also more advanced testing such as various project and debugging scenarios. The results are then assembled in HTML reports and published. The Eclipse IDE is tested in a very similar manner. The tests are kicked off overnight, and test failures are reported through a web page and via email notifications. This process runs several th
Attachment: GridTooltip.zipVisual COBOL 2010 R3 Winform project. This demo shows how to display a Tooltip image for a dataGridView control which is dependant on the row in the control over which the mouse is currently hovering. Each time the mouse is moved to a different row the image to display will be changed to reflect the new row. Please download and unzip the attachment called GridTooltip.zip into your C: drive, retaining the folder structure in the zip file. Open Visual Studio 2010 and open the solution C:\\GridTooltip\\GridTooltip\\GridTooltip.sln. Build and run the demonstration by pressing the F5 key.Hover over each row in the dataGridView control to see the Tooltip that is displayed for each. Click the Exit button when done. To debug the project, start it by pressing F11. #.net#VisualCOBOL#COBOL#HowTo-BestPractice#development#VisualStudio
The attached Visual COBOL project contains a .NET managed code Windows Forms application that demonstrates how to allow a user to click on a button and automatically display a Print Preview Dialog or to send the image of the current form to the default printer for printing. $set ilusing"System.Text"$set ilusing"System.Drawing.Printing"$set ilusing"System.Windows.Forms" class-id screenprintvc.Form1 is partial inherits type System.Windows.Forms.Form. working-storage section.01 PrintDoc1 type PrintDocument value new PrintDocument.01 PPDlg1 type PrintPreviewDialog value new PrintPreviewDialog.method-id NEW.procedure division. invoke self::InitializeComponent set PPDlg1::Document to PrintDoc1 set PrintDoc1::OriginAtMargins to true invoke PrintDoc1::add_PrintPage(new System.Drawing.Printing.PrintPageEventHandler (self::pDoc_PrintPage)) goback.end method.method-id pDoc_PrintPage private.local-storage section.01 bmp type
What are Watchpoints ? Watchpoints are a special kind of breakpoint available when debugging native COBOL code. Rather than being associated with a specific line of code in your application they are associated with a COBOL data item. They allow you to break every time a data item's value changes. Without watchpoints you would have to set a breakpoint on each line where the item, or any redefinition of the item, was used in order to monitor changes to that item. In a simple program that may not be a problem but for a large, complex application that would not be practical as it may not be obvious where the item is used. Setting a watchpoint Let's assume that in the following program we want to track when the value of item2 changes. identification division. program-id. Program1. environment division. confi
The article will review the common properties of the CheckBox control. These are the name, text, checked and checkstate properties. We’ll also review the use of events associated with a CheckBox. An event when it occurs invokes or calls a method to handle the situation that has just occurred. For those unfamiliar with the term ‘method’, a method is a piece of code that is executed when called, kind of like a small program. We’ll go into methods more in a little bit. WinForm We’ve already created the WinForm we’ll be using. Remember, the intent is to learn how to manipulate CheckBoxes, not create WinForms. Our WinForm was specifically designed to be simple and present only the basic information. It appears as: Pretty simple, right? At the top we have a Label that provides some information about Check Boxes. We also have a button on the screen that says “Reset” and we have the Check Boxes contained within a group item titled “Color Selection”. There are actually more
Our examples will focus on a single control. We’ll show you how to manipulate the properties of that control programmatically. We may have to include one additional control but the focus on each project will be on a single control with a supporting role for the additional control. This article is about the Button control. In a previous article we introduced the Label control and also used the Button control in a ‘supporting’ role to the Label. The Button is what I like to refer to as an ‘initiator’, that is when the button is clicked or pushed it starts something. Buttons are made to tell the application that “I’m done entering something please go process it”. The Button therefore not only has properties that we can change (color, text, etc.) programmatically but methods that we can call when an event occurs. There are numerous events associated with a Button but we’ll concentrate on the main events. An event when it occurs invokes or calls a method to handle the situation that has ju
The DateTimePicker control, along with the namespaces System.DateTime and System.TimeSpan can however save a COBOL developer a significant amount of time where date validation and manipulation is concerned. The DateTimePicker control restricts the input of data to valid dates, it can contain proper formatting and be set to ensure data ranges are valid before any data is accepted into the application. The System.DateTime namespace provides the developer with a set of properties and methods geared specifically towards date and time manipulation. The System.TimeSpan namespace allows us to determine the amount of time between two points in time as days, hour, or minutes. As we’ll see in the article existing date calculations that used to require numerous lengthy paragraphs to determine can now be handled with one or two lines of code. The DateTimePicker example will show several different methods of determining date values and how they can be used with existing code. WinForm We’ve
Visual COBOL and COBOL for .NET Language Introduction Visual COBOL Demo Sample Application files The Visual COBOL product family offers a high level introduction into the COBOL for .NET programming language and using Visual COBOL in the Visual Studio IDE.This provides provides a look into Visual COBOL concepts and features, and how existing code can be migrated to take full advantage of COBOL for .NET. To open the document, click on the Visual COBOL and COBOL for .NET Language Introduction link and open it using Acrobat Reader.Download the attached demonstration application files from the Visual COBOL Demo Sample Application files link to a location where it be accessed using Visual COBOL R3. Then open the application's solution in Visual COBOL. The demonstration application includes code that helps you walk through the material in the introduction.As always, we are keen to get any feedback that would help improve this document. Let us know what you would like to see in the Visual COBO
Our examples will focus on a single control. We’ll show you how to manipulate the properties of that control programmatically. We may have to include one additional control but the focus on each project will be on a single control with a supporting role for the additional control. Our first control is the Label. While maybe not a glamorous control, the Label provides a very important function for the developer: It enables the developer to present content, instructions or images to the user. Without the Label presenting information to the user all we’d have is a form with a bunch of boxes or circles without any idea what they were for. So let’s begin by looking at how to work with Labels. WinForm We’ve already created the WinForm we’ll be using. Remember, the intent is to learn how to manipulate Labels, not create WinForms. Our WinForm was specifically designed to be simple and present only the basic information. It appears as: Pretty simple, right? At the top we have a L
I'm at a loss... We have some legacy applications that are compiled with Object COBOL 4.0.32 which was installed on an older desktop. The desktop recently died and I'm now trying to install the compiler on a newer machine. The machine is WinXP SP3 with 1GB RAM. Nothing is running on it and I've disabled NAV, the firewall and everything in the BIOS set-up that looked like it might get in the way. I was able to install COBOL 4.0.07 and the WinSDK without a problem, but trying to run the 4.0.32 Update keeps throwing an error when it gets to "Checking Configuration...": Execution error: file 'UPDATE' error code: 114, pc=0;call=1,seg=0 (Signal 11) I have tried running it in Compatibility mode and unchecking the "Protect my files" option under "Run As" as well as running it as Administrator. I have also tried Safe Mode in XP, a Win98 Virtual machine, running it from the command prompt, and I removed a 512MB
[Migrated content. Thread originally posted on 20 December 2011]Hello,I am migrating to VisualCobol some RMCOBOL programs , and I have found some problems. I wanted to know if there is some kind of solution for these problems, or if it will be corrected in future VisualCobol versions1)When we want to verify that a file exists, some programs perform the following instructions .. .... SELECT OPTIONAL FICHSEC ASSIGN TO RANDOM LOC-FICHSEC ORGANIZATION LINE SEQUENTIAL ACCESS IS SEQUENTIAL FILE STATUS IS STAT-FICHSEC. .... OPEN INPUT FICHSEC. I
[Migrated content. Thread originally posted on 11 May 2011]Does anyone have any experience with a Cobol source Code Control System? which one? I have been trying to understand TortoiseSVN and TortoiseHg but thought there mught be a better system out there somewhere.ThanksDavid
[Migrated content. Thread originally posted on 23 February 2011] Hi Everybody i am faceing Storage violation issue in CICS.I am looking for following information if any body can help.a) My Dump say "Shared memory: Unlocked"b)DUMPCODE: Violatedc)Shared memory: Unlocked , DUMPCODE: ViolatedI am also attching the dumps i had.I will be really thank full is somebody can understand this dump and let me know , what its trying to say.Thanks and RegardsCheeta L Please find the code here
[Migrated content. Thread originally posted on 16 February 2012]The Micro Focus Developer Conference 2012 is a free event for the COBOL community, being held at the Crowne Plaza Hotel, Downtown Dallas, Texas on 16, 17, 18 April, 2012.The conference theme is 'The future of Enterprise Application Development', and this is a must attend event for anyone interested in COBOL application development and those generally interested in keeping up-to-date with the latest COBOL news and views.For details of the agenda, venue and to reserve your place, visit the conference webpage.
[Migrated content. Thread originally posted on 20 August 2007]We are currently looking for a programmer/developer for our small IT based company providing on-line debt recovery services in Lancashire, England. If you know someone who might be interested please email me at nick@colsys.net
[Migrated content. Thread originally posted on 11 February 2011]In case you missed it (which is easily done!) we announced the latest update to RM/COBOL this week. This release addresses over 40 customer-reported stability, and enhancement requests. This is the second WebSync release for RM/COBOL 12 and delivers on our previous commitment for continued support for our RM/COBOL customers. officially, it's RM/COBOL 12.06 and can be downloaded via the Micro Focus Supportline site.
[Migrated content. Thread originally posted on 05 June 2012]thers is an aid: cblcored, As I understand it it sets registry key values in [HKEY_LOCAL_MACHINE\\SOFTWARE\\Micro Focus\\NetExpress\\3.1\\COBOL\\3.1\\Config]"core_on_error"=dword:00000002These values are documented as in documentation.microfocus.com:8080/.../index.jspBut what about "debug_on_error"=dword:00000080In documentation it only has value 0 or 1 but on my system it has 128?
[Migrated content. Thread originally posted on 08 June 2012]Hello!From verson 9.0 (9.1 ?), AcuCobol handles stored objects. That is, we can send and receive objects as classes structs etc from ie. a C# method.I am testing this, and for simpler objects I have managed to receive and handle objects correct.But now I have a method that returns a C# Dictionary object.This, I cannot figure out how to handle. Therefore I hope for an answer on this forum.I have my return object in this handle:77 hDictOperators usage is handle of Object value 0.It is used in this call:modify hMaventa "@GetOperators" (mav-returTabAnt)giving hDictOperatorsThe object is stored in this, and I get the correct result if I ie. ask for the number of instances:inquire hDictOperators @Count ws-tellerI can also extract the keys into another stored object, like this:inquire hDictOperators @Keys hDictKeysBut the question is; how can I extract the keys and values into pic x - variables?The normal way of doing this
[Migrated content. Thread originally posted on 10 May 2012]Our Software Developer company needs a programer to work in Torrance, California www.rbza.com please mention this forumWe are not recruiters
[Migrated content. Thread originally posted on 13 April 2012]I'm hoping to produce an XML file that can be mapped to MS Word documents using the Word 2007 Content Control Tool Kit. (That's the easy Party).The tricky bit is embedding the XML file as a subdocument with the *.DOCX file set.Has anyone come up with a simple solution to this, of have an example program of calls to a .NET Assembly to calls ?This project is an effort to produce MS Word or PDF Invoices replacing calls to Active-X MS Word application so as to speed up the process.
[Migrated content. Thread originally posted on 20 April 2012]GoodFly for RM is the solution for the migration of applications made in RM COBOL with WOW to Visual COBOL for .Net With this innovative solution, several companies have already done in short time modernization project of COBOL applications to .Net with minimal impact in terms of intervention on the code. The result is a new greatly enhanced user interface that can be used through web and mobile channels. The main features of the solution are: Automatic conversion of COBOL-WOW projects with the creation of WPF screen set. Separation is maintained between the mask and the source, just like in COBOL-WOW. The logic of the program is not changed in any way: the program pilots cobol masks and not vice versa. Support of all COBOL-WOW controls. Support of Active-X controls. Support of the main COBOL-WOW functions (WowGetProp, WowSetProp, WowAddItem, WowGetMessage, etc..). Emulation of the COBOL-WOW event management. Conversion, when
[Migrated content. Thread originally posted on 12 March 2012]We have problems with one of our tasks.We are in a project to integrate to a webservice. There is written a proxy wrapper for us, to handle the communication with the webservice.But we get an error when trying to create one of its classes, the runtime crashes. When dissecting the wrapper, it seems that this class is the client class for the webservice. This means that we are trying to create a object – a class – that really is a webservice class.We are not very familiar with consuming webservice etc. and we are on a thin ice here...When I write a small C# code to do the same, it is necessary to add a config file to the C# project. This config file (app.config) holds the information about the webservice adress, binding etc. We have the config file, but is it possible to refer to it when creating the class? The short question is; is it possible to create a class in a dll component, that refers to a webservice class?Is the probl
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.