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 

Help needed - Creating a "pattern" dataset!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Feb 01, 2007 11:55 am    Post subject: Help needed - Creating a "pattern" dataset! Reply with quote

HI,

I am encountering a specific requirement where in I am supposed to create datasats based on a pattern. Let me explain:

1. The dataset should be like mydataset.USERID.V1.
2. The next time when the REXX TOOL is run, the version number should increase. Once the Version has reached 10, then the version#1 has to be over-written.
3. I am not supposed to use GDG for resolving this.
4. As I would be appending records using a routine while populating the dataset, I am bound to open the dataset in MOD option.

Please let me know if I am confusing.
I appreciate your valued comments and suggestions.

Thanks and Regards,
Vivek G
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Feb 01, 2007 12:16 pm    Post subject: Reply with quote

How do you plan to store the details of the last version used? Will there be some sort of external log to track this detail? Will there be some sort of pointer file (i.e. version V0 stores the last version location)?
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Feb 02, 2007 4:12 am    Post subject: Reply with quote

superk,

I would check for existence of the mydataset.USERID.V10; If its present, then I would start re-writing mydataset.USERID.V1.

I will be using SYSDSN function to check for existence.

Regards,
Vivek G
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Sat Feb 03, 2007 5:05 am    Post subject: Reply with quote

Doesn't your requirement 2 (overwrite) and 4 (mod) contradict?
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Feb 03, 2007 1:05 pm    Post subject: Reply with quote

Kevin's point is that after V10, you will have V1-V10 all in existence so you will never know which one was used last. You need to have some external indicator.
Back to top
View user's profile Send private message Visit poster's website
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Tue Feb 06, 2007 10:44 am    Post subject: Reply with quote

Kevin,

I am planning to have an external file to keep track of the version that is to be overwritten in case of the threshold (10) exceeding.

Dibakar,

I meant that the dataset that is being created (or overwirtten) is populated not at a stretch. Meaning, it is populated in particular streams. (One at a time.) So that's y i meant the file should be appended with data.

Thanks and Regards,
Vivek G
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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