Dear Sir,<br><br>Good morning/after noon. I need your valuable help, sir.<br><br>We migrated from Sco OpenServer 5.0 and Informix 7.20 to Sco Open Server 6.0 and Informix 7.32. When we compile programs with Window declaration, it can not execute but terminates the application. We have checked the terminal type which is, at386-ie. When we made changes to my .profile i.e.<br>eval `tset -m at386-ie:at386-ie -m vt100:vt100 -m ansi:${TERM:-ansi} -m :\?${TERM:-ansi} -e -r -s -Q` the initial setting being:<br><br>eval `tset -m scoansi:${TERM:-scoansi} -m :\?${TERM:-scoansi} -r -s -Q`<br><br>All these do not seem to bear expected results. Because we expect a menu like this:<br>+---------------------------------------------------------------------+<br>¦PPSystem:&nbsp;&nbsp; Payroll&nbsp; peRsonnel&nbsp; SDF&nbsp; Quit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ¦<br>¦Select Payroll System   
 Functions&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ¦<br>+---------------------------------------------------------------------+<br>Which is not coming.<br>&nbsp;<br>In the <span style="font-weight: bold;">/etc</span>, the <span style="font-weight: bold;">ttytpe</span> entry have the following entries:<br><span style="font-weight: bold;">at386-ie console</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie syscon</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie systty</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty01</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty02</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty03</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty04</span><br
 style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty05</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty06</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty07</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty08</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty09</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty10</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty11</span><br style="font-weight: bold;"><span style="font-weight: bold;">at386-ie tty12</span><br style="font-weight: bold;"><span style="font-weight: bold;">unknown&nbsp; tty1a</span><br style="font-weight: bold;"><span style="font-weight: bold;">unknown&nbsp; tty2a</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp0</span><br style="font-weight: bold;"><span
 style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp1</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp2</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp3</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp4</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp5</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp6</span><br style="font-weight: bold;"><span style="font-weight: bold;">dialup&nbsp;&nbsp; ttyp7</span><br style="font-weight: bold;"><br>The following program runs and executes:<br><br><span style="font-weight: bold;">DATABASE  "/srs-prps/ppsys/phaseI/ppdb"</span><br style="font-weight: bold;"><span style="font-weight: bold;">MAIN</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEFINE ans  
 CHAR(1)</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEFINE pline INTEGER</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEFINE flag CHAR(1),</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w_authorized&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SMALLINT,</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w_userid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LIKE userrec.userid</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LET pline = 7</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ### OPTIONS PROMPT LINE pline</span><br
 style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHILE pline &lt;&gt; 10</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ###&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPEN WINDOW wdw AT 4,6 WITH 7 ROWS, 60 COLUMNS ATTRIBUTE (BORDER)</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ###&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DISPLAY "Rows = 7, PROMPT LINE is set to ", pline at 2,  6</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ###&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROMPT "123456789012345678901234567890abcdef" FOR CHAR ans</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ###&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLOSE WINDOW wdw</span><br style="font-weight: bold;"><span style="font-weight:
 bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LET pline = pline + 1</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; display " loop&nbsp; ", pline</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; ###&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPTIONS PROMPT LINE pline</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END WHILE</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp; LET w_userid = FGL_GETENV("LOGNAME")</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp; SELECT TRUE</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; INTO w_authorized</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; FROM userrec</span><br
 style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp; WHERE userid = w_userid</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp; ###&nbsp; DISPLAY "Rows = 7, PROMPT LINE is set to ", pline&nbsp; at 2, 6</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; display "Reached Here "</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; display pline</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; display w_userid</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; sleep  6</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; END MAIN</span><br style="font-weight: bold;"><br>But when the comments are removed, it crushes and dumps. When we run run on the server itself we got <span style="font-weight: bold;">error -1135</span>.&nbsp; We tried to run this
   :<br><br>&nbsp;<span style="font-weight: bold;">case "$1" in&nbsp; &nbsp;</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ansi)</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # change console term type</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defadm coterm TERM=ansi</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -e 's/^at386-ie/ansi/' &lt; /etc/ttytype &gt; /etc/ttytype.$$</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp /etc/ttytype.$$ /etc/ttytype</span><br style="font-weight: bold;"><span style="font-weight:
 bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f /etc/ttytype.$$</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # change console font</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defadm cofont  COFONT=pc850</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # remap function keys</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ -f /usr/lib/keyboard/strings.d/at386-ie ] || \</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp  
 /usr/lib/keyboard/strings /usr/lib/keyboard/strings.d/at386-ie</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp -f /usr/lib/keyboard/strings.d/ansi /usr/lib/keyboard/strings</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp; esac</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp; /sbin/loadfont</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp; mapstr</span><br>But this did'nt seem to work. It came up with :<br><br>UX:pcfont: ERROR: pcfont can only be run from a virtual terminal<br>UX:pcfont: ERROR: on a graphics workstation<br>mapstr: cannot put key strings: Invalid argument<br><br>I
 renamed the termcap in "/etc/termcap" and "/u/informix/etc/termcap" and copied these files from Sco Openserver 5. Since I am not quite competent to handle these files, I did not want to take chances and mess up.<br><br>When I compiled, using our terminal emulator, "EWAN", the program exited and terminated the application. I went and logged on the server and re-compiled and run the program and it displayed the following:<br><br><span style="font-weight: bold;">Program Stopped at "Wintest.4gl", line 24</span><br style="font-weight: bold;"><span style="font-weight: bold;">which is:</span><br style="font-weight: bold;"><span style="font-weight: bold;">DISPLAY "Rows = 7, PROMPT LINE is set to ", pline&nbsp; at 5, 3</span><br style="font-weight: bold;"><span style="font-weight: bold;">error number -1135</span><br style="font-weight: bold;"><span style="font-weight: bold;">The row or column number in DISPLAY AT exceeds the limits of your terminal</span><br><br>What I noticed  
 though, is that there was no core dump this time as was the case previously.<br><br>Other than the termcap, we have the following settings:<br>Internal Codeset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console Codeset<br>ISO8859-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IBM850<br><br>I wonder if the font type and size would be an issue. If I have to make changes to the termcap, what are these changes ? I have looked at the code, I can't easily work my way around.<br><br><br>What would be the correct console terminal settings for our  version or could it be something else ?<br><br><br>We need your help. Thanking you in advance.<br><br><br>Mwango<p>&#32;



      <hr size=1>You rock. That's why Blockbuster's offering you <a href="http://us.rd.yahoo.com/evt=47523/*http://tc.deals.yahoo.com/tc/blockbuster/text5.com">one month of Blockbuster Total Access</a>, No Cost.