Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Working through the above titled PDF I get a build error with the following line of code: set an-obj to MyClass::New("Scot") The error I get is Severity Code Description Project File Line Error COBCH0012 : Operand MyClass is not declared OOSample C:\\Users\\mike\\Documents\\Visual Studio 2015\\OOSample\\OOSample\\TestMyClass.cbl 7 TestMyClass.cbl looks like: program-id. TestMyClass as "OOSample.TestMyClass". 01 an-obj type MyClass. procedure division. * set an-obj to new MyClass("Scot") set an-obj to MyClass::New("Scot") invoke an-obj::SayHello. end program TestMyClass. When I comment out the second "set" statement and uncomment the fi
Problem: Opening Net Express 32-bit Command Prompt or Net Express 64-bit Command Prompt returns the following at the prompt: The input line is too long. Resolution: createnv.bat is the script behind the Net Express command prompt. It creates another batch file (setenv.bat) that will contain all the variable settings required to set up the Net Express environment, calls setenv.bat to set environment variables, and then deletes setenv.bat:"�%\\cblpromp.exe" >> "%temp%\\setenv.bat"call "%temp%\\setenv.bat"del /q "%temp%\\setenv.bat" As shown above, cblpromp.exe creates setenv.bat in %temp%. This is where the problem arises. If the TEMP environment variable is missing as a user variable, then %temp% will automatically point to C:\\Windows\\Temp, which is the system temp folder. By default, it should point to the user's temp folder, i.e. %USERPROFILE%\\AppData\\Local\\Temp or C:\\Users\\<UserID>\\AppData\\Local\\Temp In the above case,
I have been running 5.1PE on windows XP since 2009 and now want to switch to Windows 7 for obvious reasons. 5.1 will not install on Windows 7. Is it possible to keep the compiler on the XP machine and run the application on the Windows 7 PC. As there is no license with 5.1 PE, I am not sure whether this will be possible. The other possibility would be to be able to install on Windows 7 and clean up the XP machine. The problem is that it is not possible to upgrade from XP to 7.
The output from one of my rebuild-jobs is: ERROR: bad record type at offset : 036BBE9C Continuing from offset : 036BBAC8 Rebuild successful - records read = 63536 Corrupt areas encountered = 1 Does someone know how to repaire this currupt areas?
We are migrating MF COBOL server express 4.2 on HP-UX to server express 5.1 WP10 on IBM-AIX. how can I use spzero and host-nummove compiler directive together ?
Hi ! I want to probe Visual Cobol 2.3 Personal Edition for Eclipse. When I downloaded and installed on a home computer, automatic activation was simple & successful. But on my workplace I have not internet & mail. I try manual activation, get e-mail details from activation screen and mail it from another PC to LicenseRequest@microfocus.com . But answer from Microfocus was: Authorization Process Error The following error occurred during the authorization process MG0106: Unable to authorize the request. Please try the authorization later. If this problem persists, please go to Micro Focus community website at community.microfocus.com/ and look at the authorization issues under the wiki. Reading WIKI not led to success. What can I do to activate Vcobol PE on standalone PC ? #COBOL
Right now my users have to log in to Windows, then log in to the Acucobol application. How in Acucobol do I incorporate single sign on utilizing the user's Windows credentials. Thanks Ray#ActiveDirectory#SSO#singlesignon#Windowslogin
Hello: I am a new member and i try use a listview in a program. I've seen many examples but I haven't been able to put any working. I have always a problem. The las problem is an incompatibility with de SETTER and GETTER use with a $SET SQL(ODBC=DBMAN). When i can put the listview working i add the directive $SET SQL(ODBC=DBMAN) and the complier send me the error "Error 3 COBCH0002 : Undefined ECM error. Inform Technical Support. Error code 12" If anyone can send me a simple complete example would really help. I wont tu use de listview with a MySql database. Thanks.
Hello again, how can I use clipboard in VC?
I'm trying to call a DLL that I wrote in C# from a GNT called from a native COBOL program. The call is failing with "Server defined OLE exception" (800401F3): Invalid class string...." Now, from past experience, this usually means that the DLL is not registered. However, I did register the DLL. Now, here's the weird part. If I remove the GNT from the equation, the call to the DLL works fine. So I can call the DLL from a native cobol program, but not from a GNT written in native cobol called by the native cobol driver. I've attached the source code that I'm working with. Program1.cbl is the driver. Compress.cs is the code for the DLL. Ziphandd.cbl is the GNT making the call. None of the programs are very complicated. Any suggestions would be most welcome. Mike
How can I use the File.Exists(filename) statement of VB.Net to Visual Cobol?
I am using Cobol Net Express 5.0 and my question about the list box how to find the item in the list by typing the first character of the item (what I have to do in the dialog of the list box).
Problem The terminal emulation software escape key sequence does not match the UNIX TERMINFO escape sequence. How do you identify the escape key sequence to use in a TERMINFO file for a particular key depression like F2 or shift F2 etc… Resolution Here is a program scanwinput.c to display the escape sequences received by a UNIX system, which can be used to update your TERMINFO files. Getting this output is a good step to solving the complex issue of terminal configuration on UNIX platforms. OUTPUT from program when pressing F2 key lines <25> columns <70> termname longname xterm terminal emulator (X Window System) Enter a string or key sequence like ctrl-f4 to see hex values or q exit <^[OQ
Hi All I have trouble like that : community.microfocus.com/.../6399.aspx My program will be deployment in Italy. In Italy "." is used like decimal separation (ex. 1.000.000,00 ) In my program i put "DECIMAL POINT IS COMMA" I put : SET ENVIRONMENT "KEYSTROKE" TO "Data=46 44" SET ENVIRONMENT "KEYSTROKE" TO "Data=44 46" In this way, in numeric field the "." in numeric pad work, but in alphanumeric field when digit "," (from alphanumeric pad) appear "." and if I digit "." appear ",". I want that in numeric field the "." in numeric pad work like decimal separator, but in alphanumeric pad the "," work like "," and "." remain "." thank in advance
Problem What happens with IDXFORMAT when combining its usages and using it as a compile time directive. as an inline directive. it inside a file handler configuration file. Resolution This is a complex example but hopefully shows how the IDXFORMAT directive and the external file handler IDXFORMAT option can be used together. This examples shows A compile directive IDXFORMAT will override a file handler configuration file IDXFORMAT. An inline directive will affect all index files declared below it in the source file. Other coding techniques like copy with the replace statement and piped file input and output. OUTPUT from running doit.sh /home/tonyt/test/2831958idxformat >. ./doit.sh java version "1.7.0_13" Java(TM) SE Runtime Environment (build 1.7.0_13-b20) Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode) version @(#)cob.c 2.3.0.72 PRN=KXCRH/AAD:Ao.U4.13.04 PTI=32/64 bit PTI=Micro Focus Visual COBOL Development Hub 2.3 PTI
Hi I need to consume a .NET COM dll in Visual Cobol but there are certain problem which i am facing while trying to consume that. I have native COBOL DLL which is internally calling a Native DLL which is interacting with the .NET COM component. COBOL DLL(Base) --> Native COBOL DLL(Layer) --> .NET COM DLL The call is driven by Base DLL to Layer DLL , The layer DLL create an object of COM class and execute the method and return the values to Layer Dll and dispose the object. I need to retain the object and its value in Base Layer can someone suggest me solution for the same. I am thinking of declaring a Global/external variable so that i can retain the values in the base layer. I can change the base layer so i am avoid using linkage variables. Please suggest me the usage of Global or external variable in Visual COBOL Thanks
Either there is an issue with generating the dir file ... or I have a question related to the intended behavior when generating the dir file and the subsequent use of the COBOL command to generate the executable, which I need confirmed. Scenarios: 1. Using Visual Studio 2013 and Visual COBOL 2.2, create a new Win forms project (in my example, I called it TestDir2). After initial creation, there will be a Form1.cbl and a Form1.Designer.cbl, as shown in the VS solution explorer pane. 2. Go to the project properties COBOL tab and click-check the "Generate directives file" option. Build / Rebuild the project and examine the generated directives file. Notice especially the ILSOURCE entries - which ones are there and which ones are not there (the ILSOURCE for Form1.cbl is not there but this (is? / may be?) intended - see the next step). For your convenience, move or copy the .dir file to the folder with the source code, in preparation for the next s
I need to make the mouse cursor stay with the icon of wait?
Hi,is it possible to change the key of the "go to declaration"-function? (CTRL Click on variable) It occurs very often that I want to copy or paste something and accidently jump to a declaration. Thanks for your help.
Hello all, Is the 2.3 install compatible with Visual Studio Express? I'm a developer with very little experience with visual studio in general so I don't want to go out and purchase that product if not necessary. So I have Visual Studio Express installed. Thanks, RM
My form consists of several dropdown list 'Comboboxes' with several values in each box. The first time into the code I'm setting up textboxes which accompany these boxes like so... set mystring to EMPMAIN-USC-RATE(1). set Tax-USC-R1::SelectedIndex to Tax-USC-R1::FindStringExact(mystring::TrimEnd(' ')) set uscIndex to Tax-USC-R1::SelectedIndex. >> If Rate 1 is ZERO then disable all entry boxes for USC if uscIndex = Zero set TAX-USC-R1-ACO::Enabled to False set TAX-USC-R1-PCO::Enabled to False set TAX-USC-R2::Enabled to False etc etc.. I have 'SelectedIndexChanged' methods attached to each Combobox where I want the user to be taken should they change the initial value thats in the Combobox. The problem is that the code is bouncing to the 'SelectedIndexChanged' method in the initial set up of the boxes which I do not want it to do. Is there a way around this problem? e.g I only want the 'SelectedIndexChanged' code to be done IF the u
I move a text into a MLE field, after refresh the cursor is under the first Character of the MLE field. Does anyone know how to move the cursor at the end of the text? #MultipleLineEntryField
Problem: Visual COBOL 2.3 for Visual Studio 2015 fails with the following error message: Setup Failed 0x80070643 - Fatal error during installation. Fix setup issue(s) and retry. For more information see the log file. Resolution: Visual COBOL setup verifies and installs few pre-requisites if missing. When one of these pre-requisites fails to install, then the error above occurs, and the log file should indicate where the problem occurred. For instance, the error is reported in several lines: Error 0x80070643: Process returned error: 0x643Error 0x80070643: Failed to execute EXE package.Error 0x80070643: Failed to configure per-machine EXE package.Applied execute package: jre, result: 0x80070643, restart: NoneError 0x80070643: Failed to execute EXE package. In the fourth line of the error messages above, it indicates that jre was the package that failed. The actual command is reported in the same log file few or several lines before the error messages with an entry starting with "App
Just upgraded to Visual Studio 2015. Whuch version of VCPE do I need to install? Thanks
Good morning, I am again with this old problem, I need to convert this program done in Net EXpress to Visual Cobol, noting que the program works Correctly in NetExpress but in Visual Cobol can not load the DLL. The dll this installed in windows \\ system32 folder. Thank you.
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.