ILE C/C++ Programmer's Guide
Response indicators are included when the DDS keyword INDARA is
not specified. When this is the case, use the INPUT, OUTPUT, or BOTH
option.
C++ users must use the GENCSRC utility to create external file
definitions.
C users can use either the GENCSRC utility or the #pragma mapinc
directive to create external file definitions.
- Note:
- For more information on the differences between the GENCSRC utility and the
#pragma mapinc directive, see Appendix A, The GENCSRC Utility and the #pragma mapinc Directive.
When the DDS shown in Figure 118 is included in your ILE C program, the structure definition
shown in Figure 119 is generated.
Figure 118. DDS Source for a Display File
#pragma mapinc("test","example/phonelist(phone)","input","")
#include "test"
A R PHONE
A CF03(03 'EXIT')
A 1 35'PHONE BOOK'
A DSPATR(HI)
A 7 28'Name:'
A NAME 11A I 7 34
A 9 25'Address:'
A ADDRESS 20A I 9 34
A 11 25'Phone #:'
A PHONE_NUM 8A I 11 34
A 23 34'F3 - EXIT'
A DSPATR(HI)
|
Figure 119. Structure Definition for a Display File
/* --------------------------------------------------------*/
/* DEVICE FILE: EXAMPLE/PHONELIST */
/* FILE CREATION DATE: 93/09/01 */
/* RECORD FORMAT: PHONE */
/* FORMAT LEVEL IDENTIFIER: 10D2D0DB2BEE8 */
/* --------------------------------------------------------*/
typedef struct {
char IN03; /* EXIT */
char NAME[11];
char ADDRESS[20];
char PHONE_NUM[8];
}EXAMPLE_PHONELIST_PHONE_i_t;
|
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.