Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hi, I'm trying to fetch a Micro focus COBOL-DB2 (SQL server) Cursor and encounter the error, "Load error : file 'FETCH' error code: 173, pc=0, call=1, seg=0 173 Called program file not found in drive/directory". There are other Cursors in the same program and they seem to be working file. Can someone please help? CURSOR: EXEC SQL DECLARE STYLE_COUNTS CURSOR FOR SELECT SYSTEM_TYPE ,STORE_RCVR_NUM ,STORE_PO_NUM ,STORE_NUM ,STYLE_NUM ,SUM(AVAILABLE_UNITS) ,SUM(AVAILABLE_UNITS * ITEM_COST) ,SUM(AVAILABLE_UNITS * ITEM_RETAIL) FROM INV_AVAIL_ITEM WHERE STORE_RCVR_NUM = :WS-PREV-RECEIVER-NUM GROUP BY SYSTEM_TYPE ,STORE_RCVR_NUM ,STORE_PO_NUM ,STORE_NUM ,STYLE_NUM END-EXEC. #fetch#MicroFocus#call#DLLError#SQL#VisualCOBOL
The Microsoft .NET Framework and ‘managed’ code usage seem to be everywhere. More and more companies are adopting the use of managed frameworks to provide greater flexibility in their development environments and take advantage of the numerous features and benefits of the framework. But what if your shop isn’t on the road to .NET yet or fully? What if you have an existing COBOL environment that is not managed but in ‘native’ mode? How do you interact with managed code? How can you extend the use of your current application to reach out and utilize the features others have derived and published from the .NET Framework? This article is an update of a previous article that was posted on the Micro Focus Community site in 2011 using NetExpress. This updated article will utilize the previous COBOL COM Server and client, but we will update the client from NetExpress to Visual COBOL. So let’s get started! The Approach The technology we will be using to enable the call to the managed environme
Hi! My program is writing to an XML-file. 1. A numeric field with two decimals, f1, is declared pic 9(5)v99. When writing 42.00 to f1 the result on xml file is <f1>42</f1>. I want both decimal 00 to be on the xml file. When a decimals is for instance 10 the output for decimals is 1 and if it is 01 the output is 01 . So it is always when the last decimal is 0 they disappear from output. When declaring f1 pic 9(5).99 is the result <f1>00042.00</f1>. The decimals is ok now but I do not want the leading zeroes. When declaring f1 pic z(4)9.99 is the result <f1> 42.00</f1>. Now are leading zeroes and decimals ok. But I do not want leading spaces. How can I have a result like <f1>42.00</f1>? It should be max 5 numbers before the decimal point and two after. It should be numeric. Regards Christina #netexpress#COBOL#XML
I am trying to pass an argument to my AcuToWeb probram using the following link: 127.0.0.1:3000/ I am sending out hundreds of emails and I have an UNSUBSCRIBE program that I want to launch if the email recipient so desires. The program launches OK with the right alias, but the specified CHAINING argument has spaces in it. I have it running with debug and can see nothing in the field Also, I tried ACCEPT WS-COMMAND-LINE FROM COMMAND-LINE. and nothing shows up in that either.#passargumentstoAcuToWeb#acutoweb#10.4.1
If you are activating licenses generated and issued by Micro Focus after January 2021, please download and use the NEW activator. Full article: https://portal.microfocus.com/s/article/KM000004829#SupportTips/KnowledgeDocs#SupportTips/SupportTips/KnowledgeDocs
Can part of all of modifiable fields be copied ? On the image only the first line in blue can be copied.
Hi , Here's a question about how to create project for [EXEC SQL INCLUDE] Copy Books. I'm using Visual Cobol for Eclipse on Redhat . I know I can create a [copy book library] or [COBOL Project] for saving Copy Books only, and Other Projects that only contains COBOL Program can use these Copy Books by setting [Micro Focus -> Build Path -> Copy Books]. But I also have some Copy Books for [EXEC SQL INCLUDE] , and seems I cannot use them by this way. How to create a project for these [EXEC SQL INCLUDE Copy Books] ? Like the following Projects 1. Project1 ---- only contains [Main COBOL Program] 2. Project2 ---- only contains [Sub COBOL Program] 3. Project3 ---- only contains Copybooks(both for normal Call statement and EXEC SQL INCLUDE) ? the EXEC SQL is for Pro*COBOL Preprocessor for Oracle. Thank you.
Is it possible to launch a program via AcuToWeb and pass variables to the program via the URL? Example: the user is on a web page (HTML CSS, not AcuToWeb) that displays a list of departments. The user clicks on a department. We want to call a Cobol program to display or modify that department. We need to pass the department number to the program via the URL, e.g.: myhost:3000/&dept=ABC Thanks.
My company would like to know if such a tool is available. It would convert Dialog System screens to Windows Forms. I know that Micro Focus has worked on such a tool in the past and believe it has also been worked on by Micro Focus Partners. We have just two programmers converting a system with over 500 screensets. What is its status ?#VisualCOBOL
Hi all, We want to prevent users from running more than instance of the same app. In other words, only one instance of the app should be allowed at any given time. Is there a way to do it through compiler options or only at OS level? Thank you.
I'm using Visual Cobol For Eclipse on Redhat Linux. There's some [EXEC SQL ~] Code for Oracle in my project so I'm trying to compile them. I've checked [ Micro Focus > Build Configurations > COBOL > SQL Preprocessor] and selected [Pro*COBOL], but while compiling , it shows error [sh cannot find procob]. I think it because of I never installed [Oracle Pro* COBOL] on my Redhat Linux. So I downloaded instance of [Pro* COBOL] from here https://www.oracle.com/database/technologies/instant-client/precompiler-downloads.html#license-lightbox But I don't know how to install it, or maybe I have to install full Oracle Server? Please help, Thanks.
When trying to register for free trial of Visual Cobol PE for Visual Studio 2019, the web page returns this error: Error: Server was unable to process request. ---> 2 OLEDB Errors Occurred: 1. Cannot generate SSPI context 2. SQL Server Network Interfaces: The logon attempt failed Unable to complete free trial registration. Has been reported to MicroFocus, but any suggestions about alternatives or detours would be appreciated.#VisualStudio#VisualCOBOL
Does Visual Cobol 6.0 support .NET 5.0? I'm asking this because today we started a new project (WinUI3) with a Visual Cobol 6.0 project in the solution. Because of WinUI3 I have to set all projects to .NET 5.0. Everything builds successfully, except for the Visual Cobol project (which I also set to .NET 5.0). I get the error that the dll I want to build cannot be found in the \\ref directory. Is this a known error message? Or do I need to upgrade to a higher version of Visual Cobol?
A previously fully operational VS and VC 6.0 system is throwing this error. Windows 10 system was powered off for a few weeks. Hardware clock displaying the current year as 2013 had to be adjusted. Uninstalled and reinstalled Trial license, no improvement. How can this be resolved to use the remaining time on the VC 6.0 trial license? Thanks!
Hi , I'm trying to compile Visual Cobol and call them from Linux Shell , I'm new to Visual Cobol.... Here's 2 questions 1. I created a [COBOL Project] and Newed 3 COBOL Programs named Program1~3, and [Run As] - [COBOL Application]. but it only executed Program1. How can I execute Program2 or Program3 directly? Like I can run a Java Program if It's a Main[] Class ? 2. How to execute COBOL Program from Linux Shell ? Compile Java Programs made .class files and I can run it with Shell Command. What's the runable file for Visual Cobol ? I'm reading this document https://www.microfocus.com/documentation/visual-cobol/vc70/EclUNIX/GUID-8D6B7358-AC35-4DAF-A445-607D8D97EBB2.html and maybe you can point out which part should I read ? Thanks, waiting for your response.
Hi, Im encountering error during the build of my Visual Cobol Project. [cobollink] Linking (64-bit) Sample_Windows_0314.exe...[cobollink] Micro Focus COBOL - CBLLINK utility[cobollink] Version 7.0.0.87 (C) Copyright 1984-2021 Micro Focus or one of its affiliates.[cobollink] [cobollink] Microsoft (R) Incremental Linker Version 14.16.27045.0[cobollink] Copyright (C) Microsoft Corporation. All rights reserved.[cobollink] [cobollink] Program1.obj [cobollink] cbllds00001520.obj [cobollink] LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'[cobollink] Link complete with errors[cobollink]#VisualCOBOLEclipse
Can I extract in a program the following: "C:\\Program Files\\Micro Focus\\extend 10.4.1\\AcuGT\\bin\\wrun32.exe" And if I update to a new version will it automatically get the new version?
Hi, I am working on a POC for evaluating the Micofocus Visual Cobol converting from RM COBOL. While compiling the Program in Micro focus Visual Cobol environment I am getting the below error I did change the below in the setting but didnt resolve the issue Please advise how to proceed further #VisualCOBOL
Hi , I already installed [Visual Cobol for Eclipse on Redhat] and made my license like the this But I never received any [License File] or [Authorization code], Could you please help me get any of them to start a Free Trail ? Thanks
Hello, I need to make a program that runs in the background. The goal is to have a program running that, from time to time, will search a database to download new information if it exists. What will be the best way to do it? Best regards Alberto Ferraz
Hi, I have to do one more integration between my application and a TCP/IP controller. The supplier just sent me the code with the programming of the features in C#, code that I already partially converted to Cobol. Now my question is how and what do I call these features (for example the OPEN and CLOSE functions). I type below a part of the code in C# that was sent to me.using System;using System.Collections;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;namespace NuxIOAPI2{ public class ANuxIOII : NuxIOBase { protected int nRandomtemp; protected Socket m_clientSocket; //UDP protected AsyncCallback m_pfnCallBack; protected IAsyncResult m_result; protected ArrayList _messages = new ArrayList(); protected IPEndPoint _ipEndpoint; private class SocketPacket { public System.Net.Sockets.Socket thisSocket; public byte[] dataBuffer = new byte[1024]; } public static bool WriteErrorLog(string strText) { System.Diagnostics.Trace.WriteLine(strText); string
When i execute a Post with one entry in an array, I get a 415 error (Unsupported Media). When I execute a Post with one entry but not part of an array, it works fine. When I post either of them on the destination site, they both work fine. Is it possible that something in the dll is not quite right with regard to Posts of arrays? The JSON in question is [{"email":"default.eml.address@defaulteml.com","first_name":"WALTER","last_name":"M","company":"905 AUTO","street_1":"1160 CRESTLAWN DR UNIT#10","street_2":"SUITE 2008","city":"MISSISSUAGA","state":"ON","zip":" ","country":"CA","country_iso2":"CA","phone":"416454-9026","notes":" ","tax_exempt_category":"N","customer_groupid":0,
Dear all, We just converted our zOS cobol version 4 into Micro Focus COBOL V6.0 revision 000 on Linux. the XML PARSE won't accept empty attributes. Do we need to test for xml-text length, or is there a setting to tell the parser to ignore empty attributes? Thanks James
Dear all, We just converted our zOS cobol version 4 into Micro Focus COBOL V6.0 revision 000 on Linux. the XML PARSE won't accept empty attributes. Do we need to test for xml-text length, or is there a setting to tell the parser to ignore empty attributes? Thanks James
IBM Terminals have an "Exit field key". This key will do the following; 1) Erase the field from the cursor position to the end of the field 2) Tab to the next field My question is; Can this functionality be implimented using the ADIS configuration utility and can said functionality be assigned to a key of my choice? I am using Visual Cobol under WINDOWS Thanks in advance for any help#exitfield#VisualCOBOL#adis
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.