Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Assuming all of the files are VB, or FB with the same LRECL, you can use a DFSORT job like the following to do what you asked for. You can change the formatting of the date, time and count appropriately depending on what you want them to look like.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file1
// DD DSN=... input file2
// DD DSN=... input file3
// DD DSN=... input file4
// DD DSN=... input file5
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,HEADER1=(DATE=(4MD/),X,TIME=(24:)),
TRAILER1=(DATE=(4MD/),X,TIME=(24:),X,COUNT=(M11,LENGTH=8))
/*
|
SORTOUT might look like this:
Code: |
2006/12/19 07:38:32
record
...
2006/12/19 07:38:32 00000011
|
I assumed you wanted the count of just the input records. If you want the count of the input records + 2 for the header and trailer record, use:
Code: |
COUNT+2=(M11,LENGTH=8)
|
|
|