View previous topic :: View next topic
|
Author |
Message |
balaji81_k
Active User
Joined: 29 Jun 2005 Posts: 155
|
|
|
|
Hi All,
I have created a REXX tool to trigger certain jobs for each test application as part of automation in my project . There are about 5 jobs for each test application where the tool trigger correctly all jobs . Now i need a last test job which will capture the output files created in all 5 jobs .
For example Last job will have steps, and in each step , i will provide the input file (Non GDG) and that input file name should be written in to output file and for GDG i will provided the recent generation (+0) and output file will have recent generation for the file. In all steps the output file remains the same and all the file names will be append in the output file.
Iam also trying this from my end , can anyone please help me ?
Thanks
Balaji K |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
It's not clear what you want to achieve. Sounds like your 'last job' is reading various inputs from earlier jobs which include non-GDG and GDG's, and you want to append all of this into one output file which will be a GDG. Is that correct? If that's the case you may be able to run one SORT or IEBGENER step with all the input files concatenated on the SORTIN or SYSUT1 DD and outputting to the same GDG on the SORTOUT or SYSUT2 DD. This assumes that all the input file DCB values are compatible. |
|
Back to top |
|
|
balaji81_k
Active User
Joined: 29 Jun 2005 Posts: 155
|
|
|
|
Hi Pete Wilson,
My Rexx TOOL triggers all 5 jobs for an application , in that i have defined first job as delete and define job for all the output files creates in each job.Then my rexx routine will submit each job at regular intervals . I want to define an another job and this job going to be a sixth job .Totaly there 10 output files created in 5 jobs . These 10 output files includes Non GDG / flat file or GDG (generation) file for example.
My sixth job contains 10 steps and each step will have input file name or
filename.gdg(+0) and output file will be same across 10 steps .In each step this output file will be append with the input file name . At last 11th step will be mail away for which i am sending mail with output file contents.
Hope now you are clear that what i want to achieve?
Thanks
Balaji K |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
balaji81_k wrote: |
... Then my rexx routine will submit each job at regular intervals . ... |
I think job schedulers (and that is what your code is doing) are not a subject allowed for discussion on these fora! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I think job schedulers (and that is what your code is doing) are not a subject allowed for discussion on these fora! |
We Completely discourage (and try to Not support discussion about) "write-your-own" scheduling code.
We do have a bit of activity with the "standard" scheduling software.
If you explain what you are really trying to accomplish (not implement your own scheduling process), someone may have a suggestion. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
I agree with Messrs. Prins and Scherrer that DIY schedulers are a bad idea -- and I say that as someone who has written several (and no, you may not have any of my code!) To the left, the test environment is often scanted of resources, and one of those resources is a professional-grade scheduler (which is why I have had to write several -- and you may still not have any of my code).
If you have a scheduler in your test environment, you should use that. Otherwise, we can talk about code that fulfills your purpose but is not a DIY scheduler. |
|
Back to top |
|
|
Anbarasan D
New User
Joined: 20 Apr 2010 Posts: 21 Location: USA
|
|
|
|
Balaji,
If all the files having same record format & rec length then you can give all 10 files in SORTIN and combine using simple sort
Code: |
//SORTIN DD DSN=<file1>,DISP=SHR
// DD DSN=<file2>,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
/* |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The issue here is the scheduling of the job(s) . . .
Concatenating inputs was mentioned eariler.
Thanks for posting
d |
|
Back to top |
|
|
|