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.
You can copy these files to any AIX directory. Use the -bI: option on the AIX ld command (or compiler<br />
command) to define symbols not found in the shared libraries on the AIX system.<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides the following export files.<br />
Export file Function<br />
as400_libc.exp This file is the export file for <strong>i5</strong>/<strong>OS</strong> system-unique functions in libc.a.<br />
The as400_libc.exp file defines all the exports from the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> version of libc.a that<br />
are not exported by the AIX versions of those libraries.<br />
libdb400.exp This file is the export file for <strong>i5</strong>/<strong>OS</strong> database functions.<br />
The libdb400.exp file defines the exports from the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> libdb400.a library (DB2 for<br />
<strong>i5</strong>/<strong>OS</strong> call level interfaces (CLIs) support).<br />
Related concepts<br />
“Database” on page 41<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> supports the DB2 for <strong>i5</strong>/<strong>OS</strong> call level interfaces (CLIs). DB2 CLIs on AIX and <strong>i5</strong>/<strong>OS</strong> are not<br />
exact subsets of each other, so there are minor differences in a few interfaces. Some APIs in one<br />
implementation might not exist in another.<br />
Related reference<br />
“Copying the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program to your system” on page 14<br />
You must copy the AIX binary files that you want to run in <strong>i5</strong>/<strong>OS</strong> Portable Application Solutions<br />
Environment (<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong>) into the integrated file system.<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> APIs for accessing <strong>i5</strong>/<strong>OS</strong> functions<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides a number of APIs for accessing ILE code and other <strong>i5</strong>/<strong>OS</strong> functions. Which ones<br />
you use depends on how much preparation and structure building you want to do yourself as opposed<br />
to how much you want the compiler to do for you.<br />
Related information<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> APIs<br />
Using <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs in the <strong>i5</strong>/<strong>OS</strong> environment<br />
Your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program can call other <strong>i5</strong>/<strong>OS</strong> programs running in your job, and other <strong>i5</strong>/<strong>OS</strong> programs<br />
can call procedures in your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program.<br />
Running <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs and procedures<br />
You can start an <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program in a job and call <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> procedures from your ILE programs.<br />
You can run your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program in any of several ways:<br />
v Within an <strong>i5</strong>/<strong>OS</strong> job<br />
v From an <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> interactive shell environment<br />
v As a called program from an ILE procedure<br />
Note: When you run an <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program on the <strong>i5</strong>/<strong>OS</strong> operating system, keep in mind that the<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> environment variables are independent of ILE environment variables. Setting a<br />
variable in one environment has no effect on the other environment.<br />
ILE procedures that let you work with <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides a number of ILE procedure APIs that allow your ILE code to access <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong><br />
services (without special programming in your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> program):<br />
<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> 19