vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Sun Aug 12, 2007 8:40 am Post subject: |
|
|
| 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 |
|