Between the APIs by Example tips in this newsletter and various articles in iSeries NEWS, there are quite a few sample programs that show how to use iSeries APIs. I thought it would be helpful to list the many API sample programs and articles available online and organize the list using the API categories IBM uses in its InfoCenter documentation at http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/aplist.htm.
I'll be including many more APIs by Example sample code in upcoming newsletter issues. If there are any APIs in particular that you'd like to see covered (or if you have API code you'd like to share), please contact me at mailto:clubtechprogrammingtips@iseriesnetwork.com.
You can read about iSeries API topics at
http://www.iseriesnetwork.com/resources/artarchive/index.cfm?fuseaction=ListArticlesByTopic&ID=1.
(To access some of these articles, you may need to have a paid iSeries Network Professional Membership.)
====== Communications -- TCP/IP Management APIs ======
List Network Connections (QtocLstNetCnn)
http://www.iseriesnetwork.com/article.cfm?ID=15777
====== Configuration -- General Configuration APIs ======
Retrieve Configuration Status (QDCRCFGS)
http://www.iseriesnetwork.com/article.cfm?ID=9298
Retrieve Device Description (QDCRDEVD)
http://www.iseriesnetwork.com/article.cfm?ID=6850
====== Data Conversion APIs ======
Code Conversion Allocation (QtqIconvOpen())
Code Conversion (iconv())
Code Conversion Deallocation (iconv_close())
http://www.iseriesnetwork.com/article.cfm?ID=10193
====== Database and File APIs ======
Retrieve Display File Description (QDFRTVFD)
http://www.iseriesnetwork.com/article.cfm?ID=14220
====== Dynamic Screen Manager - Low-Level Screen I/O APIs ======
Create Input Buffer (QsnCrtInpBuf)
Read Screen (QsnReadScr)
Retrieve Pointer to Data in Input Buffer (QsnRtvDta)
http://www.iseriesnetwork.com/article.cfm?ID=11206
Generate a Beep (QsnBeep)
http://www.iseriesnetwork.com/article.cfm?ID=15666
====== General Miscellaneous APIs ======
Convert Date and Time Format (QWCCVTDT)
http://www.iseriesnetwork.com/article.cfm?ID=10230
http://www.iseriesnetwork.com/article.cfm?ID=6324
====== Hierarchical File System APIs ======
Open Stream File (QHFOPNSF)
Read from Stream File (QHFRDSF)
Close Stream File (QHFCLOSF)
http://www.iseriesnetwork.com/article.cfm?ID=10193
====== ILE C Runtime Reference Functions ======
fopen
fgets
fputs
fclose
remove
errno
strerror
http://www.iseriesnetwork.com/article.cfm?ID=10214
====== ILE CEE -- Activation Group and Control Flow APIs ======
Register Call Stack Entry Termination User Exit Procedure (CEERTX)
http://www.iseriesnetwork.com/article.cfm?ID=14507
Normal End (CEETREC)
http://www.iseriesnetwork.com/article.cfm?ID=8009
====== ILE CEE -- Math APIs ======
Arcsine (CEESxASN)
Cosine (CEESxCOS)
http://www.iseriesnetwork.com/article.cfm?ID=13910
====== Journal and Commit APIs ======
Retrieve Journal Information (QjoRetrieveJournalInformation)
http://www.iseriesnetwork.com/article.cfm?ID=16430
Retrieve Journal Receiver Information (QjoRtvJrnReceiverInformation)
http://www.iseriesnetwork.com/article.cfm?ID=9295
====== Message Handling APIs ======
Send Scope Message (QMHSNDSM)
http://www.iseriesnetwork.com/article.cfm?ID=14408
Open List of Job Log Messages (QGYOLJBL)
Close List (QGYCLST)
http://www.iseriesnetwork.com/article.cfm?ID=10467
List Nonprogram Messages (QMHLSTM)
http://www.iseriesnetwork.com/article.cfm?ID=10246
Receive Program Message (QMHRCVPM)
Send Program Message (QMHSNDPM)
Send Nonprogram Message (QMHSNDM)
http://www.iseriesnetwork.com/article.cfm?ID=6337
Retrieve Message (QMHRTVM)
http://www.iseriesnetwork.com/article.cfm?ID=6858
====== National Language Support-related APIs ======
Convert Case (QLGCNVCS, QlgConvertCase)
http://www.iseriesnetwork.com/article.cfm?ID=14179
Sort (QLGSORT)
Sort Input/Output (QLGSRTIO)
http://www.iseriesnetwork.com/article.cfm?ID=1563
====== Networking -- Email APIs ======
Send MIME Mail (QtmmSendMail)
http://www.iseriesnetwork.com/article.cfm?ID=2806
====== Object -- Data Queue APIs ======
Retrieve Data Queue Description (QMHQRDQD)
http://www.iseriesnetwork.com/article.cfm?ID=15822
====== Object -- Object-related APIs ======
Change Object Description (QLICOBJD)
http://www.iseriesnetwork.com/article.cfm?ID=13644
http://www.iseriesnetwork.com/article.cfm?ID=16559
====== Object -- User Space APIs ======
Create User Space 9 (QUSCRTUS)
Change User Space (QUSCHGUS)
Retrieve User Space (QUSRTVUS)
http://www.iseriesnetwork.com/article.cfm?ID=2465
====== Office -- Office-related APIs ======
Search System Directory (QOKSCHD)
http://www.iseriesnetwork.com/article.cfm?ID=10130
Check Spelling (QTWCHKSP)
Aid Spelling (QTWAIDSP)
http://www.iseriesnetwork.com/article.cfm?ID=10594
====== Office -- AnyMail/400 Mail Server Framework APIs======
Create Mail Message (QzmfCrtMailMsg)
http://www.iseriesnetwork.com/article.cfm?ID=2672
====== Operational Assistant APIs ======
Send Message (QEZSNDMG)
http://www.iseriesnetwork.com/article.cfm?ID=2736
====== Print -- General Print APIs ======
Retrieve Output Queue Information (QSPROUTQ)
http://www.iseriesnetwork.com/article.cfm?ID=15147
http://www.iseriesnetwork.com/article.cfm?ID=15174
====== Print -- Spooled File APIs ======
List Spooled Files (QUSLSPL)
http://www.iseriesnetwork.com/article.cfm?ID=16304
====== Program and CL Command APIs ======
Create Program (QPRCRTPG)
http://www.iseriesnetwork.com/article.cfm?ID=15575
Execute Command (QCMDEXC)
http://www.iseriesnetwork.com/article.cfm?ID=13984
http://www.iseriesnetwork.com/article.cfm?ID=6788
Retrieve Command Definition (QCDRCMDD)
http://www.iseriesnetwork.com/article.cfm?ID=14754
List ILE Program Information (QBNLPGMI)
List Service Program Information (QBNLSPGM)
http://www.iseriesnetwork.com/article.cfm?ID=2403
====== Security -- Security-related APIs ======
Get Profile Handle (QSYGETPH)
Release Profile Handle (QSYRLSPH)
http://www.iseriesnetwork.com/article.cfm?ID=11399
http://www.iseriesnetwork.com/article.cfm?ID=10370
====== Security -- Validation List APIs ======
Add Validation List Entry (QsyAddValidationLstEntry())
Find Validation List Entry (QsyFindValidationLstEntry())
Change Validation List Entry (QsyChangeValidationLstEntry())
Remove Validation List Entry (QsyRemoveValidationLstEntry())
Verify Validation List Entry (QsyVerifyValidationLstEntry())
http://www.iseriesnetwork.com/article.cfm?ID=10197
====== Unix-type -- Integrated File System APIs ======
opendir() (Open directory)
readdir() (Read directory entry)
closedir() (Close directory)
lstat() (Get file or link information)
getpwuid() (Get user information for user ID)
http://www.iseriesnetwork.com/article.cfm?ID=10219
====== Unix-type -- Sockets APIs ======
bind() (Set a local address for the socket)
close() (Close file descriptor)
sendto() (Send data with a destination address using a socket descriptor)
setsockopt() (Allow an application to set characteristics of a socket)
recvmsg() (Receive data and remote address using a socket descriptor and
multiple buffers)
http://www.iseriesnetwork.com/article.cfm?ID=2927
====== User Interface APIs ======
Display Long Text (QUILNGTX)
http://www.iseriesnetwork.com/article.cfm?ID=6799
====== Work Management APIs ======
Retrieve Call Stack (QWVRCSTK)
http://www.iseriesnetwork.com/article.cfm?ID=13860
Retrieve Job Information (QUSRJOBI)
http://www.iseriesnetwork.com/article.cfm?ID=10193
http://www.iseriesnetwork.com/article.cfm?ID=14242
http://www.iseriesnetwork.com/article.cfm?ID=14706
Retrieve Job Status (QWCRJBST)
http://www.iseriesnetwork.com/article.cfm?ID=13822
Retrieve System Status (QWCRSSTS)
http://www.iseriesnetwork.com/article.cfm?ID=11840
Retrieve System Values (QWCRSVAL)
http://www.iseriesnetwork.com/article.cfm?ID=11309
http://www.iseriesnetwork.com/article.cfm?ID=15631
Retrieve Job Description Information (QWDRJOBD)
http://www.iseriesnetwork.com/article.cfm?ID=14161
Set Profile Exit Programs (QWTSETPX) API
http://www.iseriesnetwork.com/article.cfm?ID=16301