Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

GDG backup whenever a version is created to another GDG file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: GDG backup whenever a version is created to another GDG file
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri May 16, 2008 5:00 pm    Post subject: Reply to: GDG backup.
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    Post subject: Reply to: GDG backup.
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

Site Director


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

PostPosted: Fri May 16, 2008 7:39 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat May 17, 2008 12:34 pm    Post subject:
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    Post subject: Reply to: GDG backup whenever a version is created to anothe
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat May 17, 2008 7:47 pm    Post subject:
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

Site Director


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

PostPosted: Sat May 17, 2008 11:30 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 20, 2008 12:32 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us