View previous topic :: View next topic
|
Author |
Message |
Murari Chakrakodi
New User
Joined: 26 Sep 2007 Posts: 13 Location: Bangalore,India
|
|
|
|
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 |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
Hi,
file Status '04' is 'WRONG LENGTH RECORD'.In ur case,record length 6006 is not correct.
Regards
|
|
Back to top |
|
|
Murari Chakrakodi
New User
Joined: 26 Sep 2007 Posts: 13 Location: Bangalore,India
|
|
|
|
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 |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
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
|
|
Back to top |
|
|
rag swain
New User
Joined: 17 Dec 2007 Posts: 33 Location: pune,INDIA
|
|
|
|
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 |
|
|
|