Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: How can I assign a file name when printing to Adobe Acrobat PDF Writer? Resolution: Define the name of the file to print in the SELECT statement as ACROBAT. In the Windows Runtime configuration file, (runcobol.cfg), define the new device: DEFINE-DEVICE DEVICE=ACROBAT PATH=" Adobe PDF". In the program, use the "P$SetDocumentName" and assign a name that is incremented each time you print. Disable the property for the printer that asks for the name of the file to print. The attached example uses a free PDF file creator : Cute PDF Attachments: pdf.zip Old KB# 4685
Problem: How can I convert a 6 digit date to an 8 digit date? Resolution: Please see the attached Cobol program sample code. Attachments: cnvtdate.cbl Old KB# 4684
Problem: Is the Runtime CLUSTER aware? Resolution: RM/COBOL is not coded to any specific hardware platform or operating system. Therefore, there are no real optimizations for clustered or multiprocessor computing environments. Both RM/COBOL and InfoExpress are coded as single-threaded processes. Any parallelism that exists in the code would have to be extracted through the operating system and/or hardware of the machine. Even then, InfoExpress would be faster running on one server, with a sufficiently fast CPU and I/O subsystem, than using NFS. InfoExpress's strength is in it's ability to manage files that are being accessed by many concurrent users. RM/COBOL does not handle any of the locking process, but asks the operating system for a lock to occur and let's the operating system handle the actual locking of the file. Unfortunately, this means we are unable to optimize the locking mechanism as it is out of our control. Old
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: How do I fix a "duplicate presentation sequence" error? Resolution: Chances are this error is coming from very old version of Relativity, since this problem was fixed in version 4.2. However, the cause may actually be in the catalog. If so, you will need to use the attached utility to fix it. If you are running an earlier version than 4.2 and still get this error after trying the utility, then you will need upgrade to the latest version of Relativity. To fix the catalog with the attached utility, follow these steps: 1. Close the datasource completely if it is open under the Relativity Designer or other ODBC access tool. 2. Double click on the reldbfix.exe icon. 3. Select the datasource containing the tables that generate the "Duplicate Presentation Sequence" error message. 4. Select "Repair sequence numbers" from the list of available actions. 5. Press the OK button. 6. Enter login information for the catalog. &
Problem: How can I minimize record locking issues? Resolution: Please see the attached zip file for a procedure and supporting example program. Attachments: RecordLocking.zip Old KB# 4688
Problem: How can you change the columns and rows for the runtime display? Resolution: You can use a configuration file and setup a TERM-ATTR configuration record and define the COLUMNS and ROWS which will be displayed on the terminal screen. A sample configuration file is in the installation folder, called WINDOWS.CFG. Old KB# 4660
Problem: How can I reindex the output from RECOVER2? Resolution: Please see the attached source code sample. Attachments: reindex.cbl Old KB# 4667
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: What does a 93, 02 error mean when running recover1? Resolution: When running recover1, seeing a 93,02 error means that another user has the file open. You can copy the file to another name or location and then run recover1 on the copy, but you cannot run recover1 while it is being used by another program. Old KB# 4670
Problem: How can I use JDBC with Relativity on Windows XP? Resolution: The JDBC client application needs to communicate with a server, so you must be running Relativity Data Server, not Relativity Data Manager, on Windows XP. JDBC clients have no mechanism to connect to Relativity Data Manager other than the use of a JDBC-to-ODBC bridge, which is not recommended. Old KB# 4645
Problem: To whom should I direct questions about Cobol-RPC? Resolution: While Liant does support Cobol-RPC that is purchased through us, England Technical Services (ETS) provides direct support for the product/versions purchased from them, or through their distributors. Old KB# 4671
Problem: If you encounter an issue with the Relativity Data Client, Data Server, or, Data Manager, you can obtain additional information about the failure by enabling a Microsoft Windows ODBC trace. Resolution: You can enable the Microsoft Windows ODBC tracing facility with the following: 1. Go to the Windows control panel. 2. Double-click on Administrative Tools. 3. Double-click on Data Sources(ODBC). If this is a 32-bit product running on 64-bit Windows, you will need to use the 32-bit ODBC Administrator (C:\\Windows\\SysWOW64\\odbcad32.exe). 4. Double-click on the Tracing tab. 5. In the Log File Path, choose where you want the log file to be created. 6. When you want to begin logging, click the button labeled: "Start Tracing Now" You should enable tracing right before causing the error to occur. **After the error message has occurred, turn off tracing to reduce overhead.
Problem: How can I fix a slowly query problem on Linux ES4 (CentOS 4)? Resolution: There is a known problem with version 11 (and previous versions). However, there is a service pack available on ftp.liant.com. Here are the instructions to install it: 1) ftp ftp.liant.com 2) Login with anonymous, using your email address as the password. 3) cd pub/rel/outgoing 4) binary 5) get reldbsrv1100SP2LNX.zip 6) bye 7) Unzip reldbsrv1100SP2LNX.zip. The password is '30Nov07'. Extract the contained file reldbsrv1100SP2LNX.tar. 8) Binary ftp reldbsrv1100SP2LNX.tar to the RelRM11.00 on the machine running the Data Server. 9) Login as root to the machine running the Data Server. 10) Change directory to the RelRM11.00 directory. 11) mkdir save 12) mv reldbsrv save 13) mv reldbsrv.rm save 14) mv relfm_rm.o save 15) tar xvf reldbsrv1100SP2LNX.tar 16) ln reldbsrv.rm reldbsrv 17) ./STOP 18) If the Dat
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: 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: How can I fix 30, 64 errors on my Windows systems? Resolution: A 30, 64 error is an Microsoft Windows error. According to the Microsoft, it stands for "ERROR_NETNAME_DELETED" and means: "The specified network name is no longer available." Here are some suggestions that might help. 1. Turn off opportunistic locking on the data Server. In the SupportTools folder execute the "suptool1.exe rmccheck" from a command prompt. You can also execute "suptool1 contents" for a complete list of the Window tools available. 2. Turn off auto disconnect. See the following Microsoft Knowledge Base article: http://support.microsoft.com/default.aspx?scid=kb;en-us;138365 3. Update network card drivers to the latest version. 4. Read the following Microsoft Knowledge Base article on troubleshooting network problems: http://support.microsoft.com/default.aspx?scid=kb;[LN];325487 5. Some customers who have experienced 30,64 errors have been
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: How does the Dialog export command help me as a developer? Resolution: The export command allows a developer to dump every detail about a dialog screenset. This both helps with debugging and also re-coding. Alt/F10 brings up the export option where a filename.txt file can be designated for output. Pressing the SPACE bar allows you to toggle which components are selected Components Screenset Dets Data Block Error Messages Validations Global Dialog Panels This is followed by a list of panels which can be de-selected by use of SPACE. For debugging, one is usually only interested in a subset of panels. The resultant output is a text file containing every detail of the selected components. This is part of the Global Dialog setion. GLOBAL DIALOG CASE-SENSITIVITY ON EK F1 [RETC ] &nb
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: Customer has an IBM AIX machine with MQ Series. Request for help, linking MQ Series for AIX with Server Express. Resolution: Kb article 17817 talks about creating stand-alone programs and shared objects which include the MQ libraries. With a little adaptation it is possible to build an RTS that includes MQ support. The way to do this is as follows: 1. Create an 'export' file to make the MQ series entry point visible. This should include all of the MQ entry points used by your application. Example: echo "MQCONN" >mq.exp echo "MQOPEN" >> mq.exp echo "MQCLOSE" >> mq.exp echo "MQGET" >> mq.exp echo "MQCMIT" >> mq.exp echo "MQPUT" >> mq.exp echo "MQDISC" >> mq.exp 2. Create the run-time using the following cob command: cob -xto newrts -e"" -Q -bE:mq.exp -lmqmcb_r
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.