COMP-3 variable used for display purpose



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

COMP-3 variable used for display purpose

Postby prashanthreddy » Wed Apr 30, 2008 5:23 pm

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.
prashanthreddy
 
Posts: 8
Joined: Sat Jan 19, 2008 3:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COMP-3 variable used for display purpose

Postby CICS Guy » Wed Apr 30, 2008 7:29 pm

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).....
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: COMP-3 variable used for display purpose

Postby freelar » Fri May 23, 2008 1:50 am

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.
freelar
 
Posts: 34
Joined: Fri May 23, 2008 1:38 am
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post