Setting the data import configuration properties for C files

You can set the data import configuration properties for the source C file that you import into your project.

This page allows you to set the data import configuration properties for this data binding file. Alternatively, you can change the properties in the source code in the Java™ code editor once you close the wizard. You can change the defaults for these properties in the Preferences page; the values that you set in the Preferences page will be shown as defaults in the Setting data import configuration properties page.
Once you have imported your C source file into your project, you can set the data import configuration properties.
  1. Include Path: You may include a list of directories to search for include files. Click Add to add a directory path.
  2. Platform - Compiler: Specify the platform on which the C program compiles.
  3. Query: After you have set the importer preferences -- including Advanced properties described below, if you want to change these, click Query to view the available data structures. The C Importer reads the selected C file and returns all structures (structure names) to the application. You then select the name of the C structure that you want to import.
  4. To set the advanced data import configuration properties, click Show Advanced.
    1. Floating point format: Indicate the byte representation of floating point numbers.
    2. Code Page: The Codepage of the C target program.
    3. Treat unsigned short arrays as strings: If the Treat unsigned short arrays as strings check box is checked, then unsigned short arrays are treated as strings. If unchecked, then unsigned short arrays are not treated as strings.
    4. String encoding: This property determines the format in which strings are encoded.
    5. Byte order: The byte representation of integers ordered from the most significant byte to the least significant byte is referred to as a big endian representation. The byte representation of integers ordered from the least significant byte to most significant byte is referred to as a little endian representation.
    6. Address size: The platform address size of 32 bits or 64 bits.
    7. Size of long double: The storage size of a long double precision floating point value. It can be 64 or 128 bits.
    8. Alignment rule: The alignment rule determines the storage layout of C structures.
    9. Pack level: The pack level can be 1, 2, 4, 8 or 16 bytes. This value must match what was used to compile the C program that you are targeting.
    10. Size of enumeration constant: Some compilers will compact an enumeration constant into the smallest integral type that can contain all variables. Other compilers allow the option of selecting the number of bytes to use for an enumeration constant.
    11. Size of wchar: The storage size of a wchar type. Most platforms implement the size as 2 bytes although some platforms support a size of 4 bytes.
  5. Click Next.
Now that you have added the data import properties for your COBOL file, you can save these data bean properties.
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.