Copying 100 PS



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

Copying 100 PS

Postby nm992 » Wed Oct 06, 2010 2:05 pm

Hi,

I need to take back up of around 100 Ps files.I have all PS file name in another PS.How do I take back up of all datasets using JCL.
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copying 100 PS

Postby Robert Sample » Wed Oct 06, 2010 3:02 pm

Use the JCL to execute a program to do the backups, of course. Since JCL does nothing but execute programs anyway, just what kind of answer did you expect?

Talk to your site support group and find out which products are installed at your site to do backups. DF/DSS (ADRDSSU) is the IBM utility for doing backups, although others can be used. There are also independent software vendor products that can do backups. Which are installed at your site? Only your site people will know for sure.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Copying 100 PS

Postby nm992 » Wed Oct 06, 2010 5:37 pm

I regret for mentioning back up..

I meant I need to copy 1 PS to another,But there are hundred such PS.I used IEBGENER to copy 1 by one.Can IEBGENER be used to copy 100 PS file at once.
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copying 100 PS

Postby Robert Sample » Wed Oct 06, 2010 6:00 pm

IEBGENER allows for one SYSUT1 (input) DD statement and one SYSUT2 (output) statement. You could do this by using IDCAMS REPRO (requiring one input and one output DD statement per file to be copied -- along with the REPRO utility statement for each), or by making a backup using DF/DSS of the high level qualifier (assuming there's a common set of data set name nodes for the 100 data sets) and restoring the data sets to the new high level qualifier, or by coding up 100 IEBGENER steps to execute..

The best choice would be to contact your site support group, explain what you're trying to do, and see what they recommend. There may be an installed package that would do this for you with very little effort -- but if you don't ask, you won't know.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Copying 100 PS

Postby nm992 » Fri Oct 08, 2010 9:37 am

Thanks..

I am copying with the exact names..but HLQ being different..DOinf it thru IEBGENER copying it 100 times,may not be a feasible option..

Using Repro also..Can I include a PS which has all PS names which needs to be copied?
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copying 100 PS

Postby NicC » Fri Oct 08, 2010 10:10 am

If your HLQ is different between datasets then you will have to hand code one-by-one. Generics can be used by IDCAMS and DF/Dss but not on the HLQ.
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: Copying 100 PS

Postby dick scherrer » Fri Oct 08, 2010 10:12 am

Hello,

DOinf it thru IEBGENER copying it 100 times,may not be a feasible option..
I hesitate to mention this, but often we actually have to do some work. . .

If you put all of the dataset names in a file, you could read this file and generate the copy jcl for all 100 files.

If you create one set of copy jcl it can be cloned 100 times in a very short amount of time (10-15 minutes maybe).

If you create an inline PROCedure of a copy step with the dataset name as a symbolic parameter, you could clone 100 EXEC statements in a few minutes also. You could also read the file of dataset names to generate the EXEC statements.
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: Copying 100 PS

Postby enrico-sorichetti » Fri Oct 08, 2010 11:01 am

if the dataset have some common pattern the fasset way would be a DFDSS copy
otherwise You will have to specify the one by one,
but even in this case DFDSS is useful
the advantage is that You do not have to allocate them by hand, a DFDSS copy will allocate
with the same space characteristics of the source

spmething along the lines of

  COPY DATASET (
    INCLUDE ( <some dataset pattern> ) -
    ) -
   ADMIN RENAMEU(<the new high level qualifier>) 


read the dfdss manuals
and keep executing it with PARM='TYPRYN=NORUN'
when the filtering is what You want , take away the PARM for the final go
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post