RPG and other data formats such as JSON

Use the DATA-INTO operation code to import data from any hierarchical data format, such as JSON, or CSV.

When message RNX0357 is issued for a DATA-INTO operation, the message mentions an error code. The meaning for each error code is determined by each parser.

Use the DATA-GEN operation code to generate a document in any hierarchical data format, such as JSON, or CSV from the names and values of an RPG variable..

When message RNX0363 is issued for a DATA-GEN operation, the message mentions an error code. The meaning for each error code is determined by each generator.

For more information, see the section on the DATA-INTO and DATA-GEN operations in the Rational Development Studio for i: ILE RPG Reference.