I have a I/P & O/P VB File and the length of the file is 10504 in JCL including 4 bytes.
Each record in this file is of different length and i don't know the actual length's for each record.
Say record 1 is 100 bytes and then remaining 10400 bytes is having Nulls.
Say record 2 is 2000 bytes and then remaining 8500 bytes is having Nulls.
Say record 3 is 2000 bytes and then remaining 8500 bytes is having Nulls.
My problem is to convert only Trailing Nulls to Spaces.
I would appreciate if anyone responds to this posting.
Using VB records is a way of saving dasd space by wring to dasd only the data available and needed
do You realize that when converting VB to FB You might waste a tremendous amount of space
for example 1 track will hold approximately 540 100bytes records
if You convert these record to a fixed format with a record length of 10550
only 4 records will fit on a track and the space used to hold the 540 records will be 135 tracks r 9 cylinders..... meditate