Hi All,
Can someone please give me a JCL which will actually check if the submit time/current time is between 1:00AM - 5:00AM. if the job is submitted in this time it should abend by setting maxcc to 8.
generate abend based on time
-
- Posts: 4
- Joined: Wed Jan 27, 2021 9:23 pm
- Skillset: beginner
- Referer: through search
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: generate abend based on time
Can someone please give me
a YES/NO question deserves a YES/NO answer
NO

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: generate abend based on time
The answer is NO because that is not what JCL does. You need a program. Also, setting maxcc to 8 is not going to cause an abend - it will only cause that step to give a return code of 8.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 130
- Joined: Tue Feb 01, 2011 7:12 pm
- Skillset: JCL, TWS, IBM Utilities
- Referer: Found on web
Re: generate abend based on time
Depending on the scheduler you use, you could potentially do it with variables.
So, with TWS for example, the &CHH variable resolves to the current time. Using that in conjunction with INCLUDE statements would allow you to either execute your desired job, or some program which would abend, depending on the current time.
So, with TWS for example, the &CHH variable resolves to the current time. Using that in conjunction with INCLUDE statements would allow you to either execute your desired job, or some program which would abend, depending on the current time.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
REXX call RACF service IRRSPK00 to generate Pass Tickets
by VladGoodman » Mon Feb 27, 2023 1:11 am » in CLIST & REXX - 4
- 2454
-
by Pedro
View the latest post
Fri Mar 17, 2023 11:40 pm
-
-
- 1
- 6565
-
by prino
View the latest post
Mon Mar 21, 2022 8:18 pm
-
- 7
- 11836
-
by AusZosGuy
View the latest post
Fri Sep 10, 2021 6:40 pm
-
-
SORT the records based on the second word
by seethahexa » Wed Aug 19, 2020 1:30 pm » in DFSORT/ICETOOL/ICEGENER - 1
- 1416
-
by sergeyken
View the latest post
Wed Aug 19, 2020 6:08 pm
-
-
-
How To display the count based on a specific string?
by Chintu333 » Fri Aug 19, 2022 12:59 am » in DFSORT/ICETOOL/ICEGENER - 3
- 2120
-
by sergeyken
View the latest post
Fri Aug 19, 2022 8:52 pm
-