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
 

 

Cross Platform (Unix <-> Mainframe) Condition Code 000

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
jonasborg

New User


Joined: 30 Nov 2005
Posts: 5

PostPosted: Mon Jul 23, 2007 9:26 pm    Post subject: Cross Platform (Unix <-> Mainframe) Condition Code 000
Reply with quote

Hello,

I am running a script on a Unix machine to switch workload to another Unix machine (for WebSphere High Availability environment). The script is kicked off by an on-demand mainframe batch job, which shows a successful RC=0 in SAR.

It finishes successfully on the Unix side, but when we view the job in CA7, it shows C-C0001.

What would be causing this to come up with that Condition Code? Any ideas on how to fix this?

Using Unicenter for the cross-platform transport.

-Nate
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 23, 2007 10:59 pm    Post subject:
Reply with quote

Hello,

Can you post the 0001? Is it in one of the sysout datasets?

Does the unix script provide any feedback to the mainframe?

Are you running Unicenter on both platforms?
Back to top
View user's profile Send private message
jonasborg

New User


Joined: 30 Nov 2005
Posts: 5

PostPosted: Tue Jul 24, 2007 12:54 am    Post subject:
Reply with quote

Thanks for your reply.


Unix script shows that it ran successfully.

There isn't anything in the sysout datasets.

As far as I know, the only thing that it should be sending to CA7 is the start record, the term record and the Return code.

Unicenter is on both platforms, but it also cannot create a Return Code, only provide the interaction between the OS and the script.
Back to top
View user's profile Send private message
jonasborg

New User


Joined: 30 Nov 2005
Posts: 5

PostPosted: Tue Jul 24, 2007 1:01 am    Post subject:
Reply with quote

TYPE NAME CA7# SCH SYSTEM STATUS MODE CA7# START END

J xxxxxxxx 9080 240 SS C0001 AUTO 3158 07193/2236 07193/2236




this came from CA7
replaced the job name with x's
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 2:13 am    Post subject:
Reply with quote

Hello,

What does the Unicenter documentation say about the C0001?

Might it be that C0001 is a "successful" status? What indication is there that a problem has occurred?
Back to top
View user's profile Send private message
jonasborg

New User


Joined: 30 Nov 2005
Posts: 5

PostPosted: Tue Jul 24, 2007 2:47 am    Post subject:
Reply with quote

Again, CA7 and Unicenter to not produce return codes. It is the interaction between the script and the OS. Unicenter is just given information from the script.


I considered that it may be successful, but thought that something had to trigger the RC. No other cross platform jobs return a Condition code of 1


Our script (supposedly) cannot end with a return code 1. Though it does.


See below for the text from the script that sets the return code that CA-Unicenter is supposed to use:

# Return Codes set and their meaning in the node script:
#
# 0 This would be goodness
# 2 Bad PARM passed
# 10 Bad "scope" parm passed; invalid entry in cell_node_jvm_list
# 12 Start failed for Passive JVM
# 13 Start failed for Passive IHS
# 14 Rename of passive.html failed on Passive node
# 15 passive.html for Passive Node not found
# 16 Rename of index.html failed on Active node
# 17 index.html for Active Node not found
# 20 Stop Active JVM failed
# 22 Start Active JVM failed # 50 We are not root or setup script got a non-zero RC, no point in running this script




The find command below is displaying the contents of all files in the directory with ?return? in the name. The nine files created (1 from the setup script and 8 from the individual nodes scripts) all show a return code 0.



$ find . -name \*return*

./server23.switch_ap_cell_node.sh.return.code

./server13.switch_ap_cell_setup.sh.return.code

./server32.switch_ap_cell_node.sh.return.code

./server22.switch_ap_cell_node.sh.return.code

./server25.switch_ap_cell_node.sh.return.code

./server26.switch_ap_cell_node.sh.return.code

./server27.switch_ap_cell_node.sh.return.code

./server31.switch_ap_cell_node.sh.return.code

./server28.switch_ap_cell_node.sh.return.code





$ find . -name \*return* -exec cat {} \;

0

0

0

0

0

0

0

0

0
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 3:02 am    Post subject:
Reply with quote

hELLO,

What produced this:
Code:
TYPE NAME CA7# SCH SYSTEM STATUS MODE CA7# START END

J xxxxxxxx 9080 240 SS C0001 AUTO 3158 07193/2236 07193/2236


My guess is that when you view it it is lined up - even using the Code tabs, it does not. Do you have documebntation for whatever produced that "output"?

Quote:
CA7 and Unicenter to not produce return codes

If you look back at my reply, i don't call it by name - just by value C0001. I'm not familiar with anything in MVS or unix that is represented by "C0001".

What 3rd-party or "common" processes are invoked on the unix system (other than code/script specific to this run)? There may be some component that causes the C0001 that is not visable in the script text.

You may want to open an issue with Unicenter support and ask for clarification.
Back to top
View user's profile Send private message
jonasborg

New User


Joined: 30 Nov 2005
Posts: 5

PostPosted: Tue Jul 24, 2007 3:13 am    Post subject:
Reply with quote

CA7 produced that output.

I'm stumped.

don't know exactly how the script runs on the UNIX side. I thought originally that the C0001 was coming from there, but the person who owns this scipt is adament about the fact that his script ran successfully "so it must be Unicenter and CA7" according to him.

I had never heard of C0001, either. Seems like noone has.

Looks like I will call Unicenter for some clarification.



Thanks for your time and effort with this question.

-Nate
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 5:05 am    Post subject:
Reply with quote

You're welcome, Nate icon_smile.gif

I'd not doubt that "his script ran successfully". Do we have any indication that all is not well? "Something" in the unix process may have caused the C0001, but maybe did so with nothing wrong.

What might happen if the unix process was run without the mainframe issuing the "trigger"? Thinking that maybe cron or something else on the unix box could start this and still have info passed back to Unicenter and/or CA-7. It might be interesting to see what Uni/CA-7 show.

Good luck and do let us know what is found out.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm


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