Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: How do I highlight / select all the text in an edit box automatically? Resolution: Simple, use... Call SendMessage Using Win-Return edit2-H Em-SetSel 0 -1. See the attached example. Attachments: 27236.zip Old KB# 4652
Problem: What can cause runtime error LOC 829 on UNIX/Linux systems? Resolution: This error occurs when the RMdaemonR or RMdaemonC is not able to start successfully, or dies for some unknown reason. Typically, a regular user is not able to execute the Runtime or the Compiler, but root can. This error can be caused by security monitoring software detecting the daemon doing a setuid 0 (so it can run as root) and killing it. In one reported instance, a third party security package called eTrust was in use. Since software initiated by a regular user gaining root privileges is considered a security issue, the monitor was killing the process silently. It needed to be modified to allow the daemon to proceed. Old KB# 4694
Problem: How do I resolve "Error invoking unauthorized copy... (Loc 508)" on Windows Vista, and above? Resolution: On Windows Vista, and above, the RM/COBOL runtime and compiler require that the Use Count service be installed and started in order to execute properly. If the Use Count service is not present, the runtime will terminate with the following messages: Error invoking unauthorized copy of runtime. Windows function error (Loc 508). On Windows systems, this problem usually occurs when the RM/COBOL files are copied to the affected system from another machine, or, when executing the RM/COBOL Runtime from a mapped network drive without first performing a network installation. If a full install onto the Windows machine or a "network" install (using a network file server) is done, then the installation process properly installs and starts the Use Count service and there is no problem. Please see the Solution on running the Use Count Service on Vist
Problem: How can I print on Custom Forms without depending on a particular printer? Resolution: Each printer starts printing at a different physical position on the paper. This can cause issues when using a Custom Form and different printers. The program must take the physical offset into account when you calculate the X/Y positions. There is a way for an RM/Cobol program to print to an X/Y Position and allow for this physical offset. First, use P$GetDeviceCapabilities to retrieve the physical offset value for the printer. Then use P$TextOut instead of the Cobol WRITE statement to print text. Attached is an example program. The P$GetDeviceCapabilities call returns values in pixels. You must convert those pixels to inches, if you prefer inches (you have a choice). The example program does the math in inches. There is another example program in the samples folder of the RM/Cobol Development system called PDEVICE.CBL. You can compile this and run it to see t
Problem: Do you have a Cobol program to count records in an index file? Resolution: The attached zip file contains a utility that allows you to get a record count for an index file. The utility is called RMRECX. An example COBOL program, TSTRMREC.CBL, is included that demonstrates the proper use of this utility. The index file must be closed in the run unit that calls RMRECX, because it has to open the file as a binary sequential file to get the number of records in it. A conflict occurs when the file is currently open as an index file. It can't open it both ways at the same time. When the index file is open in the run unit at the time RMRECX is called, the file manager has a physical file descriptor indicating it is an index file. Thus, the binary sequential open fails as an organization mismatch. If the file is not open, the file manager doesn't know that it is an index file and the open succeeds. In the attached RMRECX utility, the error status returned from t
Problem: How can I recover from "Lock file lock error 13: Permission denied"? Resolution: If you get an "unauthorized use of runtime error", or an Loc 801, 802, 804, 806, or 807 error on a UNIX/Linux system, run the command: rmucutil <serial number with use count > runtime details where <serial number with use count > is the registration number with the use count as displayed by the runtime banner. If this returns: "Lock file lock error 13: Permission denied", try deleting the lock file: 32-bit runtime: rm -rf /tmp/.RmCobolUC32 64-bit runtime: rm -rf /tmp/.RmCobolUC64 If you still get the error, try the following recommendations: Clear the RM/COBOL shared memory Check the license.vlt file permissions, and, ensure that all users/groups have read, and write, access. Reboot the affected system. #RMCOBOL#RMCobol#TipfromSupport
Problem: Are there any problems with using Windows Vista as a file server? Resolution: There is a problem when you try to use RM indexed files and Microsoft Vista as a file server: record locks do not function properly. The problem is a Microsoft defect and it is fixed with a Microsoft SP1 release for Vista. Since this is a Microsoft scheduled release, we have no date when it will be available. There appears to be at least four choices to get around this problem at the moment. We will include the information about the Microsoft hotfix and how to disable SMB2 in the registry, but the Vista SP1 is the safest route. There might be some risk in taking the hotfix and/or the registry modification. Solutions: Don't do Vista-Vista file sharing, or Wait for Vista SP1, or Apply the Microsoft hotfix, or Disable SMB2 in the registry. The following hotfix is available form Microsoft. "Access may stop responding when you open a remote database" ( http://suppor
Problem: How can I remove Data Manager DSNs? Resolution: If you've already removed the Relativity Data Manager from the system, and the MS ODBC Administrator refuses to delete the corresponding User DSNs because it can no longer find the driver, you can delete the entries from the registry manually: HKEY_CURRENT_USER\\Software\\ODBC\\ODBC.INI Old KB# 4656
Problem: Developing multi-threaded Java application that need to call COBOL programs, then we need the COP Framework. Where can we find the Java COP Jar file, COPClient.jar Best regards, Norton Resolution: The COP framework was never part of Server Express It was a Net Express feature only. 'What is the COP framework'? The COP framework is an add on to Net Express Service pack 1. We have full EJB support in Server Express to interoperate with java, not by using the COP framework. That was created as a temporary measure on Windows until incorporated Enterprise Server and it's EJB support . SX 4.0 and up have the full J2EE support. Since we have released Net Express 4.0 and Enterprise Server we recommend making use of the J2EE interoperability provided by those products. It fully supports the standards and provide an effective contained environment for COBOL to execu
Problem: Is there a place in a .int file where it shows the compiler directives used? Resolution: There is no direct way to retrieve directives from a .int file. If the .int was compiled with a listing output (.lst file) and the SETTINGS directive was used, the .lst file will contain the directives. The time stamps (ls -l) on the .lst and .int files will be identical or very close in time. That permits the user to infer the directive settings shown in the .lst file were the ones used to compile the .int. Example: cd cp $COBDIR/demo/tictac/tictac.cbl ./ cob -P tictac.cbl -C SETTINGS ls -l tictac.* -rw-r--r-- 1 username usergrp 8739 2006-08-09 15:05 tictac.cbl -rw-r--r-- 1 username usergrp 51968 2006-08-09 15:06 tictac.idy -rw-r--r-- 1 username usergrp 3840 2006-08-09 15:06 tictac.int -rw-r--r-- 1 username usergrp&n
Problem: Compiling a program and/or running cob -V from the command line, and getting an error similar to the following: cob32: invalid symbol __iob in sidefile /opt/cobol/lib/cobisym Resolution: Make certain your $PATH environment variable is set correctly. Old KB# 4549
Problem: A customer wanted to know how comptible .int code really was: for example, could he take an .int file compiled as 64-bit on net Express 5.0, and then run it on a UNIX box? Also, would this have to be a 64-bit UNIX system? Resolution: A 64-bit .int built on Net Express will run on a 32- or a 64-bit UNIX box. Old KB# 4560
Problem: When compiling an executable on SCO v6.0.0, with Server Express v4.0, the above error is displayed. Resolution: The full library name is libintl.so and is the library that provides Native Language Support. On SCO 6, it is found in /usr/gnu/lib, which when added to the PATH corrects the problem Old KB# 4492
Problem: Load error : file '$JAVA$CallVendorServices' error code: 198, pc=93, call=1, seg=0 198 Load failure Resolution: If your Environment Settings are correct, test this by trying to make a direct call to your Java application. You need to run this as a multithreaded application by using the cobjrun. Old KB# 4530
Problem: Cobol program's being animated using COBSW= A set will not start up in the animator, but will just execute. Resolution: This problem can be caused by the environment variable DISPLAY being set. When the DISPLAY environment variable is set the Server Express product will try to create a new X-Term window for the Animator screen and user interface. If the user is not using an X-Windows session, this operation fails and the Animator screen is never displayed. Ensure that the environment varaible DISPLAY is not set. If DISPLAY is set, unset and then animate. example: echo $DISPLAY DISPLAY="information" unset DISPLAY Old KB# 4516
Problem: When trying to run a Unix script that invokes a Cobol program, it runs fine when manually running it from the shell. So you are able to run the script as the user from a menu. However, when running the script from a cron as the same user it won't work - the error "could not obtain latest contract from popen(3C): No such process" appears. Resolution: The problem here was the "popen" error message seemed to be a generic error message. This particular program had "display" in it - running it in the cron caused the above "popen" error - when commented the displays out the error no longer appeared. It was identified as a Solaris error and they can provide a fix for this. Old KB# 4526
Problem: Release 4.0: Server Express install breaks with message libc not found on a Linux System. Resolution: Please ensure that you have the gcc component installed because gcc is not a standard Package for the most Linux Systems and must be installed separately. Old KB# 4559
Problem: This error has been encountered when running Server Express 4.0 SP2 on AIX 5.3 (64 bit) with Websphere Queue Manager 6.0.1.1. Load error : file 'MQCONN' error code: 173, pc=0, call=1, seg=0 173 Called program file not found in drive/directory Resolution: It is infact a problem with the Technology Level package 5300-04 for AIX 5.3 causing Informix 4GL and SQL products to fail. When you apply Technology Level package 5300-04 on the AIX® 5.3 operating system, 64-bit versions of IBM® Informix® 4GL (and SQL) 7.32 will no longer work. Example $ fglgo -V Could not load program fglgo: $ truss fglgo -V execve("/usr/informix/4gl7
Problem: Release 4.0: /usr/lib/libc unable to find socket.lib install error check disk space permissions and try again Resolution: If you get this message during the installation of Server Express 4, please make sure that the gcc is installed on your system. Old KB# 4550
Problem: Rebuild -f:c63d5 <file-name> returns the followin error: -f:c63d5 <file-name> ^ REBUILD aborted - Invalid option Resolution: This Rebuild validatation command is no longer valid. The correct sytax is: rebuild -f:c9 <file-name> The -f performs a full integrity cheeck on a file, display all possible information The -c Specifies the validation performed. You can select any combination of checks 1, 2 and 8 by adding the appropriate numbers together. (The more checks you perform, the longer the validation takes.) The default is 11. 1 Checks the data file structure and counts the number of records. 2 Checks the structure of the free space list (FSL). 8 Checks the index file structure. 256 Checks the data file structure and counts the number of records with the file open for sharing in another process. You cannot
Problem: A program, including the routine CBL_READ_SCR_CHATTRS, is generated using NetExpress and runs correctly on a Windows platform. However, when porting this application to a UNIX platform under Server Express, the routine no longer works in that it no longer reads the screen attributes (backgound colours) of the screen. Resolution: The problem can be solved by inserting CBL_SCR_SET_PC_ATTRIBUTES at the beginning of the program. Old KB# 4546
Problem: How can I get information about input and output files? Resolution: Rebuild -i <file-name> Displays information about the input and output files, including record lengths, file type and key structure. If you only want to see the information and do not want to perform any other operation, use the -n option instead. Old KB# 4554#COBOL#ServerExpress#netexpress#AcuCobol#RMCOBOL
Problem: A customer had a script called (say) ggg, and a program (say) ggg.cbl. The script was in a directory pointed at by PATH, and the program was in a directory pointed at by COBPATH. If he typed 'anim ggg', then Animator picked up the script, rather than the program. Why was this? Resolution: Animator can debug .int, .gnt, .so, executables, core files and running processes. So when you type anim nnn the animator will first check to see if 'nnn' is number and, if so, see if it can dynamically attach to a process with that pid. Next, it will search for exes, down $PATH. It that fails, it will search using the standard RTS rules (using $COBPATH and the program_search_order tunable, etc). Finally, it checks to see if it's been asked to debug a core file. In this case, as a script is an executable, it was be picked up first. The ideal solution is not to have s
Problem: How do you use the h2cpy utility to convert pstat.h to pstat.cpy Output is not aligned correctly with 64 bit application using the following command to create: h2cpy /usr/include/sys/pstat.h -I /usr/include -e lp64 h2cpy /usr/include/sys/pstat.h -I /usr/include -e ilp64 Resolution: The pstat_ functions is used to obtain system and process information. Create pstat.cpy with the following command: h2cpy /usr/include/sys/pstat.h -I /usr/include -D_PSTAT64 It will create pstat.cpy with the following: 01 pst-status is typedef. 02 pst-idx usage l-long. 02 pst-uid usage l-long. 02 pst-pid &n
Problem: I can't run the XML tutorial . Cob2xml command can't create files and displays errors about undefined functions . Resolution: Server Express 5.0 is validated with the version 7 of the C compiler . It is necessary to install this version. To verify the version : Login : root lslpp -L vac.C must display the line : vac.C 7.0.0.0 Old KB# 4562
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.