Can you declare SQLCODE in working storage section?

1 answer

Answer

1047600

2026-03-22 16:45

+ Follow

No, you cannot declare SQLCODE in the Working-Storage Section of a COBOL program. SQLCODE is a special variable used to indicate the success or failure of SQL statements and is automatically provided by the database interface when executing SQL commands. Instead, it is typically referenced directly after executing SQL statements without needing an explicit declaration in the Working-Storage Section.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.