I am trying to build a request based on 3 files. First file has productid, distributor and manufacturer Second file has distributor, distributor_code and distributor_status Third file has manufacturer, manufacturer_code and manufacturer_status
In the output I would like to list the PRODUCTID from PRODUCT, the distributor_code from DISTCO and manufacturer_code from MANUFCO in a single field COMPANY_CODE and company_status from DISTCO and manufacturer_status from MANUFCO in a single field STATUS
Also in the case where distributor code and manufacturer code are equal STATUS would be 'DIST/MANUF' and output will be only one row.
Here is an example: INPUT PRODUCT PRODUCTID MANUFACTURER DISTRIBUTOR PRODUCT1 COMPANY1 COMPANY2 PRODUCT2 COMPANY3 COMPANY3