IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL -Capture the input file name + latest Generation of GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
balaji81_k

Active User


Joined: 29 Jun 2005
Posts: 155

PostPosted: Wed Nov 21, 2012 11:15 am
Reply with quote

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

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Wed Nov 21, 2012 2:25 pm
Reply with quote

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

Active User


Joined: 29 Jun 2005
Posts: 155

PostPosted: Wed Nov 21, 2012 3:28 pm
Reply with quote

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Nov 21, 2012 3:30 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 21, 2012 8:04 pm
Reply with quote

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Nov 21, 2012 9:24 pm
Reply with quote

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

New User


Joined: 20 Apr 2010
Posts: 21
Location: USA

PostPosted: Thu Dec 13, 2012 1:38 am
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 13, 2012 2:41 am
Reply with quote

Hello,

The issue here is the scheduling of the job(s) . . .

Concatenating inputs was mentioned eariler.

Thanks for posting icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top