I moved to next step. I have my code as exit after submit every job. And my intention is compare job name with my dc containing any job name.. If this two jobnames are equal then WTO 'Equal'...
My code return with a DUMP...
My input address of parameters is in register 1. (https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieae400/ieae40036.htm#ieae400-gen35__procuji)
And first ford of this register is address for common exit parameter area and in this area is on the first place JOBNAME. But my code, doesn't work..
Here is example of my code..
TITLE 'ASMTEST'
ASMTEST CSECT
ASMTEST RMODE ANY
ASMTEST AMODE 31
* PRINT GEN
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
SAVE (14,2),,ASMTEST-&SYSTIME.-&SYSDATE.
LR R2,R15 BASE REGISTER
USING ASMTEST,R2
*
L R3,0(,R1)
CLC 1(8,R3),MYJOBNAME
BNE EXIT2
*
EXIT1 WTO 'EQUAL'
LA R15,0
B EXIT
*
*
EXIT2 WTO 'NOT EQUAL'
LA R15,0
EXIT RETURN (14,2),,RC=(15) RETURN WITH RETURN CODE IN R15
*
MYJOBNAME DC CL8'TESTJOBN'
*
END
ASMTEST CSECT
ASMTEST RMODE ANY
ASMTEST AMODE 31
* PRINT GEN
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
SAVE (14,2),,ASMTEST-&SYSTIME.-&SYSDATE.
LR R2,R15 BASE REGISTER
USING ASMTEST,R2
*
L R3,0(,R1)
CLC 1(8,R3),MYJOBNAME
BNE EXIT2
*
EXIT1 WTO 'EQUAL'
LA R15,0
B EXIT
*
*
EXIT2 WTO 'NOT EQUAL'
LA R15,0
EXIT RETURN (14,2),,RC=(15) RETURN WITH RETURN CODE IN R15
*
MYJOBNAME DC CL8'TESTJOBN'
*
END
I don't want create a new thread in the forum so I writing it here ..