Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

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

New User


Joined: 29 Jun 2005
Posts: 86

PostPosted: Wed Nov 21, 2012 11:15 am    Post subject: JCL -Capture the input file name + latest Generation of GDG
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Wed Nov 21, 2012 2:25 pm    Post subject:
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

New User


Joined: 29 Jun 2005
Posts: 86

PostPosted: Wed Nov 21, 2012 3:28 pm    Post subject: Hi
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

Active Member


Joined: 07 Feb 2009
Posts: 984
Location: Oostende, Belgium

PostPosted: Wed Nov 21, 2012 3:30 pm    Post subject: Re: Hi
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

Site Director


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

PostPosted: Wed Nov 21, 2012 8:04 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Wed Nov 21, 2012 9:24 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Dec 13, 2012 2:41 am    Post subject: Reply to: JCL -Capture the input file name + latest Generati
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 24 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us