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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: return-code passing from cobol to jcl,not cleared yet here
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: 2150
Location: At my coffee table

PostPosted: Mon Jun 28, 2010 11:37 pm    Post subject: Re: return-code passing from cobol to jcl,not cleared yet he
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    Post subject: thank you cics guy
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm


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