Problem with double

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

Problem with double

Post by sravanthi »

Hi,

I have a simple server job which loads data from file to database.The file is ftped from mainframe to windows server.The problem is the values for input double columns is coming as

0000000{0000000{0000000{0001000.

The length of each field is 8.The job is getting failed because of } in the data.

Please advice!
sravanthi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It looks like these might be COMP-3 or binary values; or your column length is really only 7 and you have a { as the separator.
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

Post by sravanthi »

Thanks for your advice.

Is there any possible way of converting COMP fileds to decimal or interger values.
sravanthi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes. You could re-convert them to binary after transfer using EBCDIC(In.ColumnName) and then apply one of the SDK routines to convert the binary to a text number representation. Or transfer in binary mode and use the CFF stage.
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

Post by sravanthi »

Thankyou.

It is working now.I have used:

DataTypePicS9(Ebcdic(Lnk_Trns.DEDUCT_AMT))
sravanthi
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

Post by sravanthi »

Thankyou.

It is working now.I have used:

DataTypePicS9(Ebcdic(Lnk_Trns.DEDUCT_AMT))
sravanthi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Great, I'm glad you got that sorted out. If you could mark this thread as resolved other future searchers will get a quicker and better answer as well.
Post Reply