Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Are extension methods still recognized in the latest visual cobol for .net? I have a very simple ext method I am trying out and it does not seem to be recognized. I keep getting the error Undefined Error Contact Tech Support. I have a static extensions class like this. class-id Extensions static. Method-id CountWords(str as string) returning result as binary-long extension static. declare #words as string occurs any = str::Split(' ') set result to size of #words end method. End class. Then my calling method is in another class like this. Method-id SomeMethod() declare a as string = "Mary" declare b as binary-long = a::CountWords End method. Intellisense does not recognize CountWords as an extension and I get the error noted above.#VisualCOBOL
We have a legacy Net Express 3.1 application that just got moved to a new Windows machine along with the runtime files and when invoked we see the EXE running but the screenset is never displayed. We have tried using compatibility mode and a variety of other things but cannot narrow down why it works on one machine and not on another. We do notice on the machines where the screenset is not displayed that the EXE it taking 5-10 percent CPU which it normally does not on a machine that displays it correctly so I am assuming it's cascading an error but we cannot see it. The OS versions involved in the test are Windows 7, server 2008 and 2012. Is there any way to debug the program or screenset on the offending machine without recompiling? Thanks for any information.
I installed NetExpress 6.0 on a development machine and went about trying to compile a module. The code here at my new job is uses copybooks for everything. The Properties tab in the menu under Project is disabled. When I compile a module it fails because NetExpress can't find the copybooks. Any assistance is welcome.
Can anyone convert this to visual cobol .net. I am having trouble with the byte array. using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider()) { byte[] buff = new byte[Convert.ToInt16(saltsize)]; rng.GetBytes(buff); return buff; } What i have thus far is local-storage section. 01 buff type Byte[] occurs any. perform using rng as type RNGCryptoServiceProvider = new RNGCryptoServiceProvider set buff to buff[type Convert::ToInt16(saltsize)] end-perform#VisualCOBOL
The tutorials for creating a web application with visual Cobol state I must select WEB under the COBOL template. The only options I have are Managed and Native. What do I need to install to get the WEB option? Thanks Shirley
RM/COBOL-85 Compiler - Version 6.09.04 for SCO Unix System V R 3.2.2 is used on a number of systems where the configuration is supposedly identical (aside from registration number) to many other systems, but, on the affected system, the compiler fails to build source files in a standard folder. For example: $ cd /PROJECT/25 $ /usr/bin/rmcobol SCH399RM/COBOL-85 Compiler - Version 6.09.04 for SCO Unix System V R 3.2.2.Configured for xx users.Copyright (c) 1985, 1986-1996 by Liant Software Corp. All rights reserved.Registration number: TA-xxxx-xxxxx-xxOpen error for file SCH399. The issue is not permissions related, and the error message is misleading. Using a system call trace utility, I can see that the problem is one of path translation. In the partial log below, note that SCH399.CBL is found in the current working directory (/PROJECT/25) but the compiler proceeds to attempt to open the source file at the path "/dev/25/SCH399.CBL". It obviously fails becau
Assume I have two instances of the runcbl running. Each running an extend cobol application. Designate them A and B. Can A do something that would interrupt an accept statement that B was doing? (And preferably in such a way that B knows A did the interrupt and can get some information. Just like the thread "SEND", but between two separate runtime instances.) I've figured out one way to do it, but it requires creating a socket service program to route socket messages between the processes, and each runtime session would have to spawn a thread that connected to the service so messages could be received from the socket, then internally "sent" to the IO thread. I don't need this feature badly enough to write the code to do all that, so I'm hoping someone else has already solved this or has a better idea.
PROBLEM When a shared or mapped drive is set in the Working Directory in the Alias then there will be an error 267 in the AcuConnect logs, and the program will not run. This same set up works on Windows 7 but not now with Windows 10. RESOLUTION Microsoft has increased security on Windows 10. Now services created as Local System account cannot access mapped/shared drives. The Windows error 267 means ‘The directory name is invalid’. The AcuConnect service is created to log on as ‘Local System’. As such it cannot access the drive and returns the error. There are 2 solutions to get around this issue. Depending on your setup and system architecture, 1 solution may work better than the other. SOLUTION 1 – Change the AcuConnect service to not run as the SYSTEM account. Press the Windows R keys which will open the ‘Run’ window. Type ‘services.msc’ enter, this will open the Services window. Find the AcuConnect service i.e. AcuConnect 10.2.0 on port 10200 &
I was wondering if there is a tutorial or example for calling a URL and manipulating the response.
Hi, one of our customers has the following request: because it's difficult for him to see the cursor he wants the current field to be highlighted (for example with color). Has anybody solved this issue ? Is there a way to do this automatically (with Acu or via a windows theme) ? And will the solution apply to all controls (even check-boxes, radio-buttons and combo-boxes) ?
Hello, Sometime ago, we post about a problem in our installation CD of acucobol runtime 64 bits v8.0.0. Here is the link community.microfocus.com/.../5958.aspx we are looking again to solve the problem, because the option of copying the folder after install using the setup not works well. When the runtime executes, we get an error of no license archive found. The text of our license says this: ACUCOBOL-GT Runtime v8.0.0for x86 running Windows Vista 32/64bit #Users 50 And this text make me think it's not a real 64 bits runtime or the license given isn't a 64 bits runtime license. Anyone with same problem? Thanks afterwards#runtimeerror
Hello everyone, After experimenting with the AmortControl sample, i enabled the window to be resizable. When i resize the window, the screen behaves in unpredictable ways, wiping out all the dot net controls. Is it a problem of the cobol run time ? - Before resize: - After resize: Thank you all.
Since we are on this subject, and you are updating this process it would really be nice to have some sample programs that actually create pdf's, and they should contain code for all the library calls that are supported. Back in the day Acu provided sample programs that were very good starting programs. PDF is becoming or shall I say the defacto standard in the industry today. Being able to generate graphical invoices and statements that blow away the competition from within our applications as PDF's would be huge today. The bench is not a good means to create graphical forms from within our applications today, there is no easy method I am aware to piece this code into existing programs today. We have been exploring creating Dynamic PDF's using Adobe LiveCycle to create the forms, then generating XML code to merge the form and the xml code using other 3rd party software, if we could instead use these new PDF libraries it would be fantastic. We did explore other avenues such
How do I get Visual COBOL runtime to accept a blank or generic TERM environment variable? All of our COBOL programs run on Linux with no user session (started by cron or other daemon processes). All of these programs have stdout redirected to log files and use the "DISPLAY" statement to put info into the log files. Most of this works fine, but in a few cases (and I cannot see anything special about the DISPLAY statements) I get a message like com.microfocus.cobol.program.COBOLRuntimeException: 191 Terminal type not defined [ts236h (while in native code - see cause for more information)] There is no TERMINAL per se, so I just want the DISPLAY the string. The last line in the log file before the error is from this source line display 'values returned to topend: ' out-detail-tbl. where out-detail-tbl look like. 01 out-detail-tb
Hi I am trying the new function "C$PDF" for runtime 10.2 I am trying to add a jpg image to a pdf file - but I am having trouble. When executing I get an error: Invalid or missing parameter to "C$PDF" using hpdf-page-drawimage Is there anyone who can see what I'm doing wrong ?! identification division.program-id. pdf. * Create a PDF file using "c$pdf" routine. Insert jpg image.* Runtime version 10.2.0 or newer is necessary ! environment division. data division. &n
hi, How do you get the Break on Data Change option for Variables in Unix version of Net Express 5.1 ?, I am able to use the option in the Windows version of the same. Scouring the Internet and Documentation from the Micro focus Website, i found the following Commands. Monitor Q, C, F4 Monitor Break Change Q, C, Ctrl F4 Monitor Fixed Q, C, Ctrl F5 I am able to use the Monitor Feature, but the remaining two commands only does a Step into and does not Break on changed Value. #Monitor#breakpoint#animation#NetExpress5.1#unix
Hi, CALL WINAPI "MessageBoxA", gets windows "114 Attempt to access item beyond bounds of memory:" when I CHAIN to prog below but works if I CALL the prog. I want to chain to it when a db error occurs so that all resources are freed (file locks etc) even if user doesn't close my pop up box. I'm running within Visual studio i.e. in development environment. I'm using Visual COBOL / Windows 10. Thanks, Linden environment division. special-names. call-convention 74 is winapi. data division. working-storage section. 01 retCode pic x(4) comp-5 value zero. 01 msgCaption pic x(255) value z"TNL Advertising Management System Error Report". 01 uType pic x(4) comp-5 value 273. *> 305. 01 msgText pic x(1000). 01 username pic x(100). linkage section. 01 callersMsgText pic x(1000). procedure division using callersMsgText. *> IF HERE THIS PROG HAS BEEN CHAINED TO, NOT CALLED, SO *> THAT RESOURCES HELD BY CALLING PROG ARE RE
Hi We have a windows forms payroll application, which uses classes and called programs (migrated from Net Express and all compiled as managed code), and using .idx data files. We are using VC 2.3 and Visual Studio Community 2015. We will soon have to start uploading XML files with employee information to an Irish government website, which will send XML files back as responses. The XML files all have accompanying .xsd schema files. The XML files could contain information for 1 employee, or a few thousand employees, so they could be bytes or mb in size. Initially, we will be doing this manually by logging onto the website and manually selecting the file that has been created by our application. We will get an XML file back and this will be processed into our application. At a later date we have the option to automate the process into our application by integrating with the site's web services using SOAP. These web services are defined i
We are needing to pass an APP API KEY as part of a webpage call for security reasons. In our current setup we simply have all parameters needed in the URL to handle this. The vendor has decided that an APP API KEY must be passed as a html header and not part of the URL. Has anyone had experience in using the browser and passing a key in this manner along with the URL? Thanks as always for any help.
With c$socket and 'ags-create-server' I have now created a simple server for receiving web server messages. However, they expected from us to work with ssl. c$socket was a simple way that made a web server unnecessary on our side. Does anyone have experience with a simple similar ssl server solution, without running a 'real' web server.
Can you do programming in visual cobol .net using await and Task operators? I have a very simple method below and wish to use async, Task and await operators. Is this possible in a windows form application? method-id CreateUser(username as string) returning a as type Task[condition-value] async end method.#VisualCOBOL
We run Server Express on Solaris 11.3 (sparc) and the process we follow to install Server express on each system is as follows: Step1: # tar -xvf V75535-01.tar Step2 : # export COBDIR=`pwd` Step3: # sh ./install <- This install script invokes an interactive session where we answer a bunch of yes & no questions.. Step4: # cd /products/mf/mflmf-svrexp-5.1-wp11-64bit/ Step5: # sh ./mflmcmd <- This license script also invokes an interactive session where we enter the Serial/License numbers. Step6: # cd $COBDIR/aslmfStep7: # ./apptrack <- This "verify" program also invokes an interactive session where we enter new password and look at the installed licenses.We are in the process of automating a lot of the components of our system builds.Most of which has already been automated as part of the system build. However, Server Express installation on each build is still being done manually. As you can see, step3/step5 and step6 are
hi I' have program that run with cobol server 4.0, compiled with Enterpsie developer 4.0 for eclipse, on windows 2012 and give this error: SQLCODE: 00000001 SQLSTATE: 01004 SQL MESSAGE TEXT: String data - right truncation[32] EXPANDED TEXT: String data - right truncation[32] in odbc trace i have found thos print: ) d88-1b74 EXIT SQLDriverConnectW with return code 1 (SQL_SUCCESS_WITH_INFO) HDBC 0x0077E868 HWND 0x00010010 WCHAR * 0x74421F7C [ -3] "******\\ 0" SWORD -3 WCHAR * 0x7
In a .net visual cobol windows form, can a global variable be declared in working storage that references self::? Working-storage section. 01 s as new self. Method. invoke s::GetNumbers(). I know you can use declare x = new self in the method itself, but can you declare a global variable that represents self?
Good day,Update 4.0.268 does not allow generating clients from WSDL. In the version 4.0 does not generate error attach screens captures and error "Micro Focus Interface Mapping Toolkit v4.0.00259 Copyright (C) Micro Focus 1984-2018. All rights reserved. An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\\Users\\Usuario\\OneDrive/ConsultaEstado.!!1 The generation of the COBOL client from WSDL failed. Micro Focus Interface Mapping Toolkit v4.0.00259 Copyright (C) Micro Focus 1984-2018. All rights reserved. An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\\Users\\Usuario\\OneDrive/ConsultaEstado.!!1 The generation of the COBOL client from WSDL failed."
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.