Read Packed Decimal from EBCDIC File

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
natesan81DS
Participant
Posts: 2
Joined: Tue Jan 11, 2011 11:03 am

Read Packed Decimal from EBCDIC File

Post by natesan81DS »

I am new to DS and need your assistance on the below.
I am receiving a EBCDIC file from Mainframe, which has the Start position and Length of a particular String. The string is in Packed decimal format. My requirement is to read the start position and Length, and with the help of Start position and Length read the packed decimal string.

Please help me out with your expertise. Thanks.
Nat
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. Are you using a Complex Flat File stage? This has inbuilt support for packed decimal data.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
natesan81DS
Participant
Posts: 2
Joined: Tue Jan 11, 2011 11:03 am

Post by natesan81DS »

ray.wurlod wrote:Welcome aboard. Are you using a Complex Flat File stage? This has inbuilt support for packed decimal data. ...
@Ray - Thanks for your quick response

Yes. I tried using a CFF Stage.

I have a Character field in my file from which i need to read a substring (which is of packed decimal format).

Since I have the Packed Decimal within the Character field, I could see JUNK Values while usign the CFF Stage.
Nat
Post Reply