Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hi, I have a requirement where I need to call a form from another form after successful login. The steps which need to happen is as follows 1) A Cobol program is executed and it open a win forms which is a login screen. 2) After providing you inputs the form should pass the values to calling Cobol Program without closing the form 3) The Cobol program should do your validation or checks and if success it should return to form with a message e.g. "initializing..... please wait" and then 4 & 5 step should happen. If not successful it should return with another message e.e. "invalid user/pass" and should again wait for user input. 4) The control should go back to the calling program for further process 5) After successful processing it should close the login form and display the next form to the user so it means that there is basically 1 cobol program which is driving the whole flow. Can anyone help me to achieve this? Thanks in advance#FormVisualCobol#COBOLVISUALCOBOLMIGRATION
I did the migration of customer data from cobol files (.dat) to MySql.The conversion went fine but now when I consult the data on the screen appear strange characters in special characters (accents, etc).I'm using Windows with WPF.I want send a few prints of the database and what appears on the screen but i don't know how. What is wrong? Will need to change some codepage?
Can anyone tell me how to print a file from within a cobol program. I simply wish to write my data to a report and then print the report. I tried using the PC_PRINT_FILE but I keep getting status code 05. If anyone could share code examples that would be very helpful. I tried also using the example given in prntfile.zip. However, it keeps giving me an error about a missing .dll file and the prntfile.exe is missing.#CobolEclipse
Problem Using COBSQL to pre-compile an Oracle SQL program which inserts PIC N data into a column defined as NCHAR results in incorrect data held in the database. Resolution For PIC N variables and NCHAR columns you need to set the Oracle NLS_NCHAR environment variable to match the NLS_NCHAR_CHARACTERSET for the database.So assuming a UTF-16 setting for the database of NLS_NCHAR_CHARACTERSET=AL16UTF16, set NLS_NCHAR=AL16UTF16 on the client.Then recompile using only default Pro*COBOL directives and the NSYMBOL(NATIONAL) Micro Focus compiler directive. Running the test program (see below), resulted in the following inserted in the COL1 column when running on Linux:"346C200020002000200020002000200020002000"As you can see, the byte ordering appears to be reversed. This can be changed if needed using UNICODE(PORTABLE) instead of the default UNICODE(NATIVE) directive, which gives:"6C34002000200020002000200020002000200020"In the above string you have 1 unicode character U 6C3
Problem When using call "system" to start a a new process from a JVM COBOL program, ACCEPT and DISPLAY statements in the new process do not work. Resolution The JVM runtime uses the underlying support in Java’s Process class which is written to be portable etc. This has the side effect than on Unix/Linux the support it has no notion of terminal I/O.So, this means that you can’t use CALL “system” in JVM where the new process is doing terminal i/o. However there is a work-around. You can use xterm –e to start a new X-term window and run a script. For example, here is a demo where test1.cbl calls a script, runs2.sh. The script set-ups the environment needed for cobjrun. This is required due to a Unix/Linux security feature which prevents spawned processes from inheriting the LD_LIBRARY_PATH.For the demo both test1.cbl and test2.cbl were compiled with cob –j. To run use cobjrun test1.test1.cbl: 01 ws
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
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.