Trying to read fixed length flat file from IBM on Linux box

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
william.eller@ed.gov
Participant
Posts: 19
Joined: Fri Aug 03, 2012 11:06 am

Trying to read fixed length flat file from IBM on Linux box

Post by william.eller@ed.gov »

When I use a Sequential File Stage - generates errors and warnsing that seem to be based on no \r\n at end of each record

When I use a CFF fixed\EBCIDC generated error on 1st record :

##W IIS-DSEE-TOIX-00175 13:17:58(000) <stagename> Source subproc: /opt/ibm/iis/Server/Projects/D2I/SrcFiles/NSLDSP_LNDEFRT_tst.dat_BKUP: line 1: <input record> : command not found

Please help me
suja.somu
Participant
Posts: 79
Joined: Thu Feb 07, 2013 10:51 pm

Post by suja.somu »

Could you post the structure of the fixed width flat file along with sample data ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You're on UNIX - why are you expecting Windows line terminators?

Also, the warning is "command not found". What command are you trying to execute? Is your PATH inclusive of this command's parent directory?
Last edited by ray.wurlod on Thu Mar 21, 2013 3:18 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Are you sure the data is EBCIDC?

You can try a "dos2unix yourfilehere.txt" on it to fix it up.

I would not recommend a dos2unix to be done on an EBCIDC file.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

One must assume that EBCIDC is a typo for EBCDIC. :wink:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
william.eller@ed.gov
Participant
Posts: 19
Joined: Fri Aug 03, 2012 11:06 am

Figured it out !!!

Post by william.eller@ed.gov »

Thanks for the quick responses (and yes typo on EBCDIC). I was using wrong options (Format Tab > Record Delim String was "DOS") and Column SQLTYPE changed to mix of Char and VarChar

Thanks guys !!
Post Reply