View previous topic :: View next topic
|
Author |
Message |
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
hi,
I need a JCL to take the backup of thousand of Datasets to a tape.
All the dataset names starting with 'DEV.REG'.
Any kind of file will be there such as PS,VSAM,GDG files.
It would be fine to have a single step for backup, instead of taking each file one by one.
Thanks in advance,
Chinna. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
chinna,
Quote: |
I need a JCL to take the backup of thousand of Datasets to a tape. |
You can use IEBGENER to copy datasets to TAPE.
Quote: |
All the dataset names starting with 'DEV.REG'. |
How are you going to get the names of all the datasets starting with those 2 qualifiers? I guess it would be better to create the JCL dynamically using REXX. It would be a cumbersome task to create the JCL manually.
Quote: |
It would be fine to have a single step for backup, instead of taking each file one by one. |
I don't think it can be copied in a single step. This is what i can think of
1)Have an instream PROC with a symbolic parameter for the DSN name.
2)Have different steps calling that PROC with a diff DSN name. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
What about dfsdss
something like..
Code: |
//DUMP EXEC PGM=ADRDSSU,REGION=choose_a_region_size(4M)
//*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DUMP DATASET(INCLUDE(Your_high_level_qualifier.**)) -
TOL(ENQF) ADMIN -
OUTDD(SYSUT2)
/*
//SYSUT2 DD UNIT=TAPE............
|
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
enrico,
As per your last post, all the datasets with that qualifier will be copied to a tape dataset specified in SYSUT2.
Is there any way to create one copy for every dataset with that qualifier? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
Is there any way to create one copy for every dataset with that qualifier? |
Why would You do that?
To have an output dataset for each input would mean :
1) a step for eachdataset
2) a command for each dataset
the performance would be terrible
the tape utilization horrible
the Jcl would need to dynamically prepared each time
GO FOR DFDSS !! :-)
If Your doubt is about the restore phase.. no problem there,
the include operand does not need to be a generic,
can also be a fully qualified ( specific ) dataset name
Code: |
RESTORE DATASET(INCLUDE(specific_dataset_name)) -
TOL(ENQF) ADMIN -
INDD(SYSUT1) -
RENAMEU(New_high_level_qualifier)
|
not sure about the syntax of the RENAMEU operand, please check the manual
or wait until my mvs is up |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Quote: |
Why would You do that?
To have an output dataset for each input would mean :
1) a step for eachdataset
2) a command for each dataset |
In our shop, we take the backups of few datasets in TAPE. We have a seperate step for each dataset as mentioned. We are taking the backup as the retention period of the original dataset is only 5 days.
e.g if all 5 datasets are backed up in TAPE and if i want to access the first dataset alone then how should i go about it? . Please throw some light on this. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
Please throw some light on this. |
/smiley on
the answer my friend is blowing into the wind
/smiley off
the answer is in the smartness of DFDSS and its INCLUDE operand
look at my previous append code sample |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
e.s,
Thanks for the details. |
|
Back to top |
|
|
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
Hi All,
Thanks for all of your replies.
i will try each thing one by one.
Regards,
Chinna. |
|
Back to top |
|
|
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
hi,
i need the ADRDSSU input options to delete the number of datasets starting with 'DEV.REG'
thanks in advance
Regards
chinna |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
hi,
The dataset backup jcl using ADRDSSU is working fine.
But i faced a little problem,when it comes to Migrated datasets.
i went through the manual but i could not find any info related to migrated datasets.
i need part of JCL which is used to dump all the datasets irrespective of migrated or normal file.
Thanks in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
But i faced a little problem,when it comes to Migrated datasets. |
HSM recalls them uh??
You cheated :-)
You didn' t tell You had HSM ...
What is wrong in letting HSM take care of backups ??? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
What is wrong in letting HSM take care of backups ??? |
Indeed, that is exactly what DFhsm was designed for. If you just want some short term backups let HSM do it.
Ask your storage group to setup the specific MGMTCLAS(s) and just sit back and let HSM do it all for you. |
|
Back to top |
|
|
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
hi all,
The HSM itself takes care of backups.
But my requirement is to take the backup of files in a single tape file and permanently delete the files online.
Anyway, i have got require JCL from your above replies.
Thanks,
Chinna. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What is a HSM backup file if not a single tape file ?
This sounds as if it may be an ongoing task, which is why I suggested the SMS solution. |
|
Back to top |
|
|
chinnaraj
New User
Joined: 01 Nov 2007 Posts: 17 Location: Chennai
|
|
|
|
hi,
The purpose is to remove the existing files from region and keep the backup in a single tape file instead of several tape file.
This is easy for maintanence.
Thanks,
Chinna. |
|
Back to top |
|
|
|