View previous topic :: View next topic
|
Author |
Message |
Alan Playford
New User
Joined: 22 Aug 2012 Posts: 48 Location: UK
|
|
|
|
Hi guys!
I am used to specifying DASD volume serials and generic volsers (e.g. first 2 or 3 chars of the volser) to Innovation's FDRABR to allow it to automatically select the matching volumes to backup to a tape.
But is there anything comparable in IBM's dfsmsdss? I know that SMS Storage Groups can be specified, but what if the volumes are not SMS managed? Can it still be done that way?
Anybody found a way (using REXX exec's or similar) to generate the codee to do such a thing?
Regards,
Alan |
|
Back to top |
|
|
Paul Voyner
New User
Joined: 26 Nov 2012 Posts: 52 Location: UK
|
|
|
|
The relevant parameter is INDYNAM, and it says in the DSS book
"You cannot specify a nonspecific volume serial number using an asterisk (*)". So that's a No, then.
You could do something clever with rexx to process a list of the volumes you want (every site has some tool to generate a list of volumes from a generic pattern) and build a list which you can supply as JCL to INDDNAME, or else as input statements for FILTERDD. |
|
Back to top |
|
|
Alan Playford
New User
Joined: 22 Aug 2012 Posts: 48 Location: UK
|
|
|
|
Thanks Paul.
That's the only way I can see of doing it too!
Certainly something that should be suggested as dss enhancement for the future, you feel!
Anybody got any sample REXX I can snaffle and adapt? |
|
Back to top |
|
|
Paul Voyner
New User
Joined: 26 Nov 2012 Posts: 52 Location: UK
|
|
|
|
Hi Alan, glad to help.
DCOLLECT can give you a list of volumes. Then just read into rexx, filter the volumes you want, and output in a format for the DSS job. Should only take a few minutes if you know your way around rexx.
DCOLLECT:
Code: |
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//O DD DSN=xxx.DCOLLECT.OUTPUT1,
// DSORG=PS,
// DCB=(RECFM=VB,LRECL=644,BLKSIZE=0),
// SPACE=(CYL,(1,1)),
// DISP=(NEW,CATLG,KEEP)
//SYSIN DD *
DCOLLECT OUTFILE(O) -
VOLUMES( *) -
NODATAINFO
//
|
Paul |
|
Back to top |
|
|
Alan Playford
New User
Joined: 22 Aug 2012 Posts: 48 Location: UK
|
|
|
|
Many thanks Paul!
Bit rusty on REXX, but I can read a manual!
I'll give this a go.
Thanks again! |
|
Back to top |
|
|
|