Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hello, please I am using commnad CALL "SYSTEM" USING W-CMD-LINE where in W-CMD-LINE is for example DIR commnad Is there any possibility to get return value from CALL "SYSTEM" ? To get DIR command output directly to COBOL? Now I have to do: 'DIR > out.txt' and then read this file in my program.#COBOL
Hello!! Visual cobol shows me this error when I click PLAY to see what I have programmed. I would appreciate some help.. I add an image capture under this text, thanks a lot!! #debugvisualcoboltarget
Hello, in Micro Focus COBOL I am creating a text file. File is defined like this: select bankd-file assign to f-bankd-file file status is wx-fstat organization sequential. fd bankd-file. **************** 01 bankd-rec pic x(01). After that I do standard open output bankd-file and write Is there any possibility to setup code page for file? It's created in utf8 (I think by default) but I importing this file to environment which needs this file in cp1251. Or is there some easy way to convert file encoding? I can't use any third party solution. It must all be done in COBOL (or some Windows system command line routine). Thanks for any help.#COBOL
Problem: Using ACUCOBOL-GT Runtime version 10.0.1 a thin black bar is seen on the right edge of some screens. Resolution: The issue has been identified as mishandling of the decimal portion of the screen size parameter and is in Development's queue for resolution. In the meantime the workaround is to use integer values for the screen size.
I use v10.0.0 AcuCobol call "C$XML" using CXML-ADD-ATTRIBUTE element-handleattribute-nameattribute-valueattribute-value-length.attribute-value is spacesattribute-value-length = 0 The attribute value will have the previous attribute value. Is this a bug in AcuCobol 10.0.0? When attribute-value-length is set to 1 attribute-name = " " will occur in the xml file.
When we have assigned the print file to PRINTER? and have had our LPX1 in the DEFINE-DEVICE with LPX1 and port info it prints to the printer if that is our default printer. However we get dialog errors that it has failed and been suppressed because BIS suppresses the dialog box.
we are trying to print directly from a BIS service program to a specific windows network printer.
There are 2 new Visual COBOL for Eclipse videos available on YouTube, related to creating Web Services from new or existing COBOL programs. The first demonstrates how to create a SOAP Web Service, and the second does the same for a RESTful Web Service. These have been added to the Micro Focus Support and Training channel on YouTube. Here are direct links to the new videos : Using Visual COBOL for Eclipse to Create SOAP Web Services Using Visual COBOL for Eclipse to Create REST Web Services#VisualCOBOL#REST#Eclipse#SOAP#webservice
Hi when i build my source code (in attach) then build was failed: COBCH0002S error at line 281: i think my code is right My flow code: read data file ORDERS.dat then insert all records into ORDERS table read records in ORDERS table, check record if error then write that record to ORDER_ERROR.dat My ORDERS table structure: DATABASE.txt I also attached ORDERS.dat and project source code. Thanks for your support.
I am trying to do math in my sql commands and would like to always get back 2 decimal place results that are rounded. In regular SQL I can do a cast(a * b, as money) and that will give me what I need. I have tried using convert(a * b, sql_decimal) but this will always return the number of decimal places based on the result of what a * b is. How can I force rounded 2 decimal places? I have tried to use sql_float but to no avail. #relativityrounding
Dear Chris, Do you have Idea about this error ...?? bind 34: dty=96 mxl=255(255) mal=00 scl=00 pre=00 oacflg=00 oacfl2=1 size=0 offset=792 bfp=1103c0690 bln=255 avl=255 flg=01 value="ORA-20000: (M)NO EXISTE USUARIO DISPONIBLE PARA ESTE CANAL(C)20509 " BINDS #5:
Hi, I've Netexpress VER 5.105.0076 installed on Pc running Windows XP service pack 3. I'm planning to: Upgrade Windows XP to Windows 7. Upgrade Netexpress ver 5.105.0076 to 5.1 ver 5.108.0030 I need to RETAIN Netexpress ver 5.0 from my pc to keep the license, but to upgrade from Windows XP to Windows 7 cannot be done according to Microsoft rules. Therefore I have 2 methods to do that: Method 1 : Using Windows Easy Transfer for XP to transfer settings and others from Windows XP to Windows 7 Install New Fresh Windows 7 ((formatting the HDD)) Use Windows7 Easy Transfer to get that settings and others, here Netexpress 5.0 license should be within these settings !!?? Method 2 : Upgrade from Windows XP to Vista Upgrade from Windows Vista to Windows 7 Then I will install the following: NXP325.106.0079.exe ((Wrappack 6)): the complete installation NXP325.107.0047.msp ((Wrappack 7)): to update the previous in
Hi , What are the compiler directives to create a .dll for the single program ? ( My code is a managed code , also unlike Native code we donot have option to create multiple executable in Managed code ) I could set gnt and int from Tools-->Opions-->Micro Focus-->Directives-->Single file compile. Also How do i set this from Visual Cobol Command prompt if i have to do a Bulk Compilation of programs. Regards, Zoeb
In Visual Studio 2013, Visual COBOL 2.2. ... When you have Managed WinForms Program A invoking Managed WinForms Program B, and both are in variable source format as shown by the VS editor when editing each individually... and you are running in Debugging mode... when A invokes B and you are transitioned over to B... it appears in the old fixed Source format, with the right margin area greyed out... Thanks.
We are having a problem that I would like to hear if one of you have a solution for . We are running thin client, 9.2.1 and we have a Menu system which starts threads of subprograms. When these subprograms reads a record which is locked we normally call C$sleep and read again after a few ticks. But unfortunately this behavior makes the focus of the window change to another subprogram. These is of course done because windows concludes that the subprogram with the sleep does not need ressources right now, and it would be a good idea to bring anoher program in focus. We have stopped using the c$sleep and calls a while loop, and it is functioning very well, but unfortunately this behavior uses a lot of CPU etc. Do you see any other possibilities ? (we have also tried accept upon time, but this brings the program in focus, also if the user has switched the program in background)
The following code generated the CRLF and FFLF correctly as 2 bytes. However the TAB also generated 2 bytes with the first byte being set to <null>... Question is how do I generate a single byte using the technique below or is there another way ? 78 CRLF value x"0D0A". 78 FFLF value x"0C0A". 78 TAB value x"09". Thanks Allen
Is there a way to set specific tabs is Visual Cobol? Such as at 7, 8, 12, and 72. Under Tools/Options/Text editor/Micro focus cobol, the tabs button does not seem to give choices like that.
Hi All , Does Unit Test Framework only works for Native Cobol codes ? I tried using mfurun for Managed COBOL codes but i am unable to execute the scripts. What are the other limitations ? Can i used on Character based screens ?
Hello, I have a datagrid with a sub-datagrid where the data of the sub-datagrid are displayed when I click on one of the main lines datagrid (Figure 1).When I change (for example) the type of document to consult, the application has to re-record the data from datagrid and sub-datagrid.Then gives the error "NullReferenceException was unhandled". I'm using the same instructions I use with a simple datagrid and can not correct the error. Again I ask your help. Figure 1 Figure 2 Best Regards Alberto Ferraz
Hello: I have an event in datagrid (method-id dgridRubricas_MouseDoubleClick) that works perfectly when I click with the mouse in a cell. It turns out that when I click the mouse on the scroll bar to move down to the remaining data visualization, and make very fast, is considered a MouseDoubleClick and gives the following error "Null Reference Exception was unhandled". What is the solucção to prevent this situation? Best Regards Albeto Ferraz
Attached you will find parts of a bench project from version 9.2.3 (could not load all for file size issue .acu and AcuBenchPrint.dll were removed from Object folder) that is my attempt to get the RMNet Tutorial stuff that floats around the forum running. I have been successful in getting it to do all but show the results on the screen. Can someone that is familiar with reading XML data with AcuCobol please check out the code and see what I am doing wrong. You will notice in the project I had started with the logic in the sample program (XML IMPORT TEXT) but could not get that to work so I commented it out and moved on to try my luck with C$XML stuff. I do appreciate anyone that can help me as this will be a big win for our company to get this type of API logic up and running. Thanks
I copied a solution with a .Net WPF project from one system to another. Now I get the following errors on the receiving system: COBCH0002 : Undefined ECM error. Inform Technical Support. Error code 12. COBCH0038 : Paragraph or phrase repeated illegally The errors points to the ‘getter’ keyword within several properties. property-id KalkNr binary-long. getter. set property-value to W-KalkNr setter. set W-KalkNr to property-value invoke self::NotifyPropertyChanged("KalkNr") end property. Both systems will have Visual Cobol 2.3 Update 1 installed, the first system with Visual Studio 2013 and the receiving one with Visual Studio 2012. I’m waiting for an answer from Micro Focus Technical Support. Regards Werner Lanter
Hi, Getting errors during compile time. The same code worked in Net Express 5.1 but having issues in Visual Cobol 2.3 Error 6 COBCH0302 : IF....ELSE or scope-delimiter mismatch COBES0112 : S-QNM-QUEUE-CODE-DB should not be defined with an OCCURS clause Anyone encountered similar issues? Thank for your help Ramesh
my work environment : Solaris 9 Server Express 5.0 my question is how to redirect the SYSOUT of mfsort to a fileI am confused if I change or enable OUTDD on Solaris 9 (UNIX pseudo)and where I should change it. tanks#cobolserverexpress
Hello, I have a managed WinForms app (Visual Studio 2013, Visual COBOL 2.2) with a TextBox (Multline = True and AcceptsReturn = True) and it is sized to allow entry of multiple lines of text, which may be entered using the Enter key. I also have the same app except it is done in C#. As you know, using the Enter key will cause a Carriage Return Line Feed (hex oa0d aka \\r\\n) pair of characters (non-printable) to be embedded into textBox1::Text wherever the user has entered the Enter key, and this causes any following text to be visually put at the beginning of the next visual line, etc. You CAN'T see these embedded non-printable characters with a watch on textBox1::Text in the debugger (although you can with C#, what a bummer!). In any event, I then take the contents of textBox1::Text to a string and pass that string to a third-party app (MS Word, in fact). When I get the string back from Word, it has been stripped of the Line F
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.