Fixed width columns (Non Delimited 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
nhv
Participant
Posts: 5
Joined: Fri Sep 23, 2005 7:45 pm

Fixed width columns (Non Delimited file)

Post by nhv »

Hi All,
I'm trying to read data from the fixed width file via the FTP stage,
I'm getting the following error: Internal Error function 'utf_to_row()' failed

I defined all the column types as char and Not Nullable as required.
Also the column lengths are included correctly.

NOTE: reading a delimited file via FTP causes no problems.

Please suggest me the solution for this.

Thanks in Advance
NHV
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi And Welcome Aboard :),
Searching this forum will get you lots of posts with great info.

What Os you use?
What exact DS version?
What is the OS of the system you try to ftp from?
What happens when you try to process this file after you manually ftped it to your DS server?
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Fixed width columns (Non Delimited file)

Post by chulett »

nhv wrote:Also the column lengths are included correctly.
As a guess, I would say - no, you didn't. :wink:

All it takes is one wrong one to hork the whole thing up. The other tidbit - assuming it works the same as the Sequential File stage - is it uses the information in the Display Size column - not the Size size column to drive itself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nhv
Participant
Posts: 5
Joined: Fri Sep 23, 2005 7:45 pm

Post by nhv »

Hi,

What Os you use - Unix
What exact DS version - 7.5
What is the OS of the system you try to ftp from - Unix
What happens when you try to process this file after you manually ftped it to your DS server- It works fine.

I used these manually ftped files in seq stage and it works perfect

Regards,
Nirav
nhv
Participant
Posts: 5
Joined: Fri Sep 23, 2005 7:45 pm

Re: Fixed width columns (Non Delimited file)

Post by nhv »

Hi Craig,

Yes, I have mentioned the correct lengths under Display Size.

Regards.
nhv
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And in the Properties, you've changed 'Fixed Width Columns' to 'Yes'?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nhv
Participant
Posts: 5
Joined: Fri Sep 23, 2005 7:45 pm

Post by nhv »

Hi Craig,

I have set the relevant properties.The error I keep getting is
Internal Error function 'utf_to_row()' failed

Regards,
NHV
track_star
Participant
Posts: 60
Joined: Sat Jan 24, 2004 12:52 pm
Location: Mount Carmel, IL

Post by track_star »

Can you post the portion of the osh script with the ftp operator calls? If you're using the FTP Enterprise operator, look for the pftp entry in the osh script. If you're using the FTP plug-in, look for dscapiop and there will be an option immediately below that with the ftp shared object file name.
srividhya
Participant
Posts: 42
Joined: Tue May 31, 2005 10:11 am

Post by srividhya »

Hai nhv,
In the output properties
check against metadata --- yes
line termination --- [CR][LF] (DOS Style Termination)
Fixed width column --- yes
space between columns --- 0
All the other properties are to be default

In the ouput column give the length of the row (fixed width)
you can also check, if the file contains ^m in the end of line

Sri
Post Reply