View previous topic :: View next topic
|
Author |
Message |
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
I am having a Log file whose length varies from 127 to 4327. I am trying to write a record of Length 137 into the file. The record is getting written into the file, but a value of x'E1' (Wrong Length error) comes in EIBRCODE. Somebody please throw some light on this. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
How are you specifing the length for the write? |
|
Back to top |
|
|
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
The exact values for the command i used is as below.
EXEC CICS WRITE
DATASET (ISIORO-FILE-NAME)
FROM (ISOIOAO-RECORD1)
RIDFLD (ISIORO-RECORD-KEY)
LENGTH (SS08WS-LENGTH)
END-EXEC.
I had moved the length of that ISOIOAO-RECORD1 in the length varaible SS08WS-LENGTH |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What was in EIBRESP and EIBRESP2?
LENGERR
RESP2 values:
12 The length specified for the write operation exceeds the maximum record size; the record is truncated.
10 LENGTH is omitted for a WRITE to a file with variable-length records or to a BDAM file with undefined format records.
14 An incorrect length is specified for a write operation involving fixed-length records. |
|
Back to top |
|
|
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
I am getting the following responses for EIB
EIBRESP 00000022
EIBRESP2 00000014
Does this mean that i have defiend the file wrongly or am sepcifying incorrect record length. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Quote: |
14 An incorrect length is specified for a write operation involving fixed-length records. |
It is defined as a fixed length file...... |
|
Back to top |
|
|
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
Thanks a lot William. The FCT entry for the file mentioned that file was fixed length file. we have requested to change the FCT attributes (I don't have access rights for it). |
|
Back to top |
|
|
|