How to take backup of huge number of datasets



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to take backup of huge number of datasets

Postby skankatala » Fri Jan 06, 2012 10:17 am

I have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.

Now, I am doing this manually...

How to automate this process?


Thank you....
skankatala
 
Posts: 42
Joined: Sun Dec 11, 2011 9:45 am
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: How to take backup of huge number of datasets

Postby dick scherrer » Fri Jan 06, 2012 10:26 am

Hello,

JCL cannot do this.

Depending on how you want to implement a process, various utilities, rexx, cobol, or something else could be used to implement such a process.

i have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.
What do you want to do really. . . Copy the datasets in the list or some set of "JCLs" to tape?

You need to provide a clearer description of that you have (some sample data from the PS file) and what you want as output. Should each "thing" be copied to a separate tape or should a multi-file volume be created or something else.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to take backup of huge number of datasets

Postby skankatala » Fri Jan 06, 2012 11:06 am

MTPLV01.MAJORDS.ASDFATTB.D5010.G1293V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1294V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1295V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1296V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1297V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1298V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1299V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1300V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1301V00


This is the sample file. It has list of data sets. All of those are in Disk.
I need to copy them on to Tape individually .
Tape data set should start with different Qualifier,
for ex The output dataset should be like MTPLVTD.MAJORDS.ASDFATTB.D5010.G1293V00

Please let me know any automation process for this....
skankatala
 
Posts: 42
Joined: Sun Dec 11, 2011 9:45 am
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: How to take backup of huge number of datasets

Postby NicC » Fri Jan 06, 2012 11:34 am

You should look at ADRDSSU to see if that will do what you need as it IS the approved IBM backup software. If you want what you describe then you will need to write a program to read your dataset with its list of datasets and for each dataset generate a the copy JCL for whichever utility you want to use - IEBGENER probably. You can then have your program submit the job or save it for manual submission afterwards. Your best bet would be to use Rexx and ISPF File Tailoring. Samples are on the forum (as is this question in various guises so I assume you disobeyed the forum rules and did not search before posting)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to take backup of huge number of datasets

Postby Peter_Mann » Fri Jan 06, 2012 8:46 pm

skankatala wrote:I have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.

Now, I am doing this manually...

How to automate this process?


Thank you....

ADRDSSU is great if you want to copy all datasets to a single backup tape, maybe another solution is to create a simple inline proc using IEBGENER , IDCAMS or whatever utility suites you best.
I have used inline procs to copy PDS's using IEBCOPY and copy sequential files using IEBGENER, here's a sample
 //COPY     PROC                                       
//COPY     EXEC  PGM=IEBGENER,REGION=0M                                 
//SYSPRINT DD  SYSOUT=*                                       
//SYSUT1        DD  DSN=&IDSN,                                     
//              DISP=SHR 
//SYSUT2        DD  DSN=&ODSN,                                     
//              DISP=SHR
//SYSIN     DD DUMMY                                                   
//            PEND                                               
//A  EXEC COPY,IDSN=MTPLV01.MAJORDS.ASDFATTB.D5010.G1293V00,
//            ODSN=MTPLVTD.MAJORDS.ASDFATTB.D5010.G1293V00
//B  EXEC COPY,IDSN=.....,ODSN=.....
etc
                 

SYSUT2 will need to be modified, DISP, UNIT,.....etc according to your site standards.
just repeat the EXEC COPY proc statement for how many datasets you need to copy or backup.
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times

Re: How to take backup of huge number of datasets

Postby dick scherrer » Sat Jan 07, 2012 12:01 am

Hello,

Yup, the inline proc will give you what you want and does have a bit of flexability.

If you create an individual output file for each input, suggest you use the sort product in use on your system - the sort is extremely faster than the original IEBGENER. If your system automatically executes the sort product (under the covers) for simple IEBGENER executions, this will not improve the performance.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to take backup of huge number of datasets

Postby Peter_Mann » Sat Jan 07, 2012 12:28 am

dick scherrer wrote:Hello,

Yup, the inline proc will give you what you want and does have a bit of flexability.

If you create an individual output file for each input, suggest you use the sort product in use on your system - the sort is extremely faster than the original IEBGENER. If your system automatically executes the sort product (under the covers) for simple IEBGENER executions, this will not improve the performance.


Agree, I've have a number of JCL's using different utilities based on requirments, for the OP's requirements to backup large files, SORT would be my first choice
Peter
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times

Re: How to take backup of huge number of datasets

Postby skankatala » Sat Jan 07, 2012 12:08 pm

Currently I am using a SORT utility to copy a dataset from tape to disk.

I need an advise to read a dataset name from the ps file and i need to give that as input to my jcl and the output dataset name also same as input dataset except the first qualifier.

This loop should repeat for each and every dataset.

NOTE: First qualifier of All the input datasets are same. So the output should be same as input dataset except the first qualifier.

If input dataset names are like below :

MTPLV01.MAJORDS.ASDFATTB.D5010.G1293V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1294V00
MTPLV01.MAJORDS.ASDFATTB.D5010.G1295V00


The output dataset names should be:

TSMABC.MAJORDS.ASDFATTB.D5010.G1293V00
TSMABC.MAJORDS.ASDFATTB.D5010.G1294V00
TSMABC.MAJORDS.ASDFATTB.D5010.G1295V00


I am trying to automate this process.
Please help me...

Please let me know if you need any other information.
skankatala
 
Posts: 42
Joined: Sun Dec 11, 2011 9:45 am
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: How to take backup of huge number of datasets

Postby BillyBoyo » Sat Jan 07, 2012 12:49 pm

You need a program. What mainframe languages are you familiar with?

You have two input files. One is an "outline" or "skeleton" of the jcl you want for the sort. The other is your list of datasets.

You take the first from your list of datasets. You make from it a new name with the desired HLQ, You take those two names and apply them to the outline/skeleton giving you a complete piece of JCL. You write that to an output file. Continue until end.

There are a couple of details, like whether you have a Job for each dataset combination (easier) or a step (have to look at max-number of steps)? Do you want to subit all the jcl at once, or do you want to store in a PDS? Do you want to use the Internal reader? Etc.

However, all of those can be dealt with (largely) through changing the outline/skeleton once you have the basic program up.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to take backup of huge number of datasets

Postby skankatala » Sat Jan 07, 2012 2:13 pm

BillyBoyo wrote:You need a program. What mainframe languages are you familiar with?

You have two input files. One is an "outline" or "skeleton" of the jcl you want for the sort. The other is your list of datasets.

You take the first from your list of datasets. You make from it a new name with the desired HLQ, You take those two names and apply them to the outline/skeleton giving you a complete piece of JCL. You write that to an output file. Continue until end.

There are a couple of details, like whether you have a Job for each dataset combination (easier) or a step (have to look at max-number of steps)? Do you want to subit all the jcl at once, or do you want to store in a PDS? Do you want to use the Internal reader? Etc.

However, all of those can be dealt with (largely) through changing the outline/skeleton once you have the basic program up.



Hello Billy....

What ever you understand the problem is exactly correct. I am not familier with other languages. So, I am trying to fulfill this request with JCL. It would be good, if one step that accepts my input, output datasets and that should be a procedure. So that I can call the same procedure again and again.
skankatala
 
Posts: 42
Joined: Sun Dec 11, 2011 9:45 am
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post