MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Process GDG that are created today using REXX.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Tue Jul 22, 2008 10:58 am    Post subject: Process GDG that are created today using REXX. Reply with quote

Hi,

I have GDG base name as 'HQTSM.PROD.TS30015D.GDG', now when my job TS30015D runs it creates the GDG version as showm below:

HQTSM.PROD.TS30015D.GDG.G0001V00
HQTSM.PROD.TS30015D.GDG.G0002V00
HQTSM.PROD.TS30015D.GDG.G0003V00

My requiremnet is pick up only GDG generations using REXX that are created today only considering that TS30015D can run multiple times in a day?
Back to top
View user's profile Send private message
Martin
Beginner


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Mon Feb 01, 2010 6:08 pm    Post subject: Reply with quote

Hi All,

I am in similar situation wherein I need to copy the GDG versions which are created before given time ( thru a sort card). Is there a way to achieve this?

Thanks,
Martin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Feb 01, 2010 6:34 pm    Post subject: Reply with quote

shash_modi/Martin,

Check the DFSORT smart trick "Copy GDGs created today"

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094

PS: The create time of dataset can only be retrieved from SMF records.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Tue Feb 02, 2010 12:45 am    Post subject: Reply with quote

shash_modi,

Here is a rexx routine which will list all the generations created on a particular date.

Code:
Parse arg gdg crdate                                 
                                                     
 CALL OUTTRAP GDGlIST.                               
 "LISTCAT Level("gdg") ALL"                           
                                                     
 Do I = 1 TO GDGLIST.0                               
  If SUBSTR(GDGlIST.I,1,07) = 'NONVSAM' Then         
  Do                                                 
    K = I + 3                                         
    IF  SUBSTR(GDGlIST.K,53,10) = crdate then         
       Say SUBSTR(GDGlIST.I,17,40)                   
  End                                           
 End


Arguments are GDGbase name and date in yyyy.ddd format.

But i am not sure how to check whether these GDG's are created only by that particular job.. Question
_________________
Cheers
Sivaraj S

'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'


Last edited by s_shivaraj on Sun Feb 07, 2010 11:46 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Feb 02, 2010 3:06 pm    Post subject: Reply with quote

Quote:
will list all the versions created on a particular date.


Nothing in this topic has anything to do with versions. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Thu Feb 04, 2010 9:41 am    Post subject: Reply with quote

papadi wrote:
Nothing in this topic has anything to do with versions. . .
I'm pretty sure that OP meant "Generations" and not "versions" - on these boards, I usually see, these terms being used interchangeably quite often...but that's the world we live in.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Feb 04, 2010 10:22 am    Post subject: Reply with quote

If you UNCATLG the generations when processing them then you can easily retrieve all current generations each run. This method exploits the usefulness of the GDG concept.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Feb 04, 2010 3:14 pm    Post subject: Reply with quote

Quote:
but that's the world we live in.
Only if we choose to tolerate this bonk

Fortunately, there are still many professionals who find this unacceptable (and some of us even say so).

I've often wondered just how the misuse of version began. These are after all Generation Data Sets (not Version Data Sets). . . Smile
_________________
All the best,

di
Back to top
View user's profile Send private message
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Sun Feb 07, 2010 11:47 pm    Post subject: Reply with quote

papadi, Thanks for correcting that, what i meant was generation. Corrected my posting now.
_________________
Cheers
Sivaraj S

'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group