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!

Hi all, I have the one situation a 1

Status
Not open for further replies.

marcelinhoibm

Technical User
Jun 5, 2003
5
BR
Hi all,
I have the one situation and i would like to receive some suggestions:


I need execute one job on TWS and to receive its return code. After, if return code is equal 99, i'll have to change the job´s status to "ABBEND" but the rest off schedule have to be continue.

I saw the jobmanrc´s lines code, but i have difficulty to make the shcedule to continue after current job was finished.


It´s all.

Tks
 
TRAM 098 START
CPU1 002 PROC1 098
CON1 003 CONTROL 098
CPU1 004 PROC2 003
CPU1 005 PROC3 004
TRAM 099 END 004 005

You can use next program to continue.

//PROC1 JOB CLASS=P
//E01 EXEC PGM=IEFBR14
//IF E01.RC = 1,2,3...99 THEN
PUT HERE THE CONDITION CODE THAT YOU WANT TO CONTROL
//*--------------------------------------------------
//*- NEXT STEP PUT WS CON1 002 STATUS OK AND THE REST
//*- OF PROCESS CONTINUE BECAUSE THE UNIQUE PREDECESOR
//*- OF WS 003 IS OK.
//*--------------------------------------------------
//*--------------------------------------------------
//WKS EXEC PGM=EQQEVPGM
//EQQMLIB DD DSN=SYSOPC.SEQQMSG0,DISP=SHR
//EQQMLOG DD SYSOUT=*
//SYSIN DD *
OPSTAT W(CON1) OP(002) STATUS(C) SUBSYS(OPCT) A(CPROCCESS)
//*-----------------------------------------------
//ENDIF
 
Get return code from retrieve of SAP´s Job

First all, i would like say special thanks for all people that was send me messages about my problems.

This problem is new. I have one job on TWS that execute one retrive at SAP´s Job. This job have 2 steps ( one - ABAP program, two - Unix Shell script). Well, the unix shell script was developed for return code 99 when any error ocurred. When i saw the log in SAP, the shell script was return code=99 but the TWS received this like return code=1 (This i saw in the TWS's Stdlist of job).

I need received on the TWS the same return code that was received from the shell script.

[]´s
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top