The length in the length field in the structure field introducer must match the number of bytes in the record, including this length field, excluding the X'5A' byte. The length of the record (RDW) is this length plus 1 for the X'5A'.
So, for the VB format, the length must be consistent. Adjust your program to fill in the actual length when writing VB records instead of keeping the FB length (Why would you want to write VB records instead of FB record if not to save space in the file?) -- Peter Hunkeler CREDIT SUISSE AG ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html