Flashcopy - need some clarifications

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Flashcopy - need some clarifications

Post by diwz » Tue May 07, 2013 11:16 am

I am using flashcopy to backup datasets.

I am using the following control card

Code: Select all

 COPY DS(INCLUDE(Axxxx.OYUI.DB2.MASTER.T1)) -                    
 CANCELERROR OPTIMIZE(1) WAIT(2,2) TOL(ENQF) -                   
This code is working fine. It backups the dataset to target DS. How to specify a volume serial in the control card to backup the DS in the specified volume. Please help.

Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Tue May 07, 2013 10:03 pm

And what has this to do with JCL? There is not one line of JCL in your posted code.
And the answer to your query is: if the manual does not say then you cannot. But you can specify volser and unit in your JCL on the DD statement for your backup.

Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Wed May 08, 2013 2:13 pm

Below is the JCL

Code: Select all

//STEP02A EXEC PGM=ADRDSSU                                      
//SYSPRINT  DD SYSOUT=*                                         
//SYSOUT    DD SYSOUT=*                                         
//SYSIN     DD *                                                
 COPY DS(INCLUDE(AXXXX.OYUI.DB2.MASTER.T1)) -                   
 CANCELERROR OPTIMIZE(1) WAIT(2,2) TOL(ENQF) -                  
I have checked the Book Manager for specifying the volumes. Couldnot get any. Can you please help in getting that

Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu May 09, 2013 12:11 am

As Nic mentioned, it the manual does not provide the directions, it is probably not available.

Most organizations do not permit users to specify a particular volser. Why does someone believe this process needs to write to a specific volume?

Does the utility permit specifying a DD name for the target dataset? If so, and your system permits, you could insert a DD that points to the volume you want to use.

Keep in mind if you specify a particular volume and it is full, the job will abend - and i really prefer NOT having backups abend. Why not write the backup to extended cart or virtual tape (v-tape)?
Have a good one

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others