Frank Yaeger wrote:It's not clear what you're trying to do. Do you just want the trailer records or do you want the data records and the trailer records? Where does 'XYZ' come from in the trailer. Why isn't '000012' in the trailer? Why is the order M, U, B in the trailer? And so on.
To put my question in a bit more context, I've been asked to figure out how several jobs that run where I work currently could be achieved using icetool. In this case, i'm interested in trying to get my result into the one line trailer format that is currently produced. Ideally I'd like the data and the trailer in the same file at the end.
So, I want to be able to order M, B and U in the order they're currently ordered in and disgard the 000012. The XYZ is just static data, presumably used by whatever processes this trailer.
Frank Yaeger wrote: Please show an example of your input records (relevant fields only) and what you expect for output. Please explain the "rules" for getting from input to output using your example. Please explain the rules for constructing the trailer. Give the RECFM and LRECL of the input file. Give the starting position, length and format of all relevant fields.
The rule for output is fairly simple: Three fixed characters, M, number of occurances of M in column 69, U, number of occurances of U in column 69, B, number of occurances of B in column 69. This column 69 on the input is a character field.
The RECFM is FB, and the LRECL is 6561