View previous topic :: View next topic |
Author |
Message |
naveen Beginner

Joined: 03 Dec 2002 Posts: 90 Topics: 31
|
Posted: Tue Mar 25, 2003 12:19 am Post subject: Stats. wiped out in copying |
|
|
While copying a member from one PDS to another using IEBGENER , the stats. (the information regarding Size,Created,Changed,ID) are wiped out. How can I keep these stats. intact , after copying the meber ? |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Mar 25, 2003 1:01 am Post subject: |
|
|
Use IEBCOPY instead. IEBGENER only copies the contents of the sequential file (the member being treated as a sequential file in this case). You need a utility that knows about the directory too. |
|
Back to top |
|
 |
naveen Beginner

Joined: 03 Dec 2002 Posts: 90 Topics: 31
|
Posted: Tue Mar 25, 2003 8:26 am Post subject: |
|
|
Any other method??? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Mar 25, 2003 11:08 am Post subject: |
|
|
Naveen,
You can use FILE-AID to update the ISPF stats for the member copied.
Code: |
//STEP0100 EXEC PGM=FILEAID
//*
//SYSLIST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DD01 DD DSN=YOUR PDS,
// DISP=SHR
//SYSIN DD *
$$DD01 UPDATE MEMBER=PLG01,
EDITALL=(1,0,C' ',C' '),PDSSTAT=A
/*
|
In here we are updating the member PLG01 for a space with a space , so there is nothing actually changed, but the parameter PDSSTAT=A will update the PDS statistics if they exist, or add statistics if they don't exist.
Hope this helps....
cheers
kolusu |
|
Back to top |
|
 |
|
|