MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Browsing the dataset throwing error "Invalid block size
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Sun Aug 12, 2007 8:40 am    Post subject: Reply with quote

AshuSharma wrote:
Hi all,

I used
RECFM=VB,LRECL=32756,BLKSIZE=32760
and it worked...

There were two problems which I could found

1. RECFM=VB,LRECL=32756,BLKSIZE=0
does not work, the system was not automatically setting it correctly...
It was throwing error - "Invalid Record Length"...

2. The C program was not somehow reading this file correctly
After correcting the code, it was reading the file, and now I am able to browse it...

THANKS A LOT EVERYONE...



AshuSharma,

RECFM=VB,LRECL=32756,BLKSIZE=32760

The above DCB parameters worked fine,because you have to add a value of 4,since the file record format is of VB type.The first four bytes of the VB file contains the length of the record,so the blksize should be a multiple of LRECL + 4bytes.If it is a FB type then giving the multiple of LRECL will do fine i.e 32756 * 1==>32756


CHEERS,
VJ
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group