Problem with FTP PLUGin stage when used for FIXED Width 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
sadhvi
Participant
Posts: 4
Joined: Sat Oct 29, 2005 10:03 am

Problem with FTP PLUGin stage when used for FIXED Width file

Post by sadhvi »

Hi

I am facing a problem in using the FTP Plugin stage (in Parallel jobs).

The requirement is we have to tranfer the file from /datahub/dev/ams/ready to /datahub/dev/wc/target. Bothe are on the same BOX.

The login credentials for the /datahub/dev/ams is abc and for /datahub/dev/wc is xyz.

The source data is in the format
[cs2dhbi01:amsdev:/datahub/dev/ams/ready/Customer]cat abc.dat
2 FSWM1D06120100.dat91 0 0

I should get the target file also in the same format. When i am setting the properties in the FTP Plug in
Fixed-Width Columns to YES the job is ABORTING with the following error

FTP_Plug_in_0,0: Fatal Error: Fatal: Internal error: function 'row_to_external()' failed
At row 1, link "DSLink6", while processing column "Batch_ID"
Unable to retrieve column data
Source type (Long) does not promote to destination type (Raw)

The file does not have any Long or Raw datatypes. It is a FIXED Width file with 4 integer columns and 1 varchar column.

When i set the properties Fixed-Wdth Columns to NO and Column Delimiter to PIPE, the job is running fine and the output is
[cs2dhbi01:wcdev:/datahub/dev/wc/target]cat ABC.dat
2|FSWM1D06120100.dat|91|0|0

I want the target file also to be a FIXED WIDTH one, same as the source file.

Pls help me in this regard

Thanks Ahead,
Sadhvi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What type of column is "Batch_ID" in your source?
sadhvi
Participant
Posts: 4
Joined: Sat Oct 29, 2005 10:03 am

Post by sadhvi »

Hi

Batch_Id is an INTEGER column.


Regards,
Sadhvi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I just tried to reproduce the problem here but ftp is disabled and sftp has different issues. Can you reproduce your problem with a simple fixed width file with just one integer column?
Aparna_A
Participant
Posts: 21
Joined: Wed Nov 09, 2005 11:16 pm

Post by Aparna_A »

I have tried doing the same..but converted all target fields to CHAR..and now the new problem is the job hangs at the message "FTP_Plug_in_0,0: Logging delayed metadata".

What does this mean... :!: :?:
Aparna
sadhvi
Participant
Posts: 4
Joined: Sat Oct 29, 2005 10:03 am

Post by sadhvi »

Hi

i have tried with single integer column in the file. Same problem is coming up and the job is Aborting

Regards,
Sadhvi
bsreenu
Participant
Posts: 22
Joined: Mon Aug 16, 2004 3:57 pm

Post by bsreenu »

I heard that there are some issues with FTP stage in PX. I'm not sure if this is one of the issues.

Why don't you use regular FTP. I mean unix FTP. Write a shell script and transfer the file.

Sreeni.
sadhvi
Participant
Posts: 4
Joined: Sat Oct 29, 2005 10:03 am

Post by sadhvi »

Hi

Now i am trying read the records in the file as a single attribute....no problem ... but donno why it is behaving strangely,..when i am trying to set the FIXED WIDTH COLUMNS=YES and reading the file attribute by attribute...

am not marking it resolved....can any one tell me why the job is aborting when am setting the attribute FIXED WIDTH COLUMNS to YES??

Reagrds,
Sadhvi
mdraghic
Premium Member
Premium Member
Posts: 1
Joined: Wed Oct 04, 2006 7:54 am

Post by mdraghic »

In the Outputs -> Properties of the Plug-In stage remove the Column Delimiter and Quote Character when you have Fixed-width Column = Yes
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

bsreenu wrote:I heard ...
Where?

Please cite sources, or acknowledge that they are unsubstantiated rumours.
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