Kwebble : Blog

Archief van 31 december 2007

  • COBOL example

    Gepubliceerd op 31 december 2007 in Programming.

    In my comment on the post Logical flow of an Interactive program the structure of the COBOL source code got lost, here is how it’s supposed to look:

           MainParagraph.
               perform InitProgram
               perform ProcessScreen
                 until EndOfProgram
               perform ExitProgram
    
               goback
               .
    
           InitProgram.
               set ContinueProgram             to true
               .
    
           ExitProgram.
               continue
               .
    
           ProcessScreen.
               perform ShowScreen
    
               evaluate true
                 when EnterKey
                   perform CheckInput
    
                 when CF03
                   set EndOfProgram            to true
                   set linkF03Used             to true
    
                 when CF08
                   perform CheckInput
    
                   if NoErrors
                      perform WriteData
                   end-if
    
                   if NoErrors
                      set EndOfProgram         to true
                   end-if
    
                 when CF12
                    set EndOfProgram           to true
                    set linkF12Used            to true
               end-evaluate
               .
    
    • cobol
  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • Stanford Web Applications course lectures
    • The importance of knowing Unicode
    • “If you are not paying for it, you’re not the customer; you’re the product being sold.”
    • Inzage in je gegevens bij Facebook
    • Tuning Oracle UCM 11 & Site Studio performance
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact