Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
I need to print a pdf file and my report from my COBOL program. I have made sure I can print from the command line and I put that command in the program and then use c$system. PRINT-TRIAL. string '"c:program files (x86)\\Adobe\\Reader 11.0\\reader' '\\acrord32.exe"' ' \\t ' '"e:\\source\\68barb\\pmreport.pdf"' delimited by size into command-ln end-string. &
Is there a way to use the COBOL File Handling routines with filenames that contain spaces? I want to use CBL_RENAME_FILE to rename a file from say "TEST-FILE.TXT" to "TEST FILE.TXT" i.e. I want the final file name to include a space. Is this possible - with this routine or in any other way? Many thanks,#CBL_COPY_FILEerror#netexpress
Problem: A simple compilation on an AIX machine causes an error: cob64 -C nolist -v -C LIST() tictac.cbl * Micro Focus Server Express V5.1 revision 000 Compiler * Copyright (C) Micro Focus IP Development Limited 1984-2015. * Accepted - verbose * Accepted - nolist * Accepted - LIST() * Compiling tictac.cbl 120 perform with test after * 11-S********************* ( 0)** ** Reserved word missing or incorrectly used CONTINUE COMPILING PROGRAM ? Yes/No/Zoom-all/zoom-This OK 136 end-perform. * 564-S***************  
Problem: $ su Password: sh lmfinstall Enter the directory name where you wish to install License Manager (Press Enter for default directory /usr/lib/mflmf) /usr/lib/mflmf does not exist do you wish to create it ? (y/n) y Empty database created ok Do you want only superuser to be able to access the License Admin System? (y/n) y It is recommended that you let license manager autostart at boot time Do you want license manager to be automatically started at boot time? (y/n) y LMF installation complete sh mflmcmd Corrupt database Attempting to restore from backup Run will terminate if unsuccessful Resolution: OCDS (Object COBOL Developer Suite) is a very old product and although ‘sh mflmcmd’ will work in most cases, sometimes it is necessary to use ‘mflmadm’ instead.. Therefore run mflmadm and install the license via the screen dialog tool.
Problem: Whilst trying to find out about the licenses being used currently within apptrack - it appears to not do anything when 7 Current Users is selected. How can you make this work? Resolution: There is an apptrack.log file in /var/mfaslmf This registers all licenses being used from apptrack Do the following to find out more what process is using a license: touch apptrack.log cd $COBDIR/aslmf ./apptrack 7 Current Users This will show the actual users and more importantly the process ID. Find out more regarding the process ID by using: ps –eaf | grep ‘process ID’
New to using Relativity and being told that there is no way to do a TOP command. How do the rest of you handle situations like this and also deal with temp files that grow to more than 4 times the size of the actual Visual Cobol data file? Any other helpful guidelines welcomed as we are trying to stop using a different ODBC application and stick with MicroFocus.#Relativity#top
I wish you could comment code not only by asterisks in column 7, but so from-to: * / This indicates where it is not considered code and .../ * ... This indicates that ends on neutral code This will avoid having to put asterisks in column 7 when there are many lines to comment. Thanks. #RMCOBOL
Problem When trying to debug into the Cobol SQL CLR stored procedure, you may get the errors below: 1. Get error "Unable to debug .NET code. Could not attach to SQL Server process on xxx". 2. The debugger just steps over the EXEC SQL CALL statement, you cannot step into the stored procedure. Resolution: For the first error, you need to run Visual Cobol for Visual Studio as administrator. For the second issue, please double check the following: 1. The Calling program's project property, debug tab, the Enable SQL Server debugging option is set. 2. In Visual Studio SQL Server Object Explorer, right click the SQL Server instance, and ensure that the Allow SQL/CLR Debugging option is checked. 3. If you have rebuilt the SQL Server Database Project, you need to re-Publish the stored procedure to SQL Server before starting debugging. Please check Tutorials: SQL Server COBOL Stored Procedures in our documentation for step by step procedure on how to work with Cobol
My program uses Dialog System to capture the conditions to make an Excel Worksheet. After finishing the first producto in Excel I start the Dialog again to see if the operator want to add other products, using the following COBOL instruction: MOVE "R-FIN" TO DS-PROCEDURE PERFORM CALL-DIALOG-SYSTEM. The R-FIN procedure is defined in the GLOBAL DIALOG as follows: R-FIN SHOW-WINDOW DBOX-FIN REFRESH-OBJECT DBOX-FIN SET-FOCUS EF-SIGUE Up to this moment it works perfectly, the Dialog Box “DBOX-FIN” is shown and the Entry Field apparently receives the focus and the content of the master field is displayed. But the focus is only apparent, because, although the field is highlighted in blue, anything I type does not appea
Problem: After upgrading to Acubench 10.0, the colors in the Code Editor become corrupted after making modifications to your preferences and saving them. Accessing the customization (Tools->Options->Code Editor->Format), the colors reported for "Keyword" or "String" don't match with the ones really used in the editor. Resolution: This is now fixed with ECN-WB945, released in next version 10.0.1. You must remove your personal preferences file after reinstalling a new version of AcuBench. This file is located in your personal APPDATA folder (for example, C:\\Users\\<yourname>\\AppData\\Roaming), in Micro Focus\\AcuBench, and is named AcuCOBOL.ini. #ACUCOBOL-GT#10.0#acubench
Problem: Acubench 10.0 generates code that may go beyond column 72, thus making the program not compilable. i.e.: the LAYOUT-MANAGER handle now has "VALUE NULL" at the end of the line. Resolution: This is now corrected in 10.0.1 by ECN-WB946. #ACUCOBOL-GT#10.0#acubench
hi, I have a jcl that allocate vsam, but the data file have only dat and don't create the IDX file. in Server Administration I have in Configuration Information [ES-Environment]ESP=D:\\ED\\progetti\\eclipse\\IF00\\SYSTEMMF_CHARSET=Aextfh=$ESP\\cfg\\extfh.cfg and in extfh.cfg file I have IDXFORMAT=8 (default!): [XFH-DEFAULT]FILEMAXSIZE=8IDXFORMAT=8BASENAME=ONRELDATBUF=65000SEQDATBUF=512000INDEXCOUNT=65000IDXDATBUF=65000STRIPSPACE=OFF when I run jcl that allocate vsam it store data only on phisical file with extension "DAT" instead on MFE its allocate data in DAT and IDX file. why?
I am involved in a project where I must parse dates from an XML document. The application uses RMCobol and XML Extensions to create/parse XML. The issue is the dates are in different formats within the received XML. I have no control over the incoming XML, nor can I ask the formatting to remain consistent. The integration partner sends the data as they send the data and it's up to us how to handle it. Here are 2 examples of the dates within the XML: <InvoiceDate>2014-08-01Z</InvoiceDate> <PayTermsString>20140818</PayT
In traditional COBOL, if a Menu program (or say "PROGA") CALLs a sub-program (or say "PROGB") and doesn't CANCEL it upon return, the next time it CALLs it, PROGB may have its variables in the state that they were in - left over from the earlier CALL, instead of being in their initial state (let's ignore the INITIAL key word for this discussion). My understanding is that most all the time this type of situation can result in hard-to-debug-and-maintain programs and that the general recommendation is to always follow a CALL with a CANCEL and design the subprograms accordingly (i.e., don't ever use this as a "feature"). OK, but what about Managed non-procedural programs (classes) using WinForms or WPF and such? These are not being CALLed; they are being INVOKEd, right? Is there an equivalent of a CANCEL that we should be doing after it returns to the INVOKEing program? Thanks
How can i create text file and are saved in utf-8 format?
Hi Chris, thanks for your previous replies re windows 10 and pc_print_file. We now have up to 100 users with the run-times installed on lots of machines so wondering how simple upgrading is? Do we just run a new run-time install exe for 2.3 on each machine on top of existing 2.2? Are their implications re. other things, licensing for example? Thanks, Linden
Is there some way we could get a copy of the VC 2.3 Release Notes (including Resolved Issues, New Features, etc.) PRIOR to downloading the entire VC 2.3 ??? ... for planning purposes and as an appetizer... :-)
Hi all, Many thanks for all the useful posts over the last while which let me pick up some great hints and tips. We ported our application from Net Express to Visual Cobol and made various changes to some programs that interface with Excel. I have been unable to figure out how to release Excel from memory in the Visual Cobol code though and would be very grateful if anyone can help. The earlier Net Express code let me release Excel by cycling through the used objects with invoke Worksheet "finalize" returning Worksheet and so on, but I am not sure what the equivalent is in Visual Cobol. Many thanks, John
I'm curious about the exact changes with Extend 10 required for compatibility with Windows 10. Installed Extend 9.1.2.1 on WIndows 10, and while Extend seems to work fine, several Windows 10 apps do not work, or do not work reliably (notable Calendar, Mail, and Edge). On a test box, we formatted and installed Win10 from scratch, and all apps seemed to work fine. After installing our application, including Extend 9.1.2.1 runtime, problems with apps recurred. Unfortunately, our installshield also installs Java and FOP, so it's not clear exactly what part of the install is causing issues with Windows 10 apps. Are there specific issues/problems with Extend 9.x which lead to the release of Extend 10, and if so, what are they? (Almost hoping that the app conflict is a known issue!). Thanks Tony
I am using Server Express 5.1.11 on Red Hat Linux. I have successfully configured and executed COBSQL with Pro*COBOL and the CP preprocessor. All of the copy files within the program are copied to the main program before passing it to Pro*COBOL as expected. However, copy files within the scope of an EXEC SQL - END-EXEC construct seem to be ignored. For example: EXEC SQL SELECT COPY "my_fields". INTO COPY "my_host_variables". FROM MT_TABLE END-EXEC. My expectation is that the contents of my_fields and my_host_variables would have been copied into the SQL statement by CP, but this did not happen. Any ideas? Is my expectation incorrect?#Pro*COBOLCOBSQLCP
We are migrating a native Windows application from Net Express 5.1. In it we use several of the file handling call-by-name library routines and we've hit a snag with the first program that uses one, specifically CBL_CHECK_FILE_EXIST. The scenario: User environment variable dd_CNV defined with a value of C:\\NEAS\\Files\\CNV. The COBOL source code is "CALL "CBL_CHECK_FILE_EXIST" USING JOIN-BUFFER, FILE-DETAILS." At the time of execution in both the Net Express 5.1 and Visual COBOL 2.2 IDEs the value JOIN-BUFFER is "CNV\\WYP46D01.228 ", and a file WYP46D01.228 exists in C:\\NEAS\\Files\\CNV. Net Express 5.1 works, returning zero in RETURN-CODE. Visual COBOL 2.2 gets a non-zero value in RETURN-CODE that translates to 9/13, RTS error/file not found. Do the file handling call-by-name library routines NOT do file mapping in Visual COBOL like they do in Net Express?
Below are instructions to enable remote debugging using a specific port: 1) Start the ViewNow X application 2) In Eclipse, choose the dropdown menu named ‘Run’ 3) Next, choose ‘Debug Configuration’ 4) Fill in the COBOL Project and the Remote Host 5) Check the box for ‘Specify the port on which the cobdebugremote process will listen…’ 6) For ‘cobdebugremote port’ enter the port number that you wish to use on the remote Unix system 7) In the box ‘Start Options’ enter (in caps): REMOTERDO 8) Click ‘Apply’ then ‘Run’ buttons
Hi, I am trying to get a C# app to call a Netexpress Cobol DLL. I have changed the dir in the C# to point at where the DLL is, but still when I run the C#, I and get the point that it calls the cobol, I get: Unable to load DLL 'C:\\MPIUADEV\\MPIUA\\DEV\\COBOL\\mbaprate.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) which I take to mean that the DLL can't be found. I also added C:\\MPIUADEV\\MPIUA\\DEV\\COBOL to the path. I am wondering if I created the DLL incorrectly.#load#DLL#C#c
Hi guys, I tried installing Visual COBOL (Visual COBOL for Visual Studio Personal Edition v2.2 0), but I get the following errors on install. Any idea what is going wrong? [179C:1C08][2015-10-29T10:47:44]i000: Registry value not found. Key = 'SOFTWARE\\JavaSoft\\Java Runtime Environment', Value = 'Java7FamilyVersion'[179C:1C08][2015-10-29T10:47:44]i000: Setting string variable 'Netfx35FullVersion' to value '1'[179C:1C08][2015-10-29T10:47:44]i000: Setting string variable 'Netfx4FullVersion' to value '4.5.50938'[179C:1C08][2015-10-29T10:47:44]i000: Registry key not found. Key = 'SOFTWARE\\Micro Focus\\Visual COBOL\\2.2'[179C:1C08][2015-10-29T10:47:44]i000: Registry key not found. Key = 'SOFTWARE\\Micro Focus\\Visual COBOL\\2.1'[179C:1C08][2015-10-29T10:47:44]i000: Registry key not found. Key = 'SOFTWARE\\Micro Focus\\Visual COBOL\\2.2'[179C:1C08][2015-10-29T10:47:44]i000: Registry key not found. Key = 'SOF
Hello! I have 2 problems with an event handler. 1: I am implementing the interface ICommand and Visual Stuido tells me that the interface member CanExecuteChanged or one of its overloads is not implemented. 2: I know how to write custom set and get methods for properties in cobol, in c# I can do the same for properties but also can I write custom add and remove methods for event handlers, but how can i achieve this in cobol? My C# code i want to translate to cobol code: class RelayCommand : ICommand { private readonly Action<object> _execute; private readonly Predicate<object> _canExecute; public RelayCommand(Action<object> execute) : this(execute, null) { } public RelayCommand(Action<object> execute, Predicate<object> canExecute) &n
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.