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 2 datasets in a single step

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Wed Sep 10, 2008 12:50 am    Post subject: Backup 2 datasets in a single step Reply with quote

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


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Sep 10, 2008 1:15 am    Post subject: Reply with quote

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


Joined: 26 Nov 2002
Posts: 12368
Topics: 75
Location: San Jose

PostPosted: Wed Sep 10, 2008 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Wed Sep 10, 2008 1:23 pm    Post subject: Reply with quote

Yeah ... this helps Kolusu .. Thx
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Thu Sep 11, 2008 9:03 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Sep 11, 2008 2:04 pm    Post subject: Reply with quote

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


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Sep 12, 2008 1:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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