View previous topic :: View next topic |
Author |
Message |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue Dec 15, 2009 2:42 pm Post subject: |
|
|
This has nothing to do with the request. . .
The request is about something that has a jcl error not an abend. _________________ All the best,
di |
|
Back to top |
|
 |
computer Beginner
Joined: 12 Jun 2007 Posts: 64 Topics: 17 Location: Hyderabad
|
Posted: Fri Jan 01, 2010 1:54 pm Post subject: |
|
|
I will suggest a simple solution, but cannot assure that its the most efficient solution.
Write a small program, this program will simply do a read on each file which your JCL is using. If any one of the file as REC-CNT=0 then set the RECTURN CODE of the program to 3 and if all the files are not empty then set the RC=0. This way you can control the running of all the steps with the RC set by your program.
Makw sure this should be the first step in your JCL.
Hope this helps you.
And wishing all a Happy New Year
Thanks,
Computer |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sat Jan 02, 2010 11:59 am Post subject: |
|
|
And what if a file could be empty at the successful end of a program? _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Mon Jan 04, 2010 3:33 am Post subject: |
|
|
We're talking about JCL errors and not an abend during the course of JCL execution.
E.g.:if step 3 has COND=EVEN mentioned and some JCL error occurs in step 2 then step 3 will not run while if an abend occurs in step2 , COND=EVEN will come itno effect and step 3 will execute. _________________ Regards,
Anuj |
|
Back to top |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Mon Jan 04, 2010 3:37 am Post subject: |
|
|
ah, I did not realize that this thread went to second page my above response was for this Quote: | COND=EVEN could be used to execute a step, even if a prior step abends. |
_________________ Regards,
Anuj |
|
Back to top |
|
 |
|
|