Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
I may be mistaken, but if the input is fixed and you do not specify the new output variable length will the new file not be the original length with an added 4 bytes (rdw) making the file actually larger?
I believe the process needs to read the original file and depending on content, format new variable length records. Then anything that is to use this has to be changed to handle the variable length records.
Joined: 14 Mar 2007 Posts: 8686 Location: Back in jolly old England
Not sure I follow the logic here. If all of the input records are FB, where is the DASD saving coming from. Surely all fields of the records are all fully populated so in fact you would be using 4 extra bytes per record instead of saving space.
Assuming that the last field does not use all of the allocated length.
What about the programs that access the file, won't they need to be amended to reflect the change in blocking used.