Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Wrong Length Error during CICS write for a Varaible length f

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Wrong Length Error during CICS write for a Varaible length f
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: 3158
Location: Tucson AZ

PostPosted: Tue May 22, 2007 8:58 pm    Post subject:
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    Post subject: Re: Wrong Length Error during CICS write for a Varaible leng
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: 3158
Location: Tucson AZ

PostPosted: Thu May 24, 2007 4:24 pm    Post subject:
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    Post subject: Re: Wrong Length Error during CICS write for a Varaible leng
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: 3158
Location: Tucson AZ

PostPosted: Thu May 24, 2007 7:09 pm    Post subject:
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    Post subject: Re: Wrong Length Error during CICS write for a Varaible leng
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us