Suppress Warning: 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
sampitke1
Participant
Posts: 24
Joined: Mon Apr 28, 2008 4:22 pm

Suppress Warning: Fixed Width File

Post by sampitke1 »

Hi

I am reading a COBOL File (Without Redefine and Occure Clauses) in a Sequential Stage. It is fixed with file having Record length 60.

To Read this file I have mentioned Record Length in Record Level as 61. (if I mentioned 60 it throws error don't know why?). Job is running file but with the warning
1) " Formatted length of fields and record (60) less than declared length (61)" (I tried to execute the job by putting recoed length 60. It fails.)
2) " Import consumed only 60bytes of the record's 61 bytes (no further warnings will be generated from this partition)"
3) Import warning at record 0.

I need to supress these warning and I need to execute this job without any warnings.

Can you please guide me on this?

Thanks and Regards
Sameer
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Get the line terminator character defined correctly.
Or add FILLER PIC X. to the file definition.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sampitke1
Participant
Posts: 24
Joined: Mon Apr 28, 2008 4:22 pm

Post by sampitke1 »

Hey Ray,

I appreciate your help. I used the second option and it is working without warnings.

Thanks and Regards
Sameer
Post Reply