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 

Backup of files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Thu Feb 06, 2003 4:36 am    Post subject: Backup of files Reply with quote

I need to backup 6 files and can i do it in a single step?
Currently i have coded 6 seperate backup steps for each file...

Thanks
_________________
Rasprasad S
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Feb 06, 2003 5:24 am    Post subject: Reply with quote

I guess SORT or FileAid can do that. I am not confident with any of the syntax but I guess following will work with fileaid -

Code:

//BACKUP EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01     DD DSN=SOURCE.FILE.1,DISP=SHR
//DD01O    DD DSN=BACKUP.FILE.1,DISP=SHR
//DD02     DD DSN=SOURCE.FILE.2,DISP=SHR
//DD02O    DD DSN=BACKUP.FILE.2,DISP=SHR
//DD03     DD DSN=SOURCE.FILE.3,DISP=SHR
//DD03O    DD DSN=BACKUP.FILE.3,DISP=SHR
//DD04     DD DSN=SOURCE.FILE.4,DISP=SHR
//DD04O    DD DSN=BACKUP.FILE.4,DISP=SHR
//DD05     DD DSN=SOURCE.FILE.5,DISP=SHR
//DD05O    DD DSN=BACKUP.FILE.5,DISP=SHR
//DD06     DD DSN=SOURCE.FILE.6,DISP=SHR
//DD06O    DD DSN=BACKUP.FILE.6,DISP=SHR
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
$$DD01 COPY
$$DD02 COPY
$$DD03 COPY
$$DD04 COPY
$$DD05 COPY
$$DD06 COPY


Diba
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Feb 06, 2003 11:37 am    Post subject: Reply with quote

The DFSORT/ICETOOL job would be:

Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=...  input file 1
...
//IN6 DD DSN=...  input file 6
//OUT1 DD DSN=...  output file 1
...
//OUT6 DD DSN=...  output file 6
//TOOLIN DD *
  COPY FROM(IN1) TO(OUT1)
  ...
  COPY FROM(IN6) TO(OUT6)
/*

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nxn00
Beginner


Joined: 02 Dec 2002
Posts: 18
Topics: 0
Location: US

PostPosted: Thu Feb 06, 2003 8:27 pm    Post subject: Reply with quote

rasprasads,

Solutions proposed by Dibakar and Frank will certainly work well.

But you have to look at the big picture. How will the backups be used?

Will you need to restore in case of a job abending? If so, a restore job must be created.

What is the structure of the files being backed up? VSAM or flat files?

I bring this up because we were burned last week by a less than correct restore job involving VSAM files! We had a restore job; it just didn't do the right thing! Shocked
_________________
Natalie
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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