https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119887
James K. Lowden <jklowden at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-05-16 CC| |jklowden at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from James K. Lowden <jklowden at gcc dot gnu.org> --- AFAIK gcobol conforms to the ISO specification. Switches are documented in gcobol.1: UPSI COBOL defines a User Programmable Status Indicator (UPSI) switch. In gcobol, the settings are denoted UPSI-0 through UPSI-7, where 0-7 indicates a bit position. The value of the UPSI switches is taken from the UPSI environment variable, whose value is a string of up to eight 1's and 0's. The first character represents the value of UPSI-0, and missing values are assigned 0. For example, UPSI=1000011 in the environment sets bits 0, 5, and 6 on, which means that UPSI-0, UPSI-5, and UPSI-6 are on. We run NC211A using nist/Makefile in our repository. This command should work: $ make -C gcc/cobol/nist/ NC/NC211A.rpt That command will configure the COBOL file (using NC211A.conf, as you observed) and runs it with the correct environment. We did not attempt compatibility with other implementations for this arcane feature, to avoid devoting time to something that might never be used. A concrete example (not one file, but a million lines) would inform what approach is best. For example, the UPSI name could be set when the compiler is configured, or could be a command-line option.