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 

Updating different stats to on different members

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


Joined: 07 Apr 2004
Posts: 5
Topics: 3

PostPosted: Fri May 14, 2004 11:50 am    Post subject: Updating different stats to on different members Reply with quote

Hi all,

Stats are wiped out while creating new members from existing members in a single PDS. Each old member has been updated last by different users and I want to save the same stats on the new members. Please suggest a code/method to this.

Thanks

Kiran
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: Fri May 14, 2004 12:26 pm    Post subject: Reply with quote

kiranmvs,

If you have file-aid at your shop then you can use to copy the old member as a new member with ISPF stastics.

Code:

//STEP0100 EXEC PGM=FILEAID,REGION=4M         
//SYSPRINT DD  SYSOUT=*                       
//SYSLIST  DD  SYSOUT=*                       
//DD01     DD  DSN=YOUR SOURCE PDS,         
//             DISP=SHR                       
//DD01O    DD  DSN=YOUR SOURCE PDS,       
//             DISP=SHR                       
//SYSIN    DD  *                             
$$DD01 COPY MEMBER=OLDNAME,NEWMEM=NEWNAME
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kirmvs
Beginner


Joined: 07 Apr 2004
Posts: 5
Topics: 3

PostPosted: Fri May 14, 2004 1:31 pm    Post subject: Reply with quote

Kolusu,

The new members are not just a copy of the original members. I have a REXX code which replaces a specific line from the old structure and creates a new member but I could not figure out a way to retain/copy the stats. I am not sure if the file-aid code you gave, could be modified to suit this. Please let me know the changes as I am new to File-Aid.

Thanks

Kiran
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: Fri May 14, 2004 3:09 pm    Post subject: Reply with quote

Kiran,

When you replace a string in old member, the ISPF stats are updated. Now do you want these stats to be copied to the new member also?

File aid has the option of updating or skip updating the ISPF stats

The Parm PDSSTAT maintains PDS member statistics when updating partitioned datasets. It maintains only standard PDF directory entries.The parameter is valid only with the UPDATE function. The syntax of the PDSSTAT parameter is:
Code:

   PDSSTAT=x


Valid values for the x parameter are:

Code:

Y -   Update PDS statistics if they exist
N -   Do not update PDS statistics
A -   Update PDS statistics if they exist, or add statistics if they do not exist.


The following JCl will update the oldmember and create a new member also

Code:

//STEP0100 EXEC PGM=FILEAID,REGION=4M               
//SYSPRINT DD  SYSOUT=*                             
//SYSLIST  DD  SYSOUT=*                             
//DD01     DD  DSN=YOUR SOURCE PDS,             
//             DISP=SHR                             
//DD01O    DD  DSN=YOUR SOURCE PDS,               
//             DISP=SHR                             
//SYSIN    DD  *                                     
$$DD01 UPDATE MEMBER=KIRANK,                       
              EDITALL=(1,0,C'STRING TO BE REPLACED',C'REPLACING STRING'), 
              PDSSTAT=A                             
$$DD01 COPY MEMBER=KIRANK,NEWMEM=KOLUSU           
/*                                                   


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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