I would be curious too. I have called IBM regarding exit codes for dsmc
command.
Even on a failure it will return zero as the exit code. IBM said that the
product
was working as designed?????????? I always thought if there was an error
that a
greater than zero value was passed. But who am I to say what a return code
should
be.

Any way I got my moaning and groaning down. Back to the subject.

I have a large need to be able to check for a greater than zero value upon a
failure.

Mark Adams

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED]]On Behalf Of
Bruce Mitchell
Sent: Monday, November 27, 2000 4:25 AM
To: [EMAIL PROTECTED]
Subject: Exit Codes from server scripts..


Does anyone know how  to return an exit code from a server scripts that korn
shell will pick up as non-zero (ie failure)..

Scenario is as per the sample bkup_stg_db scripts (called from KSH). I start
the korn shell script , which checks if a BKUP STGPOOL
process is already running ,and if so reschedule the script for NOW+0:20.
What i want is 'some kind of exit in the reschedule label'  that gets parsed
by ksh as 'not ok'. At the moment the KSH script picks this up as OK ,and
continues rest of script. (Move drm's and prepare). I'm loath to put all
into server scripts , as we want to run the ksh using Control-M scheduler
and catch a result, so thought I'd ask first.


TIA

LONDON
Tel:       +44(0) 207 547 4917
Fax        +44(0) 207 650 7917
Mobile    +44(0) 468 361-885
email:    [EMAIL PROTECTED]



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Reply via email to