Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Anuj Dhawan

Senior Member


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

PostPosted: Tue May 22, 2007 6:13 pm    Post subject: Is there any way which can tell the RC of each step in JOB?
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: 8593
Location: Back in jolly old England

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

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

Senior Member


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

PostPosted: Tue May 22, 2007 6:46 pm    Post subject:
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: 755
Location: Germany

PostPosted: Tue May 22, 2007 6:54 pm    Post subject:
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

Senior Member


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

PostPosted: Tue May 22, 2007 7:43 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jun 08, 2007 8:54 pm    Post subject:
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

Active Member


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

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

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

Senior Member


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

PostPosted: Mon Jun 11, 2007 1:36 pm    Post subject:
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

Active Member


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

PostPosted: Mon Jun 11, 2007 5:46 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Jun 11, 2007 9:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm
No new posts Extract specific step spool data enrico-sorichetti JCL & VSAM 1 Thu Feb 04, 2016 9:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us