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.