How to read the Packed format characters in Sequential File

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ratikmishra1
Charter Member
Charter Member
Posts: 42
Joined: Wed Aug 18, 2004 2:49 pm

Post by ratikmishra1 »

Can you use CFF stage? It should meet your need.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:idea: Search is your friend! A quick check for "packed decimal" revealed quite a number of conversations on this topic, including this recent one:

viewtopic.php?t=123152
-craig

"You can never have too many knives" -- Logan Nine Fingers
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

You don't treat the whole record as packed, only the numeric fields. Typically the whole record is binary fixed length EBCDIC, then each datatype is handled separately based on the incoming datatype.

An incoming char field will get converted from EBCDIC to ASCII automatically because you specified your input as EBCDIC. Different numeric datatypes will need to be handled differently.

I have a mapping of various numeric mainframe types to their corresponding DS types in the following posting:

Mapping Issue from Mainframe file to Datastage

Hope this helps.

Brad.
It is not that I am addicted to coffee, it's just that I need it to survive.
Post Reply