MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prepending a file identifier to multiple files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 618
Topics: 172
Location: Stockholm, Sweden

PostPosted: Sun Jan 20, 2019 5:20 am    Post subject: Prepending a file identifier to multiple files Reply with quote

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
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sun Jan 20, 2019 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 618
Topics: 172
Location: Stockholm, Sweden

PostPosted: Sun Jan 20, 2019 9:14 am    Post subject: Reply with quote

Thanks NIC, such a simple solution. Sometimes you can't see the wood for the trees.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group