> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Edward Jaffe
> Sent: Friday, October 05, 2007 12:44 PM
> To: [email protected]
> Subject: Mass PDS Compress Without Volume Specification
> 
> 
> I've recently put together a service update procedure that starts by 
> invoking DSS to compress all PDS-type libraries whose data set names 
> match a given pattern. These are SMS-managed data sets and 
> will reside 
> on any of the volumes in the storage group.
> 
> I tried this and got the error shown:
> 
> |1PAGE 0001     5695-DF175  DFSMSDSS V1R08.0 DATA SET SERVICES     
> 2007.278 10:29
> |-  COMPRESS INCLUDE(EJES.PROD450*.**)
> | ADR101I (R/I)-RI01 (01), TASKID 001 HAS BEEN ASSIGNED TO COMMAND 
> 'COMPRESS'
> | ADR109I (R/I)-RI01 (01), 2007.278 10:29:21 INITIAL SCAN OF USER 
> CONTROL STATEMENTS COMPLETED.
> | ADR138E (001)-RI01 (01), REQUIRED (SUB)PARAMETER OF 'DDNAME 
> ' IS MISSING
> | ADR131E (001)-RI03 (01), ABOVE TEXT BYPASSED UNTIL NEXT COMMAND
> | ADR017E (001)-CLTSK(01), 2007.278 10:29:21 TASK NOT 
> SCHEDULED DUE TO 
> ERROR. TASK RETURN CODE 0008
> |0ADR012I (SCH)-DSSU (01), 2007.278 10:29:21 DFSMSDSS PROCESSING 
> COMPLETE. HIGHEST RETURN CODE IS 0008 FROM:
> |                          SYNTAX
> |                          TASK    001
> 
> It seems I must explicitly specify each of the volumes in the storage 
> group in order to compress these data sets using DSS!
> 
> The control statements shown below work. But, I don't like having to 
> specify every volume (or the data set pattern over and over for that 
> matter). Suppose volumes are added to or removed from the 
> storage group 
> in the future?
> 
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV0)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV1)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV2)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV3)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV4)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV5)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV6)
> COMPRESS INCLUDE(EJES.PROD450*.**) DYNAM(MVSPV7)
> 
> Is there another DFSMS utility I can use to compress all 
> PDS-type data 
> sets matching a given data set name pattern?
> 
> -- 
> Edward E Jaffe

Off hand, without having coded it, I'd say that I'd try to use REXX. I'd
OUTTRAP the contents of a LISTC. For each NONVSAM entry, I'd do a
LISTDSI to check. If the RC=0 and the DSORG=PO, then I'd ALLOCATE it and
then call IEBCOPY to do the actual compress. I think that ADRDSSU uses
IEBCOPY to do the actual compress.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to