Program gives error if %_row > 25

Hi;
TCC 11.00.50 Windows XP [Version 5.1.2600]
TCC Build 50 Windows XP Build 2600 Service Pack 3

I have a need to run some console programs I developed many years ago using MicroFocus Visual Object COBOL 1.0 under Windows 98SE, on an XP system.

I tried running these programs in TCC, but received the following error;

Execution error : file 'AGE'
error code: 114, pc=0, call=1, seg=0
(Signal 11)

AGE.EXE was a small test program, just to see if a simple program would work, since my bigger projects all give the same error.

I ran AGE.EXE in CMD, and had no problems. Ditto for my bigger projects, they worked fine in CMD.

Well, I did a CLS in TCC, and tried again. The program worked!

Why did it work this time, when it would not before?

Did a DIR, and I ran it again. Got the error again. ???

According to the %_rows variable, the number of rows in my copy of TCC is 53.

Turns out, after testing, that the console programs I developed using MicroFocus VOC will only run if %_row <= 25.

Running from %_row = 22 works. Running from %_row > 25 does not.

Now, there is nothing in my test program stating that output must be displayed on a specific row;

Code:
PROCEDURE DIVISION.
A000-MAIN.
    MOVE FUNCTION CURRENT-DATE to W01-CURRENT-DATE.
    MOVE W01-CURRENT-DATE(1:4) TO W02-DATE.
    DISPLAY "What year where you born? " WITH NO ADVANCING.
    ACCEPT WS-YEAR-BORN.
    SUBTRACT WS-YEAR-BORN FROM W02-CCYYNUM GIVING WS-RESULT.
    DISPLAY "Your are " WITH NO ADVANCING.
    IF WS-RESULT IS GREATER THAN 99 THEN
        DISPLAY WS-RESULT(2:4) WITH NO ADVANCING
    ELSE
        DISPLAY WS-RESULT(3:4) WITH NO ADVANCING
    END-IF.
    DISPLAY " years old.".
STOP RUN.
so the problem must be in how the MicroFocus VOC compiles the .EXE

I realize that if I run TCC outside of Take Command, I can change the number of rows for TCC to 25, but I am too used to the Tabbed Interface of Take Command.

This isn't a big deal, now that I know why it does it, as I can work around it, but just passing along in the event that others have a similar problem with older applications.

Joe
 
Similar threads
Thread starter Title Forum Replies Date
C Add link to ewriter help to program group... Support 3
H Behavior change re piping a string to a Java program Support 1
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
R How to? START program as top window? Support 2
M "less" program that works in TC 18 Support 12
MickeyF running program from script and (not) returning to script Support 12
C INSTALLED returnes same program multiple times Support 14
C Recommend a Print program Support 1
MickeyF running a program from cmdline versus in batch file Support 1
C tcmd.ini not loading from program dir? Support 5
Joe Caverly Determine if program started from command prompt Support 2
C WAD TCC: (Sys) C:\Program Files\JPSoft\TCMD17\tcc.exe is not a valid Win32 application. Support 6
C Win7 Program Data.... Support 2
M How to? Start a program on log on elevated abovenormal Support 5
MickeyF how to determine which program will execute a file Support 10
D New 64-bit install goes to Program Files x86 Support 3
M How is this program found? Support 9
A How to? Run a TCC command from external program Support 2
C "Program Files" .vs. "Program Files (x86)" Support 2
BobK "do you want to allow the following program to make changes to this computer" Support 3
M How to? Get the return code from an external program... Support 8
C start /wait /pgm "program name" ^ ketstack n/w Support 3
L File association: System cannot find the associated program Support 30
vefatica c:\program? Support 4
D Start program without waiting and redirect output Support 6
nikbackm Alias - launch external program - batch file Support 16
dcantor Program abort with tab bar Support 2
fpefpe escapes getting into program Support 10
M Invoking a DOS command within a C++ program Support 1
J 4NT Error when running 'system' from a program to execute a .BTM Support 3
C start/tab of a GUI program hangs TCMD Support 6
R @select inside alias gives different (insanely small) window Support 7
gworley rd (Remove Directory) gives interesting error: Support 2
H UNIQUE[] without parameters gives error Support 1
D ftps gives "Unable to build data connection" Support 5
vefatica UNTAR gives misleading messages Support 3
David McClelland TC10 - cdd /t gives invalid parameter Support 2
C Copy (sys) error Support 3
T Error: This page can’t be displayed Make sure the web address //ieframe.dll/dnserrordiagoff.htm# is correct. Support 8
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
samintz How to? Abort on error DO loop Support 10
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica ON ERROR terminates DO loop. Support 0
C Google intregration error Support 4
C FB intregration error Support 0
D How to? Skip removing directory (RMDIR) without error message Support 2
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
M Strange error messages from TCC in FTP copy Support 7

Similar threads