Want to take backup of file



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

Want to take backup of file

Postby artlk » Wed Mar 28, 2018 8:36 am

Hi,

I want to take backup of all dataset which starts with a particular high level qualifier with new high level qualifier

Ex: Original files starts with ART1.FILENAME.JCL TO ARU1.FILENAME.JCL

Like this i want to take backup all datasets which starts with ART1* TO ARU1*

Thanks in Advance!!
artlk
 
Posts: 1
Joined: Tue Nov 21, 2017 8:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Want to take backup of file

Postby steve-myers » Wed Mar 28, 2018 10:01 am

  1. The only "files" in operating systems derived from OS/360 and DOS/360 is data on magnetic tape between the beginning of the tape and a "tape mark" or "file mark;" or between two "file marks" or "tape marks." A "tape mark" and a "file mark" are the same thing.
  2. Your ART1.FILENAME.JCL and ARU1.FILENAME.JCL appear to be describing "data sets," not "files." Use the correct terminology.
It appears to me that you need instruction in methods to copy one data set to another data set. There are many IBM programs you can use to accomplish this task. Most of us have programs we like for this task, and documentation for these programs is readily available. Two of the most common: IEBGENER and the data set copy function in the sort program your site uses. Many people regard the data set copy function in the sort program as more efficient than IEBGENER. Preparing JCL to use these programs is a little more difficult since you have to determine where the output data set will be located, and if you propose to put the output data set on direct access storage, you have to determine its space requirement. We can't help you with that, as it depends on the space occupied by the input data set. Good luck. You now know enough to start your real research.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Want to take backup of file

Postby expat » Wed Mar 28, 2018 11:25 am

It also depends on the media of the datasets, using ADRDSSU would be so very easy for DASD datasets yet unusable for tape datasets.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Want to take backup of file

Postby willy jensen » Wed Mar 28, 2018 3:33 pm

Judging by the description, I would think that ADRDSSU is the best choice. But as expat says, only for disk dataset.
willy jensen
 
Posts: 467
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Re: Want to take backup of file

Postby steve-myers » Wed Mar 28, 2018 7:22 pm

Provided you are doing a disk to disk copy, as both expat and Mr. Jensen say, ADRDSSU might well be your best choice, especially if your goal is to copy a group of data sets in a single operation. I think you will find its command language to be rather difficult to master. But that's just my personal opinion.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Want to take backup of file

Postby prino » Wed Mar 28, 2018 8:12 pm

Why isn't anyone asking why the TS wants to make those backups, and why isn't anyone pointing out the obvious, ie that a new HLQ needs an ALIAS to be defined first, as not doing so will catalog the datasets in the Master Catalog, and that would be a pretty bad thing to do...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Want to take backup of file

Postby Robert Sample » Wed Mar 28, 2018 8:21 pm

as not doing so will catalog the datasets in the Master Catalog,
Only if the person has authority to write to the Master Catalog -- and few, if any, application programmers will have such authority. More likely the job will fail as soon as the first write is attempted to the Master Catalog. As a system programmer, I've done this accidentally a few times and had to re-catalog the data sets in the appropriate user catalog.
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


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post