Hi,
I would like to know if there is a way to retrieve metadata info (column name, type , precision.... ) from a static SQL in order to use them inside a RPGLE program.
Column names are not related to SYSNAMES or any other DB2 column definition.
I attach an example where all columns are not coming from a Db2 table.
Best regards,
Giovanni
Screenshot.png
I would like to know if there is a way to retrieve metadata info (column name, type , precision.... ) from a static SQL in order to use them inside a RPGLE program.
Column names are not related to SYSNAMES or any other DB2 column definition.
I attach an example where all columns are not coming from a Db2 table.
Code:
select 'Potato' SkuCode, 100.00 Price , 2.50 Quantity , 100.00 * 2.50 Total from dummy;
Best regards,
Giovanni
Screenshot.png
Comment