thelearner
Programmer
Hi,
What's wrong with my module? It won't compile.
Here is my pgm:
H NOMAIN
FCUMAST IF E K DISK USROPN
D GETCUST PR N
D CUSTNO 6
D ZDS LIKEDS(CUSTD
P GETCUST B EXPORT
D GETCUST PI N
D CUSTNO 6
D ZDS LIKEDS(CUSTD
D CUADR2 S 35 VARYING
D CUADR3 S 35 VARYING
/FREE
OPEN CUMAST;
CHAIN CUST# CUMAST;
IF %FOUND;
ZDS.CUST# = CUCODE;
ZDS.NAME = CUNAME;
ZDS.ADDR = CUADR2 + CUADR3;
ZDS.ZIP = CUSTAR + CUZIP5;
ZDS.BAL = CUCRUP;
ENDIF;
CLOSE CUMAST;
RETURN %FOUND;
/END-Free
P E
Here are the errors msg:
The name or indicator ADDR is not defined.
The name or indicator BAL is not defined.
The name or indicator CUMAST is not defined.
Record-Format CUREC not used for input or output
The name or indicator CUST# is not defined.
The name or indicator CUSTAR is not defined.
The name or indicator CUSTDS is not defined.
The name or indicator CUSTDS is not defined.
The name or indicator NAME is not defined.
The name or indicator ZDS is not defined.
The name or indicator ZDS is not defined.
The name or indicator ZIP is not defined.
What's wrong with my module? It won't compile.
Here is my pgm:
H NOMAIN
FCUMAST IF E K DISK USROPN
D GETCUST PR N
D CUSTNO 6
D ZDS LIKEDS(CUSTD
P GETCUST B EXPORT
D GETCUST PI N
D CUSTNO 6
D ZDS LIKEDS(CUSTD
D CUADR2 S 35 VARYING
D CUADR3 S 35 VARYING
/FREE
OPEN CUMAST;
CHAIN CUST# CUMAST;
IF %FOUND;
ZDS.CUST# = CUCODE;
ZDS.NAME = CUNAME;
ZDS.ADDR = CUADR2 + CUADR3;
ZDS.ZIP = CUSTAR + CUZIP5;
ZDS.BAL = CUCRUP;
ENDIF;
CLOSE CUMAST;
RETURN %FOUND;
/END-Free
P E
Here are the errors msg:
The name or indicator ADDR is not defined.
The name or indicator BAL is not defined.
The name or indicator CUMAST is not defined.
Record-Format CUREC not used for input or output
The name or indicator CUST# is not defined.
The name or indicator CUSTAR is not defined.
The name or indicator CUSTDS is not defined.
The name or indicator CUSTDS is not defined.
The name or indicator NAME is not defined.
The name or indicator ZDS is not defined.
The name or indicator ZDS is not defined.
The name or indicator ZIP is not defined.