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

return-code passing from cobol to jcl,not cleared yet here


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar119119

New User


Joined: 31 May 2010
Posts: 25
Location: Pune

PostPosted: Mon Jun 28, 2010 11:24 pm
Reply with quote

We pass data from cobol to jcl using return-code register.

suppose if we move 450 to returncode at runtime max returncode will show 450, but

1. if the program succesful maxcc will show 0/4, but when we move this 450 what it will show?

2. and like this cobol to jcl scenario incase of abend will it show 450 or relevant abend code

From
Satish kumar reddy.T
Bangalore.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Jun 28, 2010 11:37 pm
Reply with quote

kumar119119 wrote:
1.if the program succesful maxcc will show 0/4, but when we move this 450 what it will show?
450. If nothing is put in the return code register, it will have a zero, the only way for it to be a 4 is if the program moves a 4 into the register.
Quote:
2.and like this cobol to jcl scenario incase of abend will it show 450 or relevant abend code
Depending on what kind of abend (user or system) the RC will be either system generated or user generated.
Back to top
View user's profile Send private message
kumar119119

New User


Joined: 31 May 2010
Posts: 25
Location: Pune

PostPosted: Tue Jun 29, 2010 2:17 pm
Reply with quote

hi folks

thanks a lot cics guy

your information very useful to me
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Compile rexx code with jcl CLIST & REXX 6
Search our Forums:

Back to Top