View previous topic :: View next topic
|
Author |
Message |
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
Hi
I need to backup GDG files whenever a version is created to another GDG file.
I want to differentiate the each file by putting a header or trailer or both and the header or trailer should be the date of creation of the GDG file which is getting backed up.
is there any utility to backup the file with header and trailer.
Thanks,
Santosh. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
speack To Your storage support group to understand the backup strategy Of Your organization
when creating a new gdg generation the old one is still there
why take a backup then ?? |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
I've put the GDG limit to 255. But still i need to take the backup. The job that creates the file runs 5 times a day.
so i have to take the cummulative backup to another file. to differentiate the file i wanted to the header which is the date of creation of that file. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
My recommendation would be to re-think the strategy.
The storage management process (cart or dasd) knows when datasets are created. I would use the already existing processes to keep track of when backups are created.
Also, if you add additional headers to these files, they will need special processing in order to be used. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not just issue a HSM HBACKDS command and let HSM take a backup ? Can be done in batch. Or whatever ILM software you use if not HSM.
Various other strategies available on request |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
Hi
Quote: |
I would use the already existing processes to keep track of when backups are created.
|
can you please elobrate the existing process in detail that you metioned above. To keep the date of generation was my thinking. I can put anything as header so that anyone can differentiate the file and would be easy for anyone who wants to search for a file. Can you please let me know the code for this.
Quote: |
Also, if you add additional headers to these files, they will need special processing in order to be used.
|
Can you please tell me the special processing and also the code if possible.
Quote: |
Various other strategies available on request
|
Can you please list out the strategies.
Thanks,
Santosh |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
I just wanted to backup the files to another GDG and this would be done weekly. So if i want to search for a particular promotion that ended on particular date, it would be easy if i backup with some header or trailer. For this reason i thought of putting the date of creation of the file as header.
BACKUP GDG
_____________
header1
<<file1>>
header2
<<file2>>
header3
<<file3>>
.
.
.
.
so on.
______________
If anyone one come up with code would make my problem easy.
Thanks,
Santosh.
[/b] |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I would still go with the HSM solution, for which you will need to talk with your storage people. This is a solution that I have implemented for someone before.
HSM will create a backup of the dataset automatically if specified in the SMS management class. The management class also specifies the retention period of a backup version after the original dataset has been deleted. So by talking with your storage people you can tell them the dataset name - GDG base - and how long it needs to be retained, and ask them to build a specific MGMTCLAS for your requirements.
Then you can sit back, job done. I believe that the creation date of a backup version can be retrieved from a simple HSM command, so you can then find out which generation, or close to, that you need. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
can you please elobrate the existing process in detail that you metioned above. |
I can't - this is site-specific. Your storage management people know what processes exist on your system.
Quote: |
Can you please tell me the special processing and also the code if possible. |
Again, the "special processing" would depend on how you implemented these (IMHO) unneeded headers.
You will be way ahead if you meet your requirement as Expat has suggested. |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
Hi Expat,
Quote: |
Can be done in batch. Or whatever ILM software you use if not HSM.
|
As you said that HSM solution can be done in batch. Can you provide with that code. I'll go with your suggession.
thanks,
Santosh G |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Code: |
//BACKUP EXEC PGM=ARCINBAK
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//ARCPRINT DD SYSOUT=*
//ARCSNAP DD SYSOUT=*
//BACK0001 DD DSN=GDG.BASE(+1),DISP=SHR
|
But you must talk with your storage people to ensure that the backup retention is to your requirement. |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
thanks Expat. |
|
Back to top |
|
|
|