Problem:
Is there a way to tell whether the Server Express product is operating in 32 versus 64-bit mode?
Resolution:
There is a command named "cobmode" (all one word, lowercase) that will reveal the current bit mode (whether 32 or 64) in which Server Express is operating. This command resides in $COBDIR/bin, where the "cob" command resides, and should already be on a person's PATH environment variable, so if the "cob" command can be found, so can "cobmode".
Enter "cobmode -?" to see a usage screen; the command takes several optional flags:
Usage: cobmode [-v] [-a|-l|{-s|-u|-d [32|64]}] [-t <toolname>]
Where: -s Operates on the SYSTEM default
-u Operates on the USER default
-d Operates on the DIRECTORY default
-l Operates on the SHELL default
-a List all defaults
-v Operate verbosely
-t Specify a tool name to search for
If '32' or '64' is specified, the mode is set to that value.
If none of '-s', '-u' and '-l' are specified, the effective mode is reported.
The '-t' option can be used to trace how a specific tool is located.
Note: with some earlier releases of Server Express on AIX platforms, the "cobmode" command does not exist because the product is capable of operating in only one mode. In that case, to determine the operational bitmode, a person can examine the libraries in $COBDIR/lib using the "file" command. The libraries will be either 32 or 64-bit. With a Server Express product that is capable of switching between 32 and 64-bit, $COBDIR/lib would contain a collection of both 32 and 64-bit libraries.