Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8280
Location: Dubuque, Iowa, 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: 8280
Location: Dubuque, Iowa, 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
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us