User Tools

Site Tools


project:cobol:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
project:cobol:start [2016/11/25 07:36] – ↷ Page moved and renamed from project:cobol to project:cobol:start ruzaproject:cobol:start [2018/05/04 08:02] ruza
Line 1: Line 1:
 ====== COBOL ====== ====== COBOL ======
  
-{{template>infobox| +{{template>project:infobox| 
-name=Cobol|image=cobol_report_apr60.jpg?200|sw=-|hw=-|founder=[[user:maxfx]]\\ [[user:malanius]] |interested=[[user:sachy]]\\ [[user:ruza]]|status=active}}+name=Cobol|image=cobol_report_apr60.jpg?200|sw=-|hw=-|founder=[[user:maxfx]]\\ [[user:malanius]] |interested=[[user:sachy]]\\ [[user:ruza]]}}
  
 +~~META:
 +status = active
 +&relation firstimage = :project:cobol_report_apr60.jpg
 +~~
  
 On May 28 and 29 of 1959 (exactly one year after the Zürich ALGOL 58 meeting), a meeting was held at the Pentagon to discuss the creation of a common programming language for business. It was attended by 41 people and was chaired by Phillips.The Department of Defense was concerned about whether it could run the same data processing programs on different computers. FORTRAN, the only mainstream language at the time, lacked the features needed to write such programs. On May 28 and 29 of 1959 (exactly one year after the Zürich ALGOL 58 meeting), a meeting was held at the Pentagon to discuss the creation of a common programming language for business. It was attended by 41 people and was chaired by Phillips.The Department of Defense was concerned about whether it could run the same data processing programs on different computers. FORTRAN, the only mainstream language at the time, lacked the features needed to write such programs.
Line 16: Line 20:
 ====== IBM COBOL, ILE COBOL ====== ====== IBM COBOL, ILE COBOL ======
 IBM Cobol is for AS400 machine and for ZOS mainframe. IBM Cobol is for AS400 machine and for ZOS mainframe.
-This is example code with call AS400 API for dump memmory in ILE COBOL. 
  
 +
 +Example in ILE COBOL and call FUNCTION API which return the current date.
 +<code cobol>
 +    01 WS-CURRENT-DATE-DATA. 
 +       05 WS-CURRENT-DATE. 
 +          10 WS-CURRENT-YEAR         PIC 9(04). 
 +          10 WS-CURRENT-MONTH        PIC 9(02). 
 +          10 WS-CURRENT-DAY          PIC 9(02). 
 +       05 WS-CURRENT-TIME. 
 +          10 WS-CURRENT-HOURS        PIC 9(02). ​
 +          10 WS-CURRENT-MINUTE       PIC 9(02). ​
 +          10 WS-CURRENT-SECOND       PIC 9(02). ​
 +          10 WS-CURRENT-MILLISECONDS PIC 9(02). ​
 +
 +       PROCEDURE DIVISION. ​
 +       MAIN-LINE SECTION. ​
 +         MOVE FUNCTION CURRENT-DATE to WS-CURRENT-DATE-DATA ​
 +         DISPLAY WS-CURRENT-DATE-DATA​
 +</code>
 +
 +This is example code with call AS400 API for dump memory in ILE COBOL.
 <code cobol> <code cobol>
        PROCESS OPTIONS NOMONOPRC NOSTDTRUNC.                                            PROCESS OPTIONS NOMONOPRC NOSTDTRUNC.                                    
Line 96: Line 120:
 ====== OpenCOBOL (GNUCOBOL) ====== ====== OpenCOBOL (GNUCOBOL) ======
 Open source variant and crossplatform cobol for PC. Open source variant and crossplatform cobol for PC.
-This is example in OpenCOBOL on PC. Program shows date and time.+This is an example in OpenCOBOL on PC. Program shows date and time.
 <code cobol> <code cobol>
       ******************************************************************       ******************************************************************
Line 144: Line 168:
 ====== More Examples ====== ====== More Examples ======
 More code examples for [[https://github.com/Martinfx/Cobol]] More code examples for [[https://github.com/Martinfx/Cobol]]
 +
 +Slides from our actions [[https://brmlab.cz/event/as400clcobol]]