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

GDG backup whenever a version is created to another GDG file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Fri May 16, 2008 4:56 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 16, 2008 5:00 pm
Reply with quote

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
View user's profile Send private message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Fri May 16, 2008 5:08 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri May 16, 2008 7:39 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat May 17, 2008 12:34 pm
Reply with quote

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
View user's profile Send private message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Sat May 17, 2008 7:18 pm
Reply with quote

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
View user's profile Send private message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Sat May 17, 2008 7:43 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat May 17, 2008 7:47 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat May 17, 2008 11:30 pm
Reply with quote

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
View user's profile Send private message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Mon May 19, 2008 5:29 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 20, 2008 12:32 pm
Reply with quote

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
View user's profile Send private message
gskn4u
Currently Banned

New User


Joined: 29 Feb 2008
Posts: 25
Location: hyderabad

PostPosted: Tue May 20, 2008 6:47 pm
Reply with quote

thanks Expat.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top