Can you please provide a sample of using RSVP to generate $SM COMPRESS statements for multiple volumes?
Your first step will be to run the ASM2CMDU proc to gather the data with the RSVP sample below. Add a DD statement to the proc to send the $SM commands to: //$RSTRANS DD DISP=SHR,DSN=yourhlq.RSTRANS
This sample will make $SM compress statements for specific high level qualifiers to be processed in a subsequent process.
$RSVP VOL(ALL) -
HEADING1('1 COMPRESS FILES ON ALL VOLUMES FOR SPECIFIC HLQ ') -
HEADING2('- BY STORAGE ADMIN ) -
TRK BLIST(ACTION1) SORT(VOLUME) -
ACTION(' $SM DA(''') COM(''') NORLSE ') - **note the build for the statement stored in the output file
BEGIN(BLAJO02 BOUFR01 4498JE1 TEST) - **note the sample high level qualifiers
PRINT(ADD (DSORG CAT LMJOB LMDATE CREDT)) **your report of the files in the output file
Your second step will be to process the $SM statements in your $RSTRANS file using the ASM2CMDU proc:
your sysin will be:
//SYSIN DD DISP=SHR,DSN=yourhlq.RSTRANS
You can do this in a single job with 2 steps or 2 separate jobs if you want to review the report produced in the first step before executing the $SM compress statements.
For more details and examples please review the RSVP User Guide