Here's a Perl I wrote a while back to do just that. You can specify a
header and/or trailer file, desired output file name(s), etc. Download it
from here:
http://www.perlmonks.org/?node_id=366897
Enjoy! Let me know if you have questions or, if you add new features to the
code, let me know.
On 5/31/06, Robert Mills <[log in to unmask]> wrote:
>
> Greetings to the -L,
>
> Have a file, with following structure, where each
> TRANSMISSION-HEADER/TRANSMISSION-TRAILER block needs to be placed into a
> separate file.
>
> There will always be at least one
> TRANSMISSION-HEADER/TRANSMISSION-TRAILER block, HEADER/TRAILER block and
> DETAIL entry in the file.
>
> TRANSMISSION-HEADER,<transmission header data>
> HEADER,<header data>
> DETAIL,<detail data>
> DETAIL,<detail data>
> TRAILER,<trailer data>
> TRANSMISSION-TRAILER,<transmission trailer data>
>
> Anybody got a program or script (Perl/MPEiX/MPEX) that will do this
> (before I write my own in COBOL)?
>
> regards,
>
> Robert W.Mills
> MIS Systems Development Manager
> Windsong Services
> +44 (0)20 8309 3604
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|