Input buffer overrun at field

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

nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Input buffer overrun at field

Post by nitingupta »

Hi,

My JOb flow is as Below:
CFF -> Transformer -> Dataset

Source: CFF stage

Output Warnings:
1.CFF_TSE_PCID,0: Import consumed only 196bytes of the record's 199 bytes (no further warnings will be generated from this partition)

2.CFF_TSE_PCID,0: Input buffer overrun at field "cff_tse_pcid_record_type.DETAIL.FORMAT_CD", at offset: 19

column : cff_tse_pcid_record_type.DETAIL.FORMAT_CD = INT defined as Binary[4]

3.Tag value: PDD does not match any tagcase for tagged field "cff_tse_pcid_record_type"


Rows are getting rejected with giving above errors
Please suggest how to remove them.
NITIN GUPTA
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Those are all about your metadata in the CFF stage not matching the file you are processing.

1. Your metadata shows a record length of 199 but the record ended at 196.
2. The field mentioned was larger than you metadata allowed.
3. You are processing multiple record types and 'PDD' is not a type you have accounted for.
-craig

"You can never have too many knives" -- Logan Nine Fingers
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

How did you define your metadata in CFF? If you have defined it manually, try importing the actual copybook.
Arun
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

I am using actual copybook only, but still not able to get exact reason why i am getting all this error.
NITIN GUPTA
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

Do you have any packed fields? If so, how have you defined them?

And are you trying to read more than one record type out of the same CFF stage? If so, did you try deleting other links and view the data?

What is the NLS map you have defined?
Arun
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

i have defined FORMAT_CD as BINARY [4] USAGE COMP only
its in output its as INT 4, rest all columns are CHAR not aware about the NLS map what it should be..?
NITIN GUPTA
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

i am able to view data but out of 924, 24 records are getting rejected due to above warnings but rest 900 records are going without any warning.
NITIN GUPTA
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

nitingupta wrote:i have defined FORMAT_CD as BINARY [4] USAGE COMP only
its in output its as INT 4, rest all columns are CHAR not aware about the NLS map what it should be..?
So that column in copy book is mentioned as Pic 9(4) Comp.?

And NLS, if your source file is in EBCDIC format, you should set it to the EBCDIC map so that it will get converted. Remember comp with above mentioned specification will occupy only two bytes.
Arun
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

i am reading file as ASCII, and yes its PIC S9(4).
NITIN GUPTA
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

Pic s9(4) is not the same as Pic 9(4) COMP. And there it is.. It should not be a binary field on an ASCII file. Is there a reason why you are trying to read ASCII file using CFF? And not a sequential file?
Arun
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

i had used following:
byte order: Native Endian,
Data Format : Binary
Character set: ASCII
column: FORMAT_CD BINARY[4] USAGE COMP, PIC S9(4) COMP

i tried with NLS MAP=ASCL_EBCDIC also but its not working.
NITIN GUPTA
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

You did not answer the important question. Is your file ASCII or EBCDIC ?
Arun
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

i had used following:
byte order: Native Endian,
Data Format : Binary
Character set: ASCII
column: FORMAT_CD BINARY[4] USAGE COMP, PIC S9(4) COMP

i tried with NLS MAP=ASCL_EBCDIC also but its not working.
NITIN GUPTA
nitingupta
Participant
Posts: 22
Joined: Fri Jul 26, 2013 9:43 am
Location: PUNE

Post by nitingupta »

its a file coming from MAinframe job after SFTP and its ascii i ftped this using Normal FTP
NITIN GUPTA
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

So if the file is ASCII, why are you using CFF?
Arun
Post Reply