Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Trying to follow the Tutorial for BIS with Extend 9.1.1; sample tutorial1.srf is installed in localhost/acuxbis/samples/tutorial1 - using SoapUI to attempt to run the tutorial. After choosing "New SoapUI project, and entering the path to the tutorial1.srf file, get the following error: Had this problem in Newark and Tom showed me how to get around it, but if I took notes I've misplaced them.
Problem: BMSCH1066S 11 syntax errors found, parsing terminated at line 223 Resolution: If the DFHMDF labels exceed 7 characters, the 'Allow Long Macro Names' option must be specified: - right click on the *.bms member in the project window - select 'Build Settings' - select the 'BMS Advanced' tab - tick the box for 'Allow long macro label names' - Close the 'Build Settings' dialog - recompile Old KB# 1407
Is there any way I can tell what type of open was used to access a file? ie: was it opened input/output or i-o. Thanks
Created On: 20 December 2012 Problem: Does WIN$VERSION work on newest Microsoft platforms? What are the values returned? Resolution: The values returned by a WIN$VERSION executed using ACUCOBOL Runtime 9.1.2.1 are: for Windows 8: WIN-MAJOR-VERSION = 6WIN-MINOR-VERSION = 2WIN-PLATFORM = 3WIN-WORDSIZE = 3WIN-BUILDNUMBER = 9200 WIN-CSDVERSION =WIN-SERVICEPACK-MAJOR = 0WIN-SERVICEPACK-MINOR = 0 WIN-SUITEMASK = 0256 WIN-PRODUCTTYPE = 1 for Windows Server 2012: WIN-MAJOR-VERSION = 6WIN-MINOR-VERSION = 2WIN-PLATFORM = 3WIN-WORDSIZE = 3WIN-BUILDNUMBER = 9200 WIN-CSDVERSION =WIN-SERVICEPACK-MAJOR = 0WIN-SERVICEPACK-MINOR = 0 WIN-SUITEMASK = 0272WIN-PRODUCTTYPE = 3 The following images show the same values in a graphical way.
Server Express is the name of our Unix based COBOL product. Server Express contains both a compiler and a runtime environment. Server for COBOL and Application Server for Server Express are two different names for the same product - our runtime only version of our Unix based COBOL (compiler not included). Our product names also include a version number and a wrappack number. The version number is the major release and the wrappacks are minor updates. Together, this is what makes up our base product. Hotfixes are bug fixes and code changes to accomodate clients. These get applied on top of a base product. Hotfixes are accumulated and rolled up into new wrappacks. Hopefully, this explanation will help you to see that a product like Server Express version 5.1 wrappack 8 is a completely self contained COBOL product. It can be installed on your system all by itself. . Based on Support Incident 2642472.
Hi all how is it possible to license an acucobol program? To be more detailed, I want to intall the application (it's stand-alone) in a specific number of PCs. Maybe by capturing the mac-address? Thanks
We are looking at installing net express on our citrix server. Is anyone aware of a white paper or any document which discusses steps to install/configure net express and possible isues we may run into? Is it even a good idea to do so? Thanks, Sharif.
[Migrated content. Thread originally posted on 19 August 2011]We are looking at the possibility of upgrading from Extend 9 to Visual Cobol. One of the questions I asked about compatibility was if I could take a very basic Acucobol batch processing program and simply recompile as is in Visual Cobol, but was told I could not, I would have to make amendments. If anyone on the forum has been through the exercise of converting from Extend to to Visual Cobol, I would be grateful to read your comments on the complexity (or ease) of the exercise. Also is an extensive (as against basic) knowledge of .NET required to fully utilize the advantages of Visual Cobol?
I want to create a new screen in NetExpress, but I have one that is very similar and I really want to avoid starting from scratch. Is there a way to copy this screen and reuse most of it? In the past, I have tried copying and renaming the gs file, but I could never get rid of some of the 'old' info. For example, version number.#copyscreen
I called a native COBOL program in a junit JVM COBOL.(CALL "SS2401" USING SS2401-IN)But when I run the JVM COBOL in the command line,there is a error.[Called program file not found in drive/directory (173)]I already set the path of native COBOL up in the $COBPATH,$PATH and $CLASSPATH and runned the cobsetenv script to set up my environment.And in the path of native COBOL's folder ,there are SS2401.so and SS2401.o files. Thanks! **********************************************************************[root@rhcs32 bin]# java org.junit.runner.JUnitCore junit.SS2401_testJUnit version 4.8.2.E.ETime: 0.157There were 2 failures:1) test1(junit.SS2401_test)com.microfocus.cobol.program.COBOLProgramNotFound: Called program file not found in drive/directory (173) [SS2401] at com.microfocus.cobol.program.Control.callReturningObject(Unknown Source) at com.microfocus.cobol.program.Control.call(Unknown Source) at junit.SS2401_test.test1(SS2401_test.cbl:153) at sun.reflect.NativeMethodAccessorImpl.invoke0
Build JVM COBOL by ant I had a problem when I build a JVM COBOL(JUnit test) by ant(ant -lib $COBDIR/lib/mfant.jar -f .cobolBuild).**************************************************** [cobol] [cobol] Compiling SUSJ2401_test.cbl... [cobol] ** COBCH1561S JVM support not found: Possibly the type info helper classes were not on the classpath : /home/admin/workspace/Test_RXSub/src/junit/SUSJ2401_test.cbl(0,1,0) [cobol] cob32: error(s) in compilation: /home/admin/workspace/Test_RXSub/src/junit/SUSJ2401_test.cbl [cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16*****************************************************I set the CLASSPATH up in the environment(RHEL6.1) and the script(.cobolBuild). But the build still failed.Have I missed anything? Thank you! environmentexport CLASSPATH=.:/usr/java/jdk1.6.0_29/jre/lib/resources.jar:/usr/java/jdk1.6.0_29/jre/lib/rt.jar:/usr/java/jdk1.6.0_29/jre/lib/jsse.jar:/usr/java/jdk1.6.0_29/jre/lib/jce.jar:/usr/java/jdk1.6.0
Dear Experts, I'm writing this letter in order to enquiry about if Visual COBOL 2.1 for Eclipse on Windows provide CICS support. The COBOL applications used to run on IBM AIX TX Series. I would be most appreciative of any information you could give me in this regard. Best regards, Shulian Yang.
Customer asked if they could check online-help for Server Express through AIX command line. They used to run IBM COBOL on AIX server. They were able to get help while typing 'man' command, for example: 'man cob2'. I would be most appreciative of any information you could give me in this regard. Best regards, Shulian.
Build Pro*COBOL project by an Ant script in RedHat Linux 6.1 I uses an Ant script(.cobolBuild)to build my Pro*COBOL projects in RedHat Linux6.1(32bit). And when I build it in command line mode ,a problem [[cobollink] ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/crtbegin.o: No such file: No such file or directory]had occurred.In my environment the gcc's path is [/usr/lib/gcc/i686-redhat-linux/4.4.4].How can I change the path from [/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/] to [/usr/lib/gcc/i686-redhat-linux/4.4.4]? OS:RedHat Enterpise Linux V6 UPDATE1 IDE:Visual COBOL for RedHat 2.1 Thank you. Build Log:[admin@rhcs32 SampleMain]$ ant -lib $COBDIR/lib/mfant.jar -f .cobolBuildBuildfile: .cobolBuild [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found. os.init: os.init.windows: os.init.unix: init: init.New_Configuration: init.all.configurations: cobolbuild: [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. I
Hi We execute cobol programs through bash shell We use C programs to link and call Cobol programs(using cobinit,cobcall), After executing cobol applications on bash we are gettingreturn code as zero always. we have displayed the value of the return code just before the stop job in the cobol program and then displayed the return code,its showing correct values like 0001,0002..This problem occurs after installing latest Cygwin. In Cobol program we use STOP RUN RETURN CODE to populate the return codes. Please suggest Regards,Rashi#COBOLserver
Hi We execute cobol programs through bash shell We use C programs to link and call Cobol programs(using cobinit,cobcall), After executing cobol applications on bash we are gettingreturn code as zero always. we have displayed the value of the return code just before the stop job in the cobol program and then displayed the return code,its showing correct values like 0001,0002..This problem occurs after installing latest Cygwin. In Cobol program we use STOP RUN RETURN CODE to populate the return codes. Please suggest Regards,Rashi#COBOL
I wrote a COBOL program(use Oracle DB) by visual COBOL2.1.I can run it with the following directives.(p(cobsql) CSQLT=ORACLE8 MAKESYN VERBOSE KEEPCBL END-C p(cp) ENDP LITLINK). Then I want see the test coverage.So I add the keyword "TESTCOVER" to the directives.(p(cobsql) CSQLT=ORACLE8 MAKESYN VERBOSE KEEPCBL END-C p(cp) ENDP LITLINK TESTCOVER ). But it didn't work.Some errors had happend.If I wirte the directive like this ( p(cobsql) CSQLT=ORACLE8 MAKESYN VERBOSE KEEPCBL END-C p(cp) ENDP TESTCOVER ),then the coverage is ok and the DB connection is failed.#COBOL#VisualCOBOL#Eclipse
Problem: Is there a way to download web pages via HTTP from a COBOL program under UNIX ? Resolution: This can be done via calls to the libcurl library. Libcurl is a library for transfering data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, TFTP, GOPHER, TELNET, DICT, FILE and LDAP. Here is an example of calling libcurl functions: * * Demo showing how to make an http request from a COBOL program * using libcurl. * libcurl can be found at http://sourceforge.net/projects/curl/ * libcurl documentation can be found at http://curl.haxx.se/libcurl/ * * compile as follows: * cob -x urltest.cbl -L/usr/lib -lcurl -L/usr/ssl/li
Problem: An ACUCOBOL-GT program running on Linux gets the following error message: "Missing required termcap function 'cm' in entry for 'dumb'" Resolution: As the program is run via Thin Client, it's possible that the environments may be different between server users. Here's an easy way to determine the environment in which the runtime is running: Use a command-line instruction like this to determine the environment from the user's prompt: env > env-from-prompt.txt Then, run this code from within the runtime, using C$SYSTEM: MOVE "env > env-from-runtime.txt" TO WS-CMD-LINE CALL "C$SYSTEM" USING WS-CMD-LINE, CSYS-SHELL GIVING EXIT-STATUS At the end, compare the two .txt files. In this particular case, this comparison showed a mismatch between the two TERM environment variables: TERM=xterm(prompt environment) TERM=dumb(Thin client environment) To resolve the mismatch, it's necessary to run this command-line instruction
Created On: 25 October 2012 Problem: Executing an OPEN OUTPUT on a Vision file, file-status is returned with a value of 39,01. ACUCOBOL-GT documentation says that this status means: “Existing file conflicts with the COBOL description of the file. (open) Mismatch found but exact cause unknown (this status is returned by the host file system)”. Resolution: More specifically, this error may be caused by the structure of the Vision file that is going to be opened. If the indexed file is of version 3, the limitation for split keys is 6 segments maximum. Vision files version 3 that have more than 6 segments in a split key can generate error 39,01 when an OPEN is executed. This can be solved reducing the number of segments or upgrading the file system to Vision version 5, which presents a higher limit (16 segments maximum).
Problem: Is it possible to inquire height and width of a graphical screen in pixels? Resolution: The attached sample program shows how to achive the requested goal. http://community.microfocus.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-01-22/1856.SCREEN_2D00_SIZE.zip
I'd like to submit some articles for the Wiki but the Wiki pages on the site seem to be gone? My questions are: - Have they gone for good? - How would I go about submitting articles for the Wiki?
I am trying to fetch some data from an MySQL database but i get question marks (?????) insted of greek characters. Does anyone know why? * LIST-ROWS. MOVE "Display Data..." TO W-BX-STATUS DISPLAY SR10 EXEC SQL DECLARE COBCUR1 CURSOR FOR SELECT C_NUMBER, C_NAME, C_BIRTHDAY, C_INFO FROM EL_SXEDI WHERE C_NUMBER > 0 END-EXEC. EXEC SQL OPEN COBCUR1 END-EXEC. PERFORM 10 TIMES |UNTIL SQLCODE NOT EQUAL 0 EXEC SQL FETCH COBCUR1 INTO :C-RECORD END-EXEC IF SQLCODE NOT EQUAL 0 DISPLAY MESSAGE C-NUMBER, ": ", C-NAME, C-INFO END-IF END-PERFORM. EXEC SQL CLOSE COBCUR1 END-EXEC.
Problem In Visual COBOL 2.1 Hotfix 2 a new OpenESQL directive called sql(date=external) was added to allow for the date format to use when accessing an Oracle database to be set using the environment variable NLS_DATE_FORMAT. This was working fine in Hotfix 2 but after upgrading to Visual COBOL 2.1 Update 1 this no longer appears to be recognized and the following error occurs: COBCH0801 : Compiler directive SQL(DATE = EXTERNAL) is invalid or badly sequenced - all SQL statements ignored. What happened? Resolution Development has added a new directive called sql(OPTION=PROCOB) which needs to be set if the DATE=EXTERNAL directive is to be used. Actually when setting OPTION=PROCOB on it will automatically set the DATE=EXTERNAL behavior on so the DATE=EXTERNAL is no longer required.
Problem Customer is moving from Net Express 5.1 native code to Visual COBOL 2.1 managed .NET code and they need to know what database driver should they use in order to access their SQL Server database. Resolution: In Visual COBOL you can create three types of applications each as 32-bit or 64-bit. 1. Native code, which includes int/.gnt and native Windows .EXE/.DLL formats or native Unix/Linuz executables and .so files. 2. Managed code .NET on Windows, .EXE/.DLL assemblies which run under the .NET Framework Common Language Runtime system. 3. Managed code JVM on Windows or Unix/Linux, generates Java .class files that will run under the Java Virtual Machine platform. The type of database driver that you use depends upon the type of executable you are running. Native Code = ODBC DriversManaged .NET = ADO ProvidersManaged JVM = JDBC Drivers These are not interchangable so if you are moving from Native code under Net Express to managed .NET code under Visual COBOL then you must change
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.