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
 

 

Check for current generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Check for current generation
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    Post subject:
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

Site Director


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

PostPosted: Tue Apr 07, 2009 8:41 pm    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Apr 07, 2009 8:47 pm    Post subject:
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Apr 07, 2009 10:48 pm    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

Thanks for sharing your solution.
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 Apr 09, 2009 1:01 am    Post subject:
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    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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am


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