In an MVS environment, I have a COBOL program to read a variable length input file that is a database dump. The fields are variable length, with a delimiter char between fields. The program will also read in a COBOL copybook that has each field defined with a maximum size, i.e. PIC X(014). The program creates a table of field lengths based on the PIC clauses, and then works through each record to expand each field to its fixed maximum length. The problem I have is with the output file - I want the program to be generic enough to work for several different files, so the output record will be fixed length in each execution, but a different length for different executions (different input file/copybook). I would like to define the output record to be long enough to handle all the files, and then let the JCL dictate the actual length of each output file. Any ideas?