View previous topic :: View next topic |
Author |
Message |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 618 Topics: 172 Location: Stockholm, Sweden
|
Posted: Sun Jan 20, 2019 5:20 am Post subject: Prepending a file identifier to multiple files |
|
|
I'm working on a way to simplify regression testing. The final step in the JCL will be to catenate the output files into one file before FTP'ing them to the PC where the before and after results can be compared using Exam Diff or Beyond Compare or similar.
If I catenate all the files, then as soon as there's a discrepancy, the developer's going to have a bit of a hard time figuring out which file the discrepancy belongs to.
Therefore, my idea was to try and prepend a text string along the lines of
Quote: |
The following records belong to aaaa.bbbb.cccc
|
that way they simply look for this string to know which file is "in error".
I am open to either IEBGENER or DFSORT but am wondering what the JCL might look like.
Note that JCL will probably be generated via a rexx script and skeletons, so any "unusual" methodology shouldn't be a problem. _________________ Michael |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sun Jan 20, 2019 7:11 am Post subject: |
|
|
Use Rexx to generate a dataset with the dataset name in it and concatenate before the actual dataset. e.g.
Code: |
//SYSUT1 DD DSN=DATASET.ONE.NAME,DISP=SHR
// DD DSN=DATASET.ONE.DATA,DISP=SHR
// DD DSN=DATASET.TWO.NAME,DISP=SHR
// DD DSN=DATASET.TWO.DATA,DISP=SHR
etc |
_________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
misi01 Advanced
Joined: 02 Dec 2002 Posts: 618 Topics: 172 Location: Stockholm, Sweden
|
Posted: Sun Jan 20, 2019 9:14 am Post subject: |
|
|
Thanks NIC, such a simple solution. Sometimes you can't see the wood for the trees. _________________ Michael |
|
Back to top |
|
|
|
|