IBM Support

CCN3277 Syntax error: possible missing ; or ?

Question & Answer


Question

This happens with the Bar Code sample which came from ftp://ftp.software.ibm.com/printers/products/fonts/5688021/csample/bcsu… static char *coibm = "S544-3190 (c) COPYRIGHT " \ ............................a................... =====> a - CBC3277 Syntax error: possible missing ';' or ','? "INTERNATIONAL BUSINESS MACHINES CORPORATION 1988, 1997"; There are other lines on which this error happens. All of those other lines also complain that the equal sign is bad. For example static char numsets Y3¨Ý10¨Ý4¨ = { ................................................a...................

Cause

This could happen to any C source that does not conform to the compiler options MARGINS and SEQ.

Answer

Make sure the compile options SEQ and MARGINS match the source. The solution to this particular problem is to use options MARGINS(1,80), NOSEQ It is a good idea to verify that the record properties are as expected (such as LRECL and RECFM). The compiler is working correctly so no change will be made to it.

[{"Product":{"code":"SSTLTF","label":"z\/OS XL C\/C++"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Compiler","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Historical Number

RTA000175196

Document Information

More support for:
z/OS XL C/C++

Software version:
All versions

Operating system(s):
z/OS

Document number:
331717

Modified date:
16 June 2018

UID

swg21142398

Manage My Notification Subscriptions