Re: Setting A Hex Value in COBOL



William M. Klein wrote:
The bottom-line answer to your original question is that

Yes, the VS COBOL II compiler (what I think you mean by "MVS COBOL II) compiler supports hex-literals.

HOWEVER, only if you are using the NOCMPR2 compiler option. It looks like you have an "old" OS/VS COBOL program that may have been recompiled with VS COBOL II. You will need to check what compiler options were used (in 1994) and which version of the compiler was used.

FYI,
The information is online. For example, check out:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igyl1101/1.1.1.11

The real question in this case is not what compiler was used to compile it in 1994 [although that could imply some other changes to the source], but what compiler do you have now that will be used to compile the changed program? And, please be very specific and accurate about the name, version/release of the compiler. Bill's referenced document is the COBOL II manual.

Carl
.



Relevant Pages

  • Re: invoking a method
    ... The use of SET as shown here, will not work outside the Fujitsu Object COBOL ... invoke DBObject ... I will admit I have not worked on anyone else's Cobol compiler so I ... typical reference manual for a Cobol Compiler will have line and box based ...
    (comp.lang.cobol)
  • Re: C03 abend when omitting CEE.SCEERUN from JCL
    ... The AMODE, RMODE, RENT, and RES information are link-edit information, not ... "compiler option" information. ... VS Cobol Program is actually OS/VS Cobol (amblist shows 5740CB103 as ... Do you mean VS COBOL II or OS/VS COBOL? ...
    (bit.listserv.ibm-main)
  • Re: COBOL Compiler for Windows
    ... rebadged Micro Focus compiler. ... to run TSO/SPF on your mainframe. ... Or maybe he wants a mainframe emulation environment, ... Why would a small developer pay several thousand for a .NET COBOL ...
    (comp.lang.cobol)
  • Re: AIFCHANGELOGON
    ... a reference for the system, and programmers, to use system intrinsics. ... I don't know Walter Murray as maybe you do. ... there are few people on the planet who know HP's COBOL ... else in the ???INTR files the compiler would need to know. ...
    (comp.sys.hp.mpe)
  • Re: compile+link Fujitsu Linux
    ... has some problems for use in business programming. ... It is common for most of a large business application to be written in Cobol, ... chosen the compiler options and link parameters that work best for me. ... I keep telling you it's not my way, it's the Unix norm. ...
    (comp.lang.cobol)