project:cobol:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
project:cobol:start [2016/11/25 07:36] – ↷ Page moved and renamed from project:cobol to project:cobol:start ruza | project:cobol:start [2016/11/27 14:23] – [More Examples] maxfx | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== COBOL ====== | ====== COBOL ====== | ||
- | {{template> | + | {{template> |
- | name=Cobol|image=cobol_report_apr60.jpg? | + | name=Cobol|image=cobol_report_apr60.jpg? |
+ | ~~META: | ||
+ | status = active | ||
+ | ~~ | ||
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 19: | ||
====== 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 current date. | ||
+ | <code cobol> | ||
+ | 01 WS-CURRENT-DATE-DATA. | ||
+ | 05 WS-CURRENT-DATE. | ||
+ | 10 WS-CURRENT-YEAR | ||
+ | 10 WS-CURRENT-MONTH | ||
+ | 10 WS-CURRENT-DAY | ||
+ | 05 WS-CURRENT-TIME. | ||
+ | 10 WS-CURRENT-HOURS | ||
+ | 10 WS-CURRENT-MINUTE | ||
+ | 10 WS-CURRENT-SECOND | ||
+ | 10 WS-CURRENT-MILLISECONDS PIC 9(02). | ||
+ | |||
+ | | ||
+ | | ||
+ | MOVE FUNCTION CURRENT-DATE to WS-CURRENT-DATE-DATA | ||
+ | | ||
+ | </ | ||
+ | |||
+ | This is example code with call AS400 API for dump memmory in ILE COBOL. | ||
<code cobol> | <code cobol> | ||
| | ||
Line 144: | Line 167: | ||
====== More Examples ====== | ====== More Examples ====== | ||
More code examples for [[https:// | More code examples for [[https:// | ||
+ | |||
+ | Slides from our actions [[https:// |