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

Program is failing because of file status '04'


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top