That's almost what I am looking for. I would like each DD to be in a separate output file. Gadi
-----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Lionel B Dyck Sent: Thursday, October 10, 2019 3:37 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Saving job output More info on SDSFEXT: Syntax: %sdsfext jobname ddname outdd jobnum (options Where: jobname is the name of the job to extract or * for the current jobname if * then active is set on support wild cards (% and *) in jobname ddname is the ddname to be extracted or (ddname1 ddname2 ...) or * for all ddnames ddname may be coded as stepname.ddname where stepname is the jcl stepname not the step found in a proc. or stepname.procstep.ddname outdd is the ddname where the extracted data is to be directed jobnum is the job number for the desired job ( is required if any options are specified options currently supported are: ACTIVE - only process jobs that are currently executing. - set on if jobname is * DEBUG - will echo the generated SDSF cmds INPUT - will allow selection of input data Example: %sdsfext smtp logfile report This will extract the ddname LOGFILE for each occurrence of the job SMTP in the spool with the output going to preallocated DD REPORT. Lionel B. Dyck <sdg>< Website: http://www.lbdsoftware.com "Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are." - John Wooden -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Gadi Ben-Avi Sent: Thursday, October 10, 2019 7:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Saving job output Thanks Lionel. Can the jobname include wildcards? What happens if there is more than one job with the same jobname? Gadi -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Lionel B Dyck Sent: Thursday, October 10, 2019 2:56 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Saving job output See my generalized routine SDSFEXT at http://lbdsoftware.com/sdsfext120.zip or in file 313 at cbttape.org: A generalized SDSF extraction process that will extract a specific ddname for all matching jobs that are in the JES2 SPOOL. The extraction is performed to a preallocated data set referenced by a DD statement in the batch terminal monitor program. %sdsfext jobname ddname outdd jobnum (options Lionel B. Dyck <sdg>< Website: http://www.lbdsoftware.com "Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are." - John Wooden -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Gadi Ben-Avi Sent: Thursday, October 10, 2019 5:55 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Saving job output Hi, Every now and again, I have to send the output from a job or started task to support. Saving all of the output is simple using SDSF's XDC command, but that saves all of the output to one file. It's much easier to deal with the individual spool files. Does anyone have a utility that can split the output according to the different spool files? Gadi ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Email secured by Check Point ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Email secured by Check Point ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN