Hello everyone,
I have developed a COBOL program on AS400 to screen display certain information. This is the first time I am using the Procedure Division using a parameter as under.
PROCEDURE DIVISION
USING LK-PARM-FIELDS.
The program was successful in compiling but caused running error with the following message.
Cause . . . . . : You attempted to reference an external or internal
parameter for which the calling program did not pass a corresponding
argument.
A gist of my code is as follows:
LINKAGE SECTION.
01 LK-PARM-FIELDS.
05 LK-ACCT LIKE A-NO OF DEALER-RECORD.
05 LK-LAST-FUNCTION-KEY PIC X(2).
4000-START-FILE.
MOVE LK-ACCT TO A-NO OF DEALER-RECORD
START DEALER-FILE
KEY NOT < EXTERNALLY-DESCRIBED-KEY
INVALID KEY
SET END-OF-DATA TO TRUE
NOT INVALID KEY
SET START-OF-DATA TO TRUE
PERFORM 5000-CLEAR-SUBFILE.
Would very much appreciate if someone could enlighten me what could be the problem please.
Thanks
Tony
I have developed a COBOL program on AS400 to screen display certain information. This is the first time I am using the Procedure Division using a parameter as under.
PROCEDURE DIVISION
USING LK-PARM-FIELDS.
The program was successful in compiling but caused running error with the following message.
Cause . . . . . : You attempted to reference an external or internal
parameter for which the calling program did not pass a corresponding
argument.
A gist of my code is as follows:
LINKAGE SECTION.
01 LK-PARM-FIELDS.
05 LK-ACCT LIKE A-NO OF DEALER-RECORD.
05 LK-LAST-FUNCTION-KEY PIC X(2).
4000-START-FILE.
MOVE LK-ACCT TO A-NO OF DEALER-RECORD
START DEALER-FILE
KEY NOT < EXTERNALLY-DESCRIBED-KEY
INVALID KEY
SET END-OF-DATA TO TRUE
NOT INVALID KEY
SET START-OF-DATA TO TRUE
PERFORM 5000-CLEAR-SUBFILE.
Would very much appreciate if someone could enlighten me what could be the problem please.
Thanks
Tony