Tuxedo: Limitation of cname in viewfile; Maximum Length of cname with viewsc32 (Doc ID 775706.1)

Last updated on MAY 13, 2010

Applies to:

Oracle Tuxedo
Information in this document applies to any platform.
Information in this document applies to any platform

Goal

DESCRIPTION:
When you execute viewc32 viewfile, the cname specified in the viewfile has a maximum limitation of 33 chars.

Example
viewfile- test.tvf

VIEW TESTIT_IM
# type cname fbname count flag size null
long a123456789123456789123456789123456789 - 2 -
- -
END


viewc32 test.tvf produces a .V and a .h file.
The test.h file is as follows

struct TESTIT_IM {
long a12345678912345678912345678912[2]; /* null=0 */
};


As you can see, the cname has been truncated.

According to our documentation of the viewfile at http://download.oracle.com/docs/cd/E12531_01/tuxedo100/fml/fml04.html for cname

cname
cname is the identifier for the structure member, and should be a valid C identifier name, since it is the name of a C structure member. Internally,
the cname is truncated to 30 characters, so cnames must be unique within the first 30 characters. Underscores are mapped automatically to dashes in the
COBOL COPY file.


Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms