Menu

MF Visual COBOL $ settings in the top of the Programs before the Environment Division

2024-04-04
2024-04-04
  • Cathy Welsh

    Cathy Welsh - 2024-04-04

    Sorry for my ignorance here, but I am not sure what these items are referred to in MicroFOCUS, and have not logged into the support site in quite a bit, and they completely changed the website, and the Documentation that is there is mostly how to install and setup Visual COBOL version 9, but the actual USER COBOL documentation I am unable to locate at all, so not sure what these are called. But We have always had 4 items included in the top of each program
    $ SET REMOVE "ENTRY"
    $ SET COPYLIST
    $ SET REF
    $ SET RTNCODE-SIZE(4)
    ENVIRONMENT DIVISION.

      How do I mimic these items in gnucobol?  Yes, since our programs were written back on a PDP-11 on RSX-COBOL in 1982, the original programmer actually created a paragraph in a commonly called program "ENTRY".  We had to include the $SET REMOVE "ENTRY" as a valid reserve word, so the programs could be compiled.
      I honestly am not sure what the SET COPYLIST and the SET REF do, but do knowo that the RTNCODE-SIZE(4) has to do with calling Micro FOCUS routines with the size of the return code.
    
      Do these things exist in GNU COBOL, or do I need to painstakingly go through all 3800 programs and change ENTRY to something like "ENTRY-RTN".  This is a doable thing, but will take me quite a large amount of time, as this has to be done on all of my platforms, so that the common code remains consistent on all platforms.  This means to transfer it down from a MicroVAX 3500 that is on VMS 5.1-1 over a serial connection, will take a huge amount of time.
      It exists on the MicroVAX because of the MicroVAX superior debugger.  The MF COBOL animator is garbage in comparision.
      We also use a CMS (Code Management System) on the VAX, so we can track every change that we make to any program for a General Release, even going back to get differences, and when they were done.
    
      Trying to get a response from MF COBOL where the hell they moved the actual COBOL documentation to on their new OPENTEXT website. UGH.
    
     
    • Ralph Linkletter

      REMOVE
      Removes words from the reserved word list, so that they can be used as user-defined words.

      These two are directives for the compiler listing
      COPYLIST
      Makes the Compiler list the contents of files named in COPY statements.
      REF
      Includes the address and line numbers of data items in the Data Division

      RTNCODE-SIZE
      Specifies the size of the RETURN-CODE special register and its alignment in memory.
      Syntax:

      -.---.--RTNCODE-SIZE--"integer"----------><
      +-/-+
      Parameters:
      integer One of:
      2 PIC S9(4) COMP: size 2 bytes, aligned on a two-byte boundary.
      4 PIC S9(9) COMP: size 4 bytes, aligned on a four-byte boundary.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.