Page 1 of 1

COMP field handling

Posted: Fri Oct 10, 2008 4:59 am
by svga
Hi,

My requirement is to convert a number into COMP field.I am using routine ConvertToDataTypePicComp to convert into COMP field.Can any one help me to do this. I used below format to convert

ConvertToDataTypePicComp(038,2). but i am getting an error unable to convert
'%1' into number.

Posted: Fri Oct 10, 2008 7:55 am
by svga
hi,

Can any one help this out..

Posted: Fri Oct 10, 2008 8:28 am
by Mike
Nobody here can help you unless you post the code of your site-specific custom routine: ConvertToDataTypePicComp. That's not a routine that ships with the product.

Mike

Posted: Fri Oct 10, 2008 8:32 am
by DSguru2B
Why not just use the CFF stage?

Posted: Fri Oct 10, 2008 8:49 am
by chulett
Mike wrote:Nobody here can help you unless you post the code of your site-specific custom routine: ConvertToDataTypePicComp. That's not a routine that ships with the product.
Sure it is, it's included in the sdk along with a number of other similar conversions.

Posted: Fri Oct 10, 2008 8:58 am
by Mike
Maybe my memory is faulty... I thought the whole set in the sdk was for converting from COMP. I don't remember a set for converting to COMP.

Mike

Posted: Fri Oct 10, 2008 9:14 am
by ArndW
All I have here is V8 where that routine does not exist, but do recall that the original SDK cobol conversion routines went in both directions (I happen to have quite intimate knowledge of that code).

Posted: Fri Oct 10, 2008 9:28 am
by chulett
Mike wrote:Maybe my memory is faulty... I thought the whole set in the sdk was for converting from COMP. I don't remember a set for converting to COMP.
Well, maybe it's my memory that's faulty then. :wink:

I know there are conversion routines out there, let me check... ack, you are correct. From is the supplied direction, to routines must be home brewed. Mea Culpa.