VERIFIED SOLUTION i

Resolve error: Can't find entry for 'aixterm' in '/cs/g1/acu/g1rts/etc/a_termcap' error when running installdb for MailStream Plus or Code 1 Plus

Products affected:  MailStream Plus™, Code 1 Plus
Operating System:  AIX Solaris

Database: USPS Reference files, but could be any database

 

Issue


Can't find entry for 'aixterm' in '/cs/g1/acu/g1rts/etc/a_termcap' error when running installdb to install a database using MailStream Plus or Code 1 Plus.

Cause

When attempting to install a database and running installdb this error happens:
Can't find entry for 'aixterm' in '/cs/g1/acu/g1rts/etc/a_termcap'

The path to the 'a_termcap' file cannot be found is the issue. 

Resolution

UPDATED: August 28, 2017
Of course, "aixterm" could be different depending on the type of terminal the user has.  The path to the a_termcap file will also be different, since not many users have their runtime system installed to /cs/g1/acu.
 
To fix this, at a very high level, you run a command and paste some text in a file.  
 
The first step is to run a command to get information about the terminal type.  That command (at least on AIX and Solaris) is 'infocmp'.  Its syntax is 'infocmp -C <terminal-type>'.  So, for this example, type:
 
infocmp -C aixterm
 
This command will produce some output text.  The contents may vary depending on the system and terminal type being questioned.  For this example, you receive the following output:
 
#       Reconstructed via infocmp from file: /usr/share/lib/terminfo/a/aixterm
aixterm|IBM Aixterm Terminal Emulator:\
        :am:bw:es:hs:ms:xo:bs:\
        :co#80:li#25:kn#5:\
        :AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
        :SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=\E(B:al=\E[L:\
        :as=\E(0:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:\
        :cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:ds=\E[?E:ei=\E[4l:\
        :fs=\E[?F:ho=\E[H:im=\E[4h:is=\Ec:k1=\E[001q:\
        :k2=\E[002q:k3=\E[003q:k4=\E[004q:k5=\E[005q:\
        :k6=\E[006q:k7=\E[007q:k8=\E[008q:k9=\E[009q:kb=\b:\
        :kd=\E[B:kh=\E[H:kl=\E[D:ko=\t:kr=\E[C:ku=\E[A:\
        :nd=\E[C:r2=\Ec:se=\E[m:so=\E[7m:ts=\E[?%dT:ue=\E[m:\
        :up=\E[A:us=\E[4m:ko=nd,up,dc,ho,ei:


What you should do now is copy this text as we now need to go paste it in a file.  This would be the file given by $G1RTS/etc/a_termcap, where $G1RTS is the full path to the user's ACUCOBOL-GT runtime system.  Before you do anything else, make a copy of the existing a_termcap file, just in case.  All you need to do now is open the a_termcap file in vi (or whatever editor you prefer) and scroll all the way to the bottom.  At the end of the file, go into "insert" mode and paste the text you just copied.  Once you've pasted the text, save the file and try to load a database,  run the IVP, whatever you were trying to do when you got the error.