hello i'm new to mainframe please help.
this is my mainprogram
IDENTIFICATION DIVISION.
PROGRAM-ID. MAINPR.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 A PIC 99 VALUE 30.
77 B PIC 99 VALUE 40.
77 C PIC 99 VALUE 10.
PROCEDURE DIVISION.
START-PARA.
CALL "MAINPR" USING BY VALUE 30 40 10.
DISPLAY C.
STOP RUN.
and my subprogram is
IDENTIFICATION DIVISION.
PROGRAM-ID. MAINPR1.
ENVIRONMENT DIVISION.
DATA DIVISION.
LINKAGE SECTION.
77 D PIC 99 VALUE.
77 E PIC 99 VALUE.
77 F PIC 99 VALUE.
PROCEDURE DIVISION USING D E F.
START-PARA.
COMPUTE F = D + E.
EXIT PROGRAM.
while i compiling i getting maxcc=0 after i execute the program i am getting the soc7 abend can any one help me please
how can i use the call by value in cobol program give me the example programs.....