In Job-Control (JCL) my Cobol-Program is invoked like this:
...
SETPARM RETCODE='0000'
// EXEC PGM=WEB1900,SIZE=AUTO,PARM='&RETCODE'
/*
IF RETCODE=100 THEN...
IF $RC=200 THEN ......
...
Parts of my Cobol-Program:
...
LINKAGE SECTION.
01 VCC-LINK.
03 VCC-LINK-LENGTH PIC S9(03) COMP.
03 VCC-LINK-PARAMS PIC 9(04).
PROCEDURE DIVISION USING VCC-LINK.
...
IF ..... MOVE 100 TO VCC-LINK-PARAMS
ELSE ... MOVE 200 TO RETURN-CODE
ENDIF
...
GOBACK.
The situation:
- JCL RETCODE='0000' is correctly given to
COBOL VCC-LINK-PARAMS
- VCC-LINK-PARAMS=100 is not(!) given back to JCL
- RETURN-CODE=200 is correctly given to JCL
Questions:
- Can I succeed in giving back VCC-LINK-PARAMS in any way?
- JCL handles RETURN-CODE=200 as an severe error and gives the JOBLOG message MAX.RETURN-CODE=0200.
How can I suppress this message or set $MRC to zero?
Thanks a lot.
...
SETPARM RETCODE='0000'
// EXEC PGM=WEB1900,SIZE=AUTO,PARM='&RETCODE'
/*
IF RETCODE=100 THEN...
IF $RC=200 THEN ......
...
Parts of my Cobol-Program:
...
LINKAGE SECTION.
01 VCC-LINK.
03 VCC-LINK-LENGTH PIC S9(03) COMP.
03 VCC-LINK-PARAMS PIC 9(04).
PROCEDURE DIVISION USING VCC-LINK.
...
IF ..... MOVE 100 TO VCC-LINK-PARAMS
ELSE ... MOVE 200 TO RETURN-CODE
ENDIF
...
GOBACK.
The situation:
- JCL RETCODE='0000' is correctly given to
COBOL VCC-LINK-PARAMS
- VCC-LINK-PARAMS=100 is not(!) given back to JCL
- RETURN-CODE=200 is correctly given to JCL
Questions:
- Can I succeed in giving back VCC-LINK-PARAMS in any way?
- JCL handles RETURN-CODE=200 as an severe error and gives the JOBLOG message MAX.RETURN-CODE=0200.
How can I suppress this message or set $MRC to zero?
Thanks a lot.