The STAF HELP service provides error text for STAF return codes. You can 
submit a STAF service request via the command line, a shell script, a STAX 
job, a Java program, a C/C++ program, a Perl script, a Python script, or a 
Tcl script.  Note that STAF has to be running in order to submit a STAF 
service request.  So, if you can't create a STAF handle (and don't have 
another STAF handle), you won't be able to submit a STAF service request 
since you need a STAF handle to submit a service request.

For example, to get help for STAF return code 47 via the command line, you 
can submit request to the HELP service for ERROR 47 as follows::

C:\>STAF local HELP ERROR 21
Response
--------
Description: STAF not running
Details    : This indicates that STAFProc is not running on the local 
machine
with the same STAF_INSTANCE_NAME (and/or the same STAF_TEMP_DIR if on a 
Unix
machine).

Notes:
1. If the STAF_INSTANCE_NAME environment variable is not set, it defaults
   to "STAF".
2. On Unix, if the STAF_TEMP_DIR environment variable is not set, it 
defaults
   to "/tmp".  This environment variable is not used on Windows.
3. This error can also occur when submitting a request using the local IPC
   interface on a Unix machine if the socket file that the local interface
   uses has been inadvertently deleted.
4. To get more information on this error, set special environment variable
   STAF_DEBUG_21=1 and resubmit your local STAF service request.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




Disc Magnet <discmag...@gmail.com> 
06/22/2010 02:01 AM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] Converting STAF error code to error message






The STAFHandle::create() returns an integer error code. How can this
error code be converted to error message? Is there any STAF API to do
this?

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to