I'm not sure about the -OUTFILE options, but redirecting an individual
command can be done to a specified DD statement in the JCL. Here's one I've
used before:
//DSMADMC EXEC PGM=DSMADMC,
// PARM='-ID=xxxx -PASSWORD=xxxx -COMMA'
//DSCOPT DD DSN=TECHSRV.PARMLIB(DSCOPT),DISP=SHR
//DSCLANG DD DSN=SYS1.SANSMSG(ANSMENU),DISP=SHR
//STGVOLS DD UNIT=VIO,DSN=&&STGVOLS,
// DISP=(,PASS),DATACLAS=DATAVBS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SELECT STGPOOL_NAME,COUNT(*) FROM VOLUMES -
GROUP BY STGPOOL_NAME > DD:STGVOLS
I then followed this up with a SAS program to run some stats against the
output.
Bill Boyer
|