I am looking for a table that shows which RPG IV data types to use for a specified API data type. For example, an API says a parameter is "binary(4)", what should this be in RPG IV? I would like a table that shows all the API data types and what they convert to in RPG IV.
There isn't a single table that lists the types for API parameters in RPG IV. Binary data types are stored in single bytes with no sign. A Binary 4 would convert to an integer of 10 in RPGIV. A binary of 2 would convert to an integer of 5 in RPG IV. You can also use the data type B using the same length as the API uses. Some API's use a structure within a structure that RPG IV does not support.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400
Dig Deeper on Past Releases
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.