Page 1 of 1

DSPF Convert zone definition error

Posted: Sun Jan 11, 2015 4:16 pm
by PatriceVincent
Hi Profoundui Team,
When i convert my 5250 DSPF to Rich Display File with Visual Desiner, i have, when i save, this error message :

The Rich Display definition of field ZSFKLI does not match the Green-Screen DDS definition.

Rich Display JSON Field:
Name: ZSFKLI
Type: reference
Length: undefined
Decimals: undefined
Reference: CDLDETF1/CDDKLI *LIBL/CDLDET 7 02

Green-Screen DDS Field:
Name: ZSFKLI
DDS Data Type:
Length: 7
Decimals: 2
Reference: CDLDETF1/CDDKLI *LIBL/CDLDET

The process used is, convert with Visual designer the DSPF (only some error (keep, print)), no modification with visual designer only 'save as'.
The 5250 definition line is :
0011.50 A ZSFKLI R 7 02O 8 98REFFLD(CDLDETF1/CDDKLI *LIBL/CDLDET)
As you can see, there is also 7 02. This zone is overrided to change the lenght of the original zone.

To bypass the message, the only possibiity in Visual Designer has been to modify the zone definition in the right of the screen and to suppress the 0 before the 2 (so the definitiion zone is 7 2 and not 7 02).
Unfortunalty for me, i have a lot of zone defined like this.

Is there a solution to solve this from my side ?

Thanks for your help,
Patrice

Re: DSPF Convert zone definition error

Posted: Mon Jan 12, 2015 10:18 am
by Scott Klement
I would report this to our support team at support@profoundlogic.com to find out if this is the expected behavior or if it's a bug. And if it's a bug, they should be willing to get it fixed.

Re: DSPF Convert zone definition error

Posted: Mon Jan 12, 2015 10:44 am
by PatriceVincent
Hi Scott,
Thanks for your prompt reply and your help.
Patrice

Re: DSPF Convert zone definition error

Posted: Mon Jan 12, 2015 1:26 pm
by Alex
Hi Patrice,

We created a fix for this for the next update of Profound UI. In the next release, the conversion process will automatically strip the leading zeros from the override length and decimal positions of a reference field. If you need the fix right away, please contact support@profoundlogic.com and we can send you a patch.

Alex

Re: DSPF Convert zone definition error

Posted: Mon Jan 12, 2015 4:07 pm
by PatriceVincent
Hi Alex,
Thanks for your prompt reply and the solution provided.
Yes i will contact the support to have the fix (else i will have too much definition to review).
Thanks again for foryour help and the quick answer.
Patrice