View previous topic :: View next topic |
Author |
Message |
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Thu Feb 06, 2003 4:36 am Post subject: Backup of files |
|
|
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 |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Feb 06, 2003 5:24 am Post subject: |
|
|
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 |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Thu Feb 06, 2003 11:37 am Post subject: |
|
|
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 |
|
|
nxn00 Beginner
Joined: 02 Dec 2002 Posts: 18 Topics: 0 Location: US
|
Posted: Thu Feb 06, 2003 8:27 pm Post subject: |
|
|
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! _________________ Natalie |
|
Back to top |
|
|
|
|