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

Check for current generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Tue Apr 07, 2009 10:49 am
Reply with quote

I have a requirement where the job should continuously run until the latest generation is XCOM from other mainframe server. In order to check for latest generation i can check either creation date of the generation or the file it self contains header records with creation date. By checking any of the above i can find latest generation.

If any one worked on similar issue or have a good approach to solve the problem, please let me know.

Thanks,
Surya
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Apr 07, 2009 4:40 pm
Reply with quote

To check the creation date of a GDG files use LISTCAT

Code:

LISTC ENT('GDG base ') ALL
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: Tue Apr 07, 2009 8:41 pm
Reply with quote

Hello,

Quote:
I have a requirement where the job should continuously run until the latest generation is XCOM from other mainframe server
How does a job "run continuously" using a qsam file as input?

I suspect/assume the the file that arrives via XCOM is qsam?

If you describe what you want to do in more detail, someone may have a suggestion.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 07, 2009 8:47 pm
Reply with quote

Quote:
How does a job "run continuously" using a qsam file as input?
Infinite loop?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Apr 07, 2009 10:47 pm
Reply with quote

Robert Sample wrote:
Quote:
How does a job "run continuously" using a qsam file as input?
Infinite loop?

Ahh yes -- my kind of job. A CPU eater upper. icon_lol.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 07, 2009 10:48 pm
Reply with quote

If only I worked for a hardware vendor ... sigh.
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Wed Apr 08, 2009 10:21 am
Reply with quote

Thank you all for the response any way i dropped the plan of making job wait till the file received from other server icon_smile.gif. I understand its a very bad approach.

I modified the way jobs are going to be executed which will ensure the latest file is already in place prior to the job run.

Thanks,
Surya
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Apr 08, 2009 9:42 pm
Reply with quote

Thanks for sharing your solution.
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 Apr 09, 2009 1:01 am
Reply with quote

Hello,

Quote:
i dropped the plan of making job wait till the file received from other server
Something you might consider is having the job defined to the schedule to be triggered when the file is received.

Your scheduling people will be able to help with the schedule setup.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Check data with Exception Table DB2 0
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top