Page 1 of 1

DDS conversion tool error

Posted: Wed Mar 30, 2011 8:49 pm
by grmarks
I am running PUI 2.2.7 on V7R1 and have found an interesting error in the conversion tool.
We have some DDS source with both a REFFLD keyword and a definition (which is different to the REFFLD definition) e.g.

A P1DTE_FR R 6 0B 12 30REFFLD(ORDTE *LIBL/ORDRPH)

the field is a numeric (used as a date) and in the file ref is 8P 0 but you can see from the snipet of source it is defined as 6S 0 and the RPG is expecting 6S 0 but is getting 8S 0. (In the designer tool it shows the REFFLD as its definition). This field is passed to a procedure expecting 6S 0 and thus the program is getting a compile error as follows

The type and attributes of parameter 1 do not match those
of the prototype.

here is the prototype def

d CvtDMY_D8 PR 8 0
d p_InDate6 6 0

Re: DDS conversion tool error

Posted: Tue May 24, 2011 2:38 pm
by Alex
This problem is fixed in the latest release.