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

How to capture the change date of members of a PDS using ...


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pradeepkit
Warnings : 1

New User


Joined: 25 Jun 2008
Posts: 60
Location: chennai

PostPosted: Tue Aug 12, 2008 7:28 pm
Reply with quote

Hi,

I am creating the backup of the components from the package.
The backup we need each day.
If there is any change in the component the backup is taken for that component only.

I have only problem if i can get the change date of the component then i will check it to be current date as we are taking backup daily. If same then backup is taken.

please help me..............................
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Tue Aug 12, 2008 9:35 pm
Reply with quote

Can you explain more about 'component' and 'package'? Are any of them datasets or PDS member names?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Aug 12, 2008 10:44 pm
Reply with quote

Is this a similar request you your other topic regarding Changeman?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 13, 2008 11:29 am
Reply with quote

Pradeep,

How is this topics related to REXX? What do you want to do with REXX?
Back to top
View user's profile Send private message
pradeepkit
Warnings : 1

New User


Joined: 25 Jun 2008
Posts: 60
Location: chennai

PostPosted: Wed Aug 13, 2008 9:14 pm
Reply with quote

this tool is to be made in rexx.

i have done almost everything except i am not able to find the change date of the member of a pds.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 13, 2008 9:48 pm
Reply with quote

The change date for a member of a PDS may or may not exist depending on how the member was changed!
Back to top
View user's profile Send private message
nkumar

New User


Joined: 09 Mar 2008
Posts: 28
Location: USA

PostPosted: Sat Aug 23, 2008 3:22 pm
Reply with quote

Hi Pradeep,

I also had similar query . You can refer the link below for solution.

ibmmainframes.com/viewtopic.php?t=33541&highlight=
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Aug 23, 2008 4:59 pm
Reply with quote

If you are trying to create a new tool to be used with a library management package
for example, trying to implement an archival tool
I would suggest you read the documentation for your management system.
The documentation will tell you how to properly interface, sort of like explaining its APIs.

As previously stated:
you can not trust pds/pds-e member statistics. They are tooooo easy to change,
thus rendering them useless.

Whereas the management system has all the statistics you need,
the documentation will tell you how to access the info and how to access the data to be archived,
to insure that you are creating a professional archiving tool,
and that you archive the appropirate data.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Aug 23, 2008 5:42 pm
Reply with quote

An extremely valid point from Dick. It only takes one bright spark using option 3.5 to wipe out the ISPF statistics for the whole PDS in one go.

Also, if a member is created by using the CREATE command from SDSF then there are usually no statistics generated by the creation.

SMF data does not track member updates. creation or deletion.

So unless you are using a proprietry software package then you will need to look closely at how access to the members is granted, and controlled. It can be done quite well using RACf and named program access, but you will need to implement a logging mechanism to create your audit trail.

But of course, if you are not using ISPF based libraries the majority of the above comments may or may not be applicable icon_eek.gif
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Sun Aug 24, 2008 5:51 am
Reply with quote

I'd run an IEHLIST and parse the output. That way you can save changes due to ANY change of ISPF statistics AND changes to the TTR. When a member is saved, the TTR should change, even if there are no ISPF statistics. When you compress the data set, all TTRs can change, but it is better to save too many copies of the data than to not save enough. type TSO ISRDDN;M ISPMLIST for an example of invoking IEHLIST from Rexx. If you want even better control, you could read each member and save some sort of hash of its contents (CRC, MD5SUM, etc, but you' have to write that).
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Mon Aug 25, 2008 9:37 pm
Reply with quote

Quote:
you could read each member and save some sort of

1. Make a copy of the dataset every day.

2. Run SUPERC to see what changed.

3. Replace the copy with current dataset.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 12:53 pm
Reply with quote

Hi Pradeep,

Was searching for something else for me anyhow got this link- might help you, have a look..

ibmmainframes.com/viewtopic.php?t=23109&highlight=smf
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
Search our Forums:

Back to Top