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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 4 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm


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