View previous topic :: View next topic |
Author |
Message |
arvibala Beginner
Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Wed Sep 10, 2008 12:50 am Post subject: Backup 2 datasets in a single step |
|
|
Hi,
I have 2 flat files
DATASET.FLATFIL1 AND DATASET.FLATFIL2.
I want to take backup of these 2 flat file in a single step. Using IEBGENER it will take 2 steps.
Thanks _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Wed Sep 10, 2008 1:15 am Post subject: |
|
|
Take a look at DFdss by clicking HERE _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12368 Topics: 75 Location: San Jose
|
Posted: Wed Sep 10, 2008 11:29 am Post subject: |
|
|
arvibala,
You can use DFSORT ICETOOL to perform the backup. Sample job
Code: |
//STEP0100 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=DATASET.FLATFIL1,DISP=SHR
//IN2 DD DSN=DATASET.FLATFIL2,DISP=SHR
//OUT1 DD DSN=BACKUP.DATASET.FLATFIL1,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//OUT2 DD DSN=BACKUP.DATASET.FLATFIL2,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//TOOLIN DD *
COPY FROM(IN1) TO(OUT1)
COPY FROM(IN2) TO(OUT2)
/*
|
Hope this helps...
Cheers _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
arvibala Beginner
Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Wed Sep 10, 2008 1:23 pm Post subject: |
|
|
Yeah ... this helps Kolusu .. Thx _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
|
arvibala Beginner
Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Thu Sep 11, 2008 9:03 am Post subject: |
|
|
Hi Kolusu and all,
By your experience can you tell me which is the better way of taking backup. Using this Sort tool or with 2 IEBGENER steps?
Thanks _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Sep 11, 2008 2:04 pm Post subject: |
|
|
I am not sure but I think IEBGENER is an alias for ICEGENER which is, I belive, what DFSORT uses to do straight copies.
If you need a copy then iether method is fine, if you need a backup then ADRDSSU is the tool to use - that is its function in life - backup and restore _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Fri Sep 12, 2008 1:31 am Post subject: |
|
|
That's why I suggested it, for SORT & GENER you need to add the input and output datasets for every change, with Dfdss you only need change the control statement(s). _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
|
|