IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is there any way which can tell the RC of each step in JOB?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue May 22, 2007 6:13 pm
Reply with quote

Hi,

Three general queris:

1. Is there any way which can tell the RC of each step in JOB?

2. At my site, there is one JOB in production which ends with RC=0 & with RC= 4 at times. For this JOB, how can I know which step/s RC is 4?

3. If step is found, then why the same step gives different RC at differernt times, while the outputs are same in both the cases?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 22, 2007 6:16 pm
Reply with quote

Look at the jeslog for the job
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue May 22, 2007 6:46 pm
Reply with quote

Thanks expat.

I could find out one more method, in JHS, enter 's' on command line & press ENTER key, it'll list all the steps with their respective RCs.

anuj_model wrote:
Hi,

3. If step is found, then why the same step gives different RC at differernt times, while the outputs are same in both the cases?


By the way, any answer for above ?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue May 22, 2007 6:54 pm
Reply with quote

Hi anuj_model !

Perhaps the RC was set by the programm of that step depending on a special condition. Could be a warning or something like that. Did you had a look at that programm?

Regards, UmeySan
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue May 22, 2007 7:43 pm
Reply with quote

UmeySan wrote:
Hi anuj_model !

Perhaps the RC was set by the programm of that step depending on a special condition. Could be a warning or something like that.

Regards, UmeySan


Yeah actually, this is what I thought.
I was expecting

1. May be step XCOM's some file, depending upon the pass/fail of XCOM RC is set. But it's not there.

2. May be they are checking empty/non-empty files, if empty RC=4. This is also not there.

all the output DSNs are with DISP=(,catlg,delete).

Due to these, above queris came in mind.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jun 08, 2007 8:54 pm
Reply with quote

Hi UmeySan,

You were right, batch program called in that step moves +4 in return code variable based on the status of some flags.

A scrap of code is:
Code:
EVALUATE TRUE               
  WHEN TYPE-16-AT-END AND   
       TYPE-35-AT-END       
    MOVE +4  TO  RETURN-CODE
.
.


Thanks for the suggestion, but I worked on this like a tube-light..! icon_sad.gif
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Sat Jun 09, 2007 12:42 am
Reply with quote

Tube-light?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jun 11, 2007 1:36 pm
Reply with quote

icon_biggrin.gif
Tube-light takes time to switch-on, it blinks enough before it lights.
I've taken enough time to implement the idea told by UmeySen (see the date of posts)..so I said I worked like a tube-light in this case.

I think, that is why we use 'bulb' sign in symbols like ' icon_idea.gif '..which shows "I clicked the idea". Because ideas are supposed to click instantly so we use bulb instead of 'tube-light' icon_smile.gif

I hope you got it.. icon_wink.gif
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon Jun 11, 2007 5:46 pm
Reply with quote

Oh, so tube-light means slow. I guess I'm also working in tube-light mode. Sounds nicer than slow. Thanks.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jun 11, 2007 9:24 pm
Reply with quote

You are welcome..! icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top