IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Wrong Length Error during CICS write for a Varaible length f


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mayil

New User


Joined: 19 Dec 2005
Posts: 14

PostPosted: Tue May 22, 2007 7:36 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 22, 2007 8:58 pm
Reply with quote

How are you specifing the length for the write?
Back to top
View user's profile Send private message
Mayil

New User


Joined: 19 Dec 2005
Posts: 14

PostPosted: Thu May 24, 2007 1:54 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu May 24, 2007 4:24 pm
Reply with quote

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
View user's profile Send private message
Mayil

New User


Joined: 19 Dec 2005
Posts: 14

PostPosted: Thu May 24, 2007 6:57 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu May 24, 2007 7:09 pm
Reply with quote

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
View user's profile Send private message
Mayil

New User


Joined: 19 Dec 2005
Posts: 14

PostPosted: Fri May 25, 2007 10:16 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top