System i: Programming i5/OS PASE - IBM
System i: Programming i5/OS PASE - IBM
System i: Programming i5/OS PASE - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Related information<br />
File Transfer Protocol<br />
Customizing <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs to use <strong>i5</strong>/<strong>OS</strong> functions<br />
If you want your AIX application to take advantage of <strong>i5</strong>/<strong>OS</strong> functions that are not directly supported by<br />
system-supplied <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> shared libraries, you need to perform some additional steps to prepare your<br />
application.<br />
Complete the following steps to do the preparation:<br />
1. Code your AIX application to call any required <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> runtime functions that coordinate your<br />
access to the <strong>i5</strong>/<strong>OS</strong> system-unique functions.<br />
2. If you are compiling your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs on an AIX system, perform the following steps<br />
before you compile your customized application:<br />
a. Copy required <strong>i5</strong>/<strong>OS</strong> system-unique header files to your AIX system.<br />
b. Copy required <strong>i5</strong>/<strong>OS</strong> system-unique export files to your AIX system.<br />
Related concepts<br />
“Calling <strong>i5</strong>/<strong>OS</strong> programs and procedures from your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs” on page 29<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides methods for calling ILE procedures, Java programs, OPM programs, <strong>i5</strong>/<strong>OS</strong> APIs,<br />
and CL commands that give you integrated access to <strong>i5</strong>/<strong>OS</strong> functions.<br />
“How <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs interact with <strong>i5</strong>/<strong>OS</strong>” on page 40<br />
As you customize your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs to use <strong>i5</strong>/<strong>OS</strong> functions, you need to consider the ways in<br />
which your program will interact with them.<br />
Related information<br />
Runtime functions for use by <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs<br />
Copying header files<br />
Use this information to copy header files from the system running <strong>i5</strong>/<strong>OS</strong> to the system running AIX.<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> augments standard AIX run time with header files for <strong>i5</strong>/<strong>OS</strong> system-unique support. These<br />
are provided by <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> and the <strong>i5</strong>/<strong>OS</strong> operating system.<br />
Copying the header files from <strong>i5</strong>/<strong>OS</strong> to AIX in the header file search path<br />
You can copy the header file into the /usr/include AIX directory, or to any other directory on the header<br />
file search path for your compiler.<br />
If you use a directory other than /usr/include, you can add it to the header file search path with the -I<br />
option on the AIX compiler command.<br />
Copying <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> header files<br />
The <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> header files are located in the following <strong>i5</strong>/<strong>OS</strong> directory: /QOpenSys/Q<strong>IBM</strong>/ProdData/<br />
<strong>OS</strong>400/<strong>PASE</strong>/include<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides the following header files.<br />
Header file Explanation<br />
as400_protos.h This header file provides miscellaneous <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> system-unique functions to ILE.<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> 17