Question: The ASSIGN TO name in my SELECT statement is a variable. How can I set iscobol.file.index.FileName in the properties file when the file name is determined by the program at run time? Answer: The solution is to set the iscobol.file... Read More
isCOBOL General
isCOBOL supports a library routine named "C$WRITELOG". This routine will add custom information to an isCOBOL log file. When running with the configuration iscobol.tracelevel set to a value greater than 0, the parameter that is sent to C$WRITELOG... Read More
There are many JavaBean graphical controls available that you can include in a COBOL screen section. For example, ComponentSource has a section devoted to Java components, at http://www.componentsource.com/features/java-components/index.html. ... Read More
Question: The icon in the upper left corner of the Window is a blue circle containing the letters "is". How can I replace this with my own icon? Answer: If you want to display the Java icon instead of the isCOBOL icon, you can set iscobol.gui... Read More
Question: Suppose that isCOBOL does not support a particular C$ library routine, such as C$GETPID, and I want to write my own so I won't need to change all of my existing calls. How do I do that? Answer: First, let us know which library... Read More
There are two library routines that allow to retrieve this information. 1. C$CHDIR called using a blank data-item initialize curr-dir.|curr-dir pic x(256). call "C$CHDIR" using curr-dir. display "Current directory: " curr-dir. ... Read More
Usually to replace a text in a string you use the "inspect replacing" statement. But with this kind of approach the original text and the new text must have the same length. To avoid this problem you can use the "C$REPLACE_ALL" routine. This... Read More
C$REDIRECT is used to assign a different file I/O handler to a file. There are several options to do the same in isCOBOL. In version 2022R2 and later, you can write a hook program using this configuration to change the file handler class in the hook... Read More
Question: My program displays a menu and I can press down-arrow 8 times and sit there and watch while the menu item selection moves down to catch up. I want to profile my program to see what operations are accounting for the slow user interface... Read More
Question: I got the following compiler warning. Is there any equivalent for the COPY RESOURCE functionality? --W: Directive ignored: COPY RESOURCE; file = smSWLOGON.CO, line = 1783, col Answer: Prior to version 2022R1, the isCOBOL... Read More