InterviewSolution
Saved Bookmarks
| 1. |
How can we convert a FB (Fixed block) file to VB (Variable block) file using a sort program? |
|
Answer» By using the FTOV option in SORT, you can convert a FB file to a VB file. Input RECORDS of fixed LENGTH are converted to output records of VARIABLE length using this parameter. VB files should have 4 extra bytes for RDW (Record Descriptor Word). Accordingly, the length of the record in the VB file is the RDW (4 bytes) + the actual length of the record. SORT parameters: SORT FIELDS=COPY OUTFIL FNAMES=SORTOUT1,FTOVHere, SORTOUT1 is the VB output file. If you input an 80-byte FB file, then the output will be an 84-byte VB file (4 bytes for RDW). |
|