ILE C/C++ Programmer's Guide

Instructions

  1. To create a library called MYLIB, enter:

    CRTLIB LIB(MYLIB)
  2. To create a source physical file called QCSRC in library MYLIB, enter

    CRTSRCPF FILE(MYLIB/QCSRC) TEXT('Source physical file for all ILE C programs')

    QCSRC is the default source file name for ILE C commands that are used to create modules and programs. For ILE C++ commands, the corresponding default is QCPPSRC. For information about how to copy this file to an Integrated File System file, see Using the Integrated File System (IFS).

  3. To start an edit session enter:

    STRPDM
  4. Choose option 3 (Work with members); specify the source file name QCSRC, and the library MYLIB.
  5. Press F6 (Create), enter the member name T1520ALP, and source type C. The SEU Edit display appears ready for you to enter your source statements.
  6. Type the source shown in Source Code Sample into your SEU Edit display. Trigraph sequences can be used in place of square brackets, as demonstrated in Figure 2.
    Note:
    For more information about using trigraph sequences, see WebSphere Development Studio: ILE C/C++ Language Reference.
  7. Press F3 (Exit) to go to the Exit display. Type Y (Yes) to save the member T1520ALP.


[ Top of Page | Previous Page | Next Page | Table of Contents ]