Lizette, you can also see the create date time (CRTIME) of the job. Is that good enough for what you want? As I look at this the interesting thing I see on my system the time is UCT and not US central time. I'll have to look at that. :)
$DJ(95379),LONG $HASP890 JOB(UDT014OP) $HASP890 JOB(UDT014OP) STATUS=(AWAITING EXECUTION),CLASS=Q, $HASP890 PRIORITY=9,SYSAFF=(PR03),HOLD=(JOB), $HASP890 CMDAUTH=(LOCAL),OFFS=(),SECLABEL=, $HASP890 USERID=UDT014,SPOOL=(VOLUMES=(OSSPP4), $HASP890 TGS=1,PERCENT=0.0000),ARM_ELEMENT=NO, $HASP890 CARDS=15,DUBIOUS=NO,REBUILD=NO, $HASP890 SRVCLASS=TSPBATHI, $HASP890 SCHENV=TESTJOB(SET BY OPERATOR), $HASP890 SCHENV_AFF=(PR01),CC=(),DELAY=(HOLD, $HASP890 MEMBER_STATUS), $HASP890 CRTIME=(2018.292,17:01:24),JOBGROUP= Thanks.. Paul Feller AGT Mainframe Technical Support -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Lizette Koehler Sent: Friday, October 19, 2018 11:37 AM To: [email protected] Subject: SDSF and z/OSEM and Automation So I want to create a process that "notices" that a job has been in the JES2 Input queue for over 24 hours and not run. Sometimes this is legitimate and sometimes not. With z/OSEM we add resource names so the users do not need to code /*ROUTE XEQ lpar to run. What I find is sometimes the resource name created in the JCL is not valid for the environment. I know I can issue $DJxxxx,LONG and find out what resource it is waiting on. What I am struggling with is how can I see the INPUT queue and determine how long a job has been waiting. I am thinking something with ISFEXEC (SDSF) that I can pass to automation to make the determination and/or cancel of the task. I am just in the design phase, so no real details other than this sketch of the process. Thanks Lizette A theory can never be proven, but it can be falsified. Karl Raimund Popper ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
