Hi,
I have a file that was built by a HSM command and that has a few thousand
groups of records such as this:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2-
1- DFSMSHSM CONTROL DATASET - BACKUP DATASET-- LISTING ----- AT 10:34:25 ON
22/11/23 FOR SYSTEM=PRDX
DSNAME = FXS.FORMCONT.CM.B211021A.FMTFGL.R1V02L02.QA BACKUP FREQ = ***,
MAX ACTIVE BACKUP VERSIONS = ***
BACKUP VERSION DATA SET NAME BACKUP FROM BACKUP BACKUP
SYS GEN VER UNS/ RET BACKUP NEW
VOLUME VOLUME DATE TIME
CAT NMBR NMBR RET DAYS PROF NAME
OHSM.BACK.T280203.FXS.FORMCONT.B1301 TPV543 DVT554 21/10/28
03:01:07 YES 000 006 NO ***** NO N**
ENCRYPTION TYPE = ******* KEYLABEL =
****************************************************************
TOTAL BACKUP VERSIONS = 0000000001
DSNAME = FXS.FORMCONT.CM.B211021A.FMTWSG.R1V02L01.QA BACKUP FREQ = ***,
MAX ACTIVE BACKUP VERSIONS = ***
BACKUP VERSION DATA SET NAME BACKUP FROM BACKUP BACKUP
SYS GEN VER UNS/ RET BACKUP NEW
VOLUME VOLUME DATE TIME
CAT NMBR NMBR RET DAYS PROF NAME
OHSM.BACK.T291103.FXS.FORMCONT.B1301 TPV543 DVT361 21/10/28
03:11:17 YES 000 006 NO ***** NO N**
ENCRYPTION TYPE = ******* KEYLABEL =
****************************************************************
TOTAL BACKUP VERSIONS = 0000000001
I need to create a single record, from the records with "DSNAME =" and
"OHSM." with the dataset name from the first one (11(44)) and the volser
from the last (47(6)):
volser datasename
or
datasetname volser
Thank you for your help
Jack
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN