How to extract alfanumeric charecters from a feild.

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
sun786
Participant
Posts: 34
Joined: Mon Feb 07, 2005 5:48 am

How to extract alfanumeric charecters from a feild.

Post by sun786 »

I have data coming from a flat file and moving into SAP Load pack. I get a error :

Gro..Transformer_1: At row 843, link "DSLink4"
Data element exceeds specified column width (15): MFMU0503MM0183

I think some extra charecter is present. This is the last coloumn in the file.

Help

regards
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Two options

1.) Create a temporary / user defined Z table in SAP with larger column size.
2.) Write the result into a seq file rather than SAP and identify the size of the column. You can then use Unix commands to identify any extra chars
chucksmith
Premium Member
Premium Member
Posts: 385
Joined: Wed Jun 16, 2004 12:43 pm
Location: Virginia, USA
Contact:

Post by chucksmith »

Can you apply a derivation to the column, perhaps Trim()?
dsxuserrio
Participant
Posts: 82
Joined: Thu Dec 02, 2004 10:27 pm
Location: INDIA

Post by dsxuserrio »

Since it is the last column , it could be due to Ctrl characters. CR,LF etc.
dsxuserrio

Kannan.N
Bangalore,INDIA
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In the Columns grid in the Sequential File stage, scroll to the right and find the properties "contains line terminators" and "incomplete column". Read the help on this stage type, and experiment with various settings until your file becomes readable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply