Hi
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. DEMO.
000003 DATA DIVISION.
000004 WORKING-STORAGE SECTION.
000005 01 VAR-P USAGE POINTER.
000006 01 VAR-W PIC X(2).
000007 LINKAGE SECTION.
000008 01 VAR-L PIC X(2).
000009 PROCEDURE DIVISION USING VAR-L.
000010 MAIN1.
000011 SET VAR-P TO ADDRESS OF VAR-L.
How the program can know if some parmeter was sent by the calling program, or not.
When i type in the command line : "CALL DEMO 'ab' "
its end without any errores.
When i type: "CALL DEMO" i have an error:
Argument associated with external or internal parameter not passed.
Function check. MCH0801 unmonitored by .., at statement 11,
thx
Barry
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. DEMO.
000003 DATA DIVISION.
000004 WORKING-STORAGE SECTION.
000005 01 VAR-P USAGE POINTER.
000006 01 VAR-W PIC X(2).
000007 LINKAGE SECTION.
000008 01 VAR-L PIC X(2).
000009 PROCEDURE DIVISION USING VAR-L.
000010 MAIN1.
000011 SET VAR-P TO ADDRESS OF VAR-L.
How the program can know if some parmeter was sent by the calling program, or not.
When i type in the command line : "CALL DEMO 'ab' "
its end without any errores.
When i type: "CALL DEMO" i have an error:
Argument associated with external or internal parameter not passed.
Function check. MCH0801 unmonitored by .., at statement 11,
thx
Barry