Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to declare Null indicators in COBOL-DB2 program 1

Status
Not open for further replies.

gopikrishna

Programmer
Sep 8, 2003
6
IN
Hi,

I have a set of null indicator variables in a copy book (VYPNULHD). Pre-compiler is not recognizing COPY statement and gives error messages at the SQL SELECT stmt. I tried to include it within EXEC SQL and END-EXEC, still I get an error message saying it cannot be included.

Can somebody help me in figuring out how to declare this?

Thanks,
Gopi.
 
For a 'copybook' to be brought into the program by the pre-compiler, it will need to INCLUDEd as in:
EXEC SQL
INCLUDE VYPNULHD
END-EXEC

The library where this copybook resides will have to be in the JCL in the DDNAME SYSLIB.

This should resolve your problem, if it dcoes not, please let us know, with relevant error messages.

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top