Page 1 of 1

COMP-3 variable used for display purpose

PostPosted: Wed Apr 30, 2008 5:23 pm
by prashanthreddy
Hi All,

I would like to know if i use COMP-3 variable for displaying in SYSOUT is there any performance issues.Because I heard using COMP-3 variable for display is not a good standard. But i don't know the reason.
Can anyone help me what is the reason for this??

Thanks in advance.

Thanks,
Prashanth.

Re: COMP-3 variable used for display purpose

PostPosted: Wed Apr 30, 2008 7:29 pm
by CICS Guy
Either way, the PD field will have to be unpacked. Depending on the sign in the pic of the PD field (and possibly the compiler version), the last digit could be translated to a letter (which can be easly intrepreted to the correct digit and sign).....

Re: COMP-3 variable used for display purpose

PostPosted: Fri May 23, 2008 1:50 am
by freelar
As stated most likely you'll have to unpack it for it to be readable, I doubt there are any performance issues with something like this.