APIs by Example: Data Conversion APIs

This installment of APIs by Example shows how to use the National Language Support Data Conversion APIs. Since the sample RPG IV program CBX0041 is too large for this newsletter, you can view it at

http://www.as400network.com/code/clubtechcode/CBX0041.txt (Program CBX0041 may not be available immediately. Please check back.)

Program CBX0041 converts an OfficeVision document located in QDLS and returns the converted text in a string. CBX0041 is limited to converting documents 32,767 bytes or smaller and isn’t comparable to commercial OfficeVision conversion programs. The program does, however, show how to use the conversion APIs and gives you a starting point to write more sophisticated conversion programs.

Download the save file containing the source code.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s