I am trying to extract a z/OS loaded report by way of the arsdoc command. I am able to retrieve the report and store in a ZFS directory, but the format is unformatted. If I try to display it while in ISHELL and "View" I am prompted with a lrecl. My ultimate goal is to save as a DS to load for testing purposes. My first thought would have been to simply send a print out to a server printer, but the current Print exit is frustrating me.
000015 //STDPARM DD *
000016 SH /lpp/ars/V10R5M0/bin/arsdoc get
000017 -h CMODT -v -f "Admin - Misc Reports"
000018 -i "WHERE LOAD_DATE = '2024-08-13 19:39:37'"
000019 -o agapp -d /u/home/w866451
000020 -u xxxxxxx -p xxxxxxxxxx
000021 //*****
I think i gave up on formatting the file on OMVS. Just spun it to a dataset on ispf. Removed the " -o agapp -d /u/home/w866451 " and it wrote the report out to STDOUT.
//W866451X JOB 0ZA103060401,'CMOD',MSGCLASS=X,MSGLEVEL=(1,1),
// CLASS=9,REGION=0M,NOTIFY=W866451,USER=W866451
//**** RESTART=REPT02
//************************************************************
//STEP01 EXEC PGM=BPXBATCH,REGION=0M
//ARSBIN DD PATH='/usr/lpp/ars/V10R5M0/bin'
//STDOUT DD DSN=&&TEMPRPT,DISP=(,PASS,DELETE),
// DCB=(DSORG=PS,RECFM=FBA,LRECL=132,BLKSIZE=0),
// UNIT=3390,SPACE=(TRK,(10,10),RLSE)
//STDERR DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//STDPARM DD *
SH /lpp/ars/V10R5M0/bin/arsdoc get
-h CMODT -v -f "Admin - Misc Reports"
-i "WHERE LOAD_DATE = '2024-08-13 19:39:37'"
-u xxxxxxx -p xxxxxxxx
//*****
That's basically how I've done this in the past other than printing the report back on to the spool and then doing a spool print to a dataset.
Printing it back to the spool is the way we've always done it. Here, they use a Print exit that massages the output class/writer/desk so we can't just do what we used to. Whole "customized" process. Yeah!! Thanks though.