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
 

 

Program is failing because of file status '04'

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
Murari Chakrakodi

New User


Joined: 26 Sep 2007
Posts: 13
Location: Bangalore,India

PostPosted: Fri Jan 11, 2008 10:30 am    Post subject: Program is failing because of file status '04'
Reply with quote

Hi,

My program is failing because of file status '04'.How can I resolve this.The file length I am using is 6006.File type is VB.
Back to top
View user's profile Send private message

ousep143

New User


Joined: 06 Oct 2007
Posts: 32
Location: India

PostPosted: Fri Jan 11, 2008 10:50 am    Post subject: Re: Job is abending file status='04'
Reply with quote

Hi,

file Status '04' is 'WRONG LENGTH RECORD'.In ur case,record length 6006 is not correct.

Regards
icon_smile.gif
Back to top
View user's profile Send private message
Murari Chakrakodi

New User


Joined: 26 Sep 2007
Posts: 13
Location: Bangalore,India

PostPosted: Fri Jan 11, 2008 11:32 am    Post subject: Reply to: Job is abending file status='04'
Reply with quote

Hi,
What you mean by 'RECORD LENGTH WRONG'.I use LRECL=6010 in JCL.In program i am using length as 6006.
Back to top
View user's profile Send private message
ousep143

New User


Joined: 06 Oct 2007
Posts: 32
Location: India

PostPosted: Fri Jan 11, 2008 2:50 pm    Post subject: Re: Reply to: Job is abending file status='04'
Reply with quote

Murari Chakrakodi wrote:
Hi,
What you mean by 'RECORD LENGTH WRONG'.I use LRECL=6010 in JCL.In program i am using length as 6006.


Hi murari,

File status '04' means Record length is incorrect.


Regards
icon_smile.gif
Back to top
View user's profile Send private message
rag swain

New User


Joined: 17 Dec 2007
Posts: 33
Location: pune,INDIA

PostPosted: Sat Jan 26, 2008 5:37 am    Post subject: Reply to: Job is abending file status='04'
Reply with quote

File status code '04' generally implies a sucessfull read of a record but the rec length is not same as the file attributes defined, mostly seen with VB files. Need to check status code for '00' with '04' after a read operation on the file if you want to process the record irrespective of its length to get rid of the error. There are two ways to deal with VB file processing. First one specify 'RECORD VARYING IN SIZE FROM MIN TO MAX CHARACTERS DEPENDING ON WS-LEN[S9(04) COMP]. Second one-define your VB file based on some record types and process each record according to rec types. You have to mention +4 bytes in LRECL in JCL as reserved for RDW for each record and BDW for each block.
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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