Decimal to COMP3
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 57
- Joined: Fri Feb 24, 2006 7:44 am
Decimal to COMP3
Hi Guys,
I have a requirement to convert decimal values to comp3 and send them to mainframes, i browsed through and couldnt find the solution any where there are previous topics on this but nothing got resolved in them ,
Can anyone please help me if they have done the same thing earlier it would me very helpful to me.
Thanks
Raj
I have a requirement to convert decimal values to comp3 and send them to mainframes, i browsed through and couldnt find the solution any where there are previous topics on this but nothing got resolved in them ,
Can anyone please help me if they have done the same thing earlier it would me very helpful to me.
Thanks
Raj
-
- Charter Member
- Posts: 57
- Joined: Fri Feb 24, 2006 7:44 am
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
-
- Charter Member
- Posts: 57
- Joined: Fri Feb 24, 2006 7:44 am
DECIMAL TO COMP3
Hi,
In my case i just need to give a feed to mainframes in a sequential file from our datawarehouse.So i need to convert this from a decimal to comp3 and give that value in a sequential file.
Thanks
Raj
In my case i just need to give a feed to mainframes in a sequential file from our datawarehouse.So i need to convert this from a decimal to comp3 and give that value in a sequential file.
Thanks
Raj
Krazykoolrohit wrote:If you just pass the decimal into comp-3 field in the mainframe table, what error does it give?
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
Typical flat file interfaces don't put the onus of COMP-3 creation on the file creator. If I was in your shoes I'd push back on the requirement, insist on sending everything in 'display' format and put the burden of the COMP-3 conversion back on the target system where it is fairly trivial for them to do.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Charter Member
- Posts: 57
- Joined: Fri Feb 24, 2006 7:44 am
DECIMAL TO COMP3
Hi Carter,
Thanks a lot for your reply, Can you please help me out in this .I am desperatley looking for this solution,your response is highly appreciated.
Thanks
Raj.
Thanks a lot for your reply, Can you please help me out in this .I am desperatley looking for this solution,your response is highly appreciated.
Thanks
Raj.
clshore wrote:I agree that you should push back.
But if you do have to create COMP-3, it's not really that bad (I've done it).
Let us know.
Carter
Decimal to COMP3
I have a requirement to create COMP3 fields in a DataStage Server job. The files need to be sent to the mainframe for processing.
Is there a way to create a COMP3 field in a server job, then transmit it to the mainframe? It sounds like its possible base on the dsxchange entry but I cant figure how its done.
Is there a way to create a COMP3 field in a server job, then transmit it to the mainframe? It sounds like its possible base on the dsxchange entry but I cant figure how its done.
Hi
Do you try to write in a CFF stage ?
I don't do it myself but maybe it will transfrom your data to the copybook format.
Do you try to write in a CFF stage ?
I don't do it myself but maybe it will transfrom your data to the copybook format.
Last edited by thurmy34 on Wed Sep 03, 2008 1:40 am, edited 1 time in total.
Hope This Helps
Regards
Regards
Decimal to COMP3 - CFF Test
I tried this but the CFF stage does not support Stream Input links. It appears that is only accepts output links (reads data ).
Does anyone have any other suggestions, other than creating mainframe programs to pack data.
Does anyone have any other suggestions, other than creating mainframe programs to pack data.
Decimal to COMP3
I will need to convert several numeric data types. My target is the mainframe. I will be creating files using DataStage server for use on an IBM mainframe.
That means I would need the ability to conver numbers to:
PIC S9(9)V99.
PIC S9(9)V99 COMP3.
And others possibly.
In the end the file needs to be in EBCDIC so the ASCII to EBCDIC translation will need to happen on the DataStage server also.
That means I would need the ability to conver numbers to:
PIC S9(9)V99.
PIC S9(9)V99 COMP3.
And others possibly.
In the end the file needs to be in EBCDIC so the ASCII to EBCDIC translation will need to happen on the DataStage server also.