Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run map failure report

Status
Not open for further replies.

Mags1972

IS-IT--Management
Feb 28, 2005
24
GB
Hopefully this should be an easy one.

I have a very simple map that RUNs aother map. What I need is the first map to put out some descriptive text upon failure. i.e (if called map fails "it worked" , "it failed").

what do I need to do with the below rule to achieve this??

=RUN(MAP_NAME Column:In1,"-ID1 '-VAR SUBSYSTEM="+ SUB_SYSTEM Column:In1+"
-VAR COID="+CO_ID Column:In1 +" -VAR DEPTID="+DEPT_ID Column:In1 + " -VAR
BATCHNUMBER="+ TSQ_BTCH_NO Column:In1 + " -VAR DBNAME="+PLAN_NAME Column:
In1 + "' -OD2" )

thanks in advance



 
=VALID(RUN(MAP_NAME Column:In1,"-ID1 '-VAR SUBSYSTEM="+ SUB_SYSTEM Column:In1+"
-VAR COID="+CO_ID Column:In1 +" -VAR DEPTID="+DEPT_ID Column:In1 + " -VAR
BATCHNUMBER="+ TSQ_BTCH_NO Column:In1 + " -VAR DBNAME="+PLAN_NAME Column:
In1 + "' -OD2" ),FAIL("run map failed " + TEXT ( LASTERRORCODE ( ) ) + " " + LASTERRORMSG ( )))


That will put the failure message in your log. You should run a map that looks at log files and reports failures. An example is provided in the examples/general/audit folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top