in reply to MCP Format Data
Assuming the answers are 'yes', 'yes', and 'no', then the logic runs like this pseudo code:
English Explaination --open input_file open output_file while (get-next-record) { rec_length = length(record) if (rec_length > 92) { Throw A Fit And Exit With An Error } else { record = " " x (92 - rec_length) . record ."crlf" write record to output_file } }
Read each record in your input, pad it on the left to 92 characters, append your line termination, and write the resultant string to a new file. Repeat until done-enough.
----
I Go Back to Sleep, Now.
OGB
|
|---|