COBOL
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using COBOL.
This programming language may be used to instruct a computer to perform a task.
Execution method: | Compiled (machine code) |
---|---|
Garbage collected: | No |
Parameter passing methods: | By reference, By value |
Type safety: | Strong |
Type strength: | Strong |
Type expression: | Explicit |
Type checking: | Static |
Lang tag(s): | cobol |
See Also: |
Your Help Needed
If you know COBOL, please write code for some of the tasks not implemented in COBOL.
If you know COBOL, please write code for some of the tasks not implemented in COBOL.
COBOL, an acronym for 'COmmon Business Oriented Language', is one of the oldest programming languages, being created in 1959. It was designed by a CODASYL (Conference on Data System Languages) committee with Grace Hopper. It is primarily used in business, finance and administration for companies and governments. It is primarily an imperative, structured language, with support for object-oriented programming added in 2002.
Versions[edit]
- COBOL 1965 added some new features to the original specification.
- ANS COBOL 1968 is the first COBOL standard and was published by ANSI. It was created to improve compatibility between the different versions of the language.
- COBOL 1974 added a few more features to the language, including the ability to
ACCEPT
the date, day and time, and the file organization clause. - COBOL 1985 added many new features to COBOL, notably including: scope terminators (
END-IF
,END-READ
, etc.), theEVALUATE
verb, theCONTINUE
verb, inlinePERFORM
statements, the ability to pass arguments by content, and the deprecation of the infamousALTER
verb. This standard was followed by the intrinsic functions amendment and a clarifications amendment in 1989 and 1991, respectively. - COBOL 2002 was published by ISO as ISO/IEC 1989. It included a host of new features, most notably including object-oriented programming. However, there were also other features, including: floating-point support, portable arithmetic results, pointers, calling conventions to other languages, function prototypes, XML facilities and support for execution within framework environments. This standard has suffered from poor vendor support, due to little commercial demand for the new features.[1]
- COBOL 2014 is the latest version of the standard, published on July 8th, 2014 and accepted by ISO early that summer, and then adopted by ANSI on Oct 31st, 2014. [2] It includes numeric definitions following the IEEE 754 standard.
References[edit]
- ↑ John Billman & Huib Klink, 'Thoughts on the Future of COBOL Standardization', [1]
- ↑ ISO/IEC 1989:2014 Information technology – Programming languages, their environments and system software interfaces – Programming language COBOL', [2]
Subcategories
This category has the following 3 subcategories, out of 3 total.
Pages in category "COBOL"
The following 351 pages are in this category, out of 351 total.
A
- A+B
- Abbreviations, automatic
- ABC words
- Abstract type
- Ackermann function
- Additive primes
- Address of a variable
- Align columns
- Almost prime
- Anagrams
- Anagrams/Deranged anagrams
- Angle difference between two bearings
- Anti-primes
- Append a record to the end of a text file
- Apply a callback to an array
- Arbitrary-precision integers (included)
- Arithmetic-geometric mean
- Arithmetic/Complex
- Arithmetic/Integer
- Array concatenation
- Array length
- Arrays
- Attractive numbers
- Averages/Arithmetic mean
- Averages/Median
- Averages/Root mean square
B
C
- Caesar cipher
- Calculating the value of e
- Calendar
- Calendar - for "REAL" programmers
- Call a foreign-language function
- Call a function
- Call a function in a shared library
- Call an object method
- Cantor set
- Case-sensitivity of identifiers
- Character codes
- Check input device is a terminal
- Check output device is a terminal
- Check that file exists
- Classes
- Code segment unload
- Collections
- Colour bars/Display
- Comma quibbling
- Command-line arguments
- Comments
- Compare a list of strings
- Compiler/AST interpreter
- Compiler/code generator
- Compiler/lexical analyzer
- Compiler/syntax analyzer
- Compiler/virtual machine interpreter
- Compound data type
- Conditional structures
- Constrained random points on a circle
- Continued fraction
- Convert seconds to compound duration
- Conway's Game of Life
- Copy a string
- Count how many vowels and consonants occur in a string
- Count in octal
- Count occurrences of a substring
- Count the coins
- Cousin primes
- CRC-32
- Create a file
- Create a file on magnetic tape
- Create an HTML table
- Create an object at a given address
- CSV data manipulation
- Cumulative standard deviation
- Currency
D
E
F
- Factorial
- Factors of an integer
- Fibonacci sequence
- File input/output
- File size
- Find limit of recursion
- Find prime numbers of the form n*n*n+2
- Find squares n where n+1 is prime
- Find the last Sunday of each month
- Find words which contains all the vowels
- Find words which contains more than 3 e vowels
- First 9 prime Fibonacci number
- Five weekends
- Fixed length records
- FizzBuzz
- Flow-control structures
- Floyd's triangle
- Forest fire
- Fork
- Formatted numeric output
- Four bit adder
- Function definition
- Function prototype
G
H
- Hailstone sequence
- Handle a signal
- Harmonic series
- Harshad or Niven series
- Hello world/Graphical
- Hello world/Line printer
- Hello world/Newbie
- Hello world/Newline omission
- Hello world/Standard error
- Hello world/Text
- Hickerson series of almost integers
- Hofstadter Q sequence
- Holidays related to Easter
- Horizontal sundial calculations
- Hostname
- HTTP
I
L
- Langton's ant
- Last Friday of each month
- Leap year
- Least common multiple
- Letter frequency
- Levenshtein distance
- Literals/Integer
- Literals/String
- Logical operations
- Long multiplication
- Look-and-say sequence
- Loop over multiple arrays simultaneously
- Loops/Break
- Loops/Continue
- Loops/Do-while
- Loops/Downward for
- Loops/For
- Loops/For with a specified step
- Loops/Foreach
- Loops/Infinite
- Loops/N plus one half
- Loops/Nested
- Loops/While
- Luhn test of credit card numbers
M
N
O
P
- Palindrome detection
- Pangram checker
- Parsing/RPN calculator algorithm
- Perfect numbers
- Pernicious numbers
- Phrase reversals
- Pick random element
- Playing cards
- Pointers and references
- Population count
- Primality by trial division
- Print debugging statement
- Product of divisors
- Program name
- Program termination
- Pseudo-random numbers/Middle-square method
R
S
- Scope modifiers
- Search a list
- SEDOLs
- Selective file copy
- Sequence of non-squares
- Shell one-liner
- Show ASCII table
- Show the (decimal) value of a number of 1s appended with a 3, then squared
- Show the epoch
- Sierpinski triangle
- Sieve of Eratosthenes
- Simple database
- Sleep
- Smallest square that begins with n
- Sort an integer array
- Sort numbers lexicographically
- Sort stability
- Sort three variables
- Sorting algorithms/Bead sort
- Sorting algorithms/Bogosort
- Sorting algorithms/Bubble sort
- Sorting algorithms/Cocktail sort
- Sorting algorithms/Comb sort
- Sorting algorithms/Gnome sort
- Sorting algorithms/Heapsort
- Sorting algorithms/Insertion sort
- Sorting algorithms/Merge sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Selection sort
- Sorting algorithms/Shell sort
- Sorting algorithms/Stooge sort
- Soundex
- Special divisors
- Split a character string based on change of character
- Square but not cube
- Stack
- Strange numbers
- Strange plus numbers
- String append
- String case
- String comparison
- String concatenation
- String interpolation (included)
- String length
- String prepend
- Strip a set of characters from a string
- Strip comments from a string
- Strip whitespace from a string/Top and tail
- Subleq
- Substring
- Substring/Top and tail
- Sum and product of an array
- Sum multiples of 3 and 5
- Sum of a series
- Sum of first n cubes
- Sum of square and cube digits of an integer are primes
- Sum of the digits of n is substring of n
- System time
T
- Take notes on the command line
- Tau function
- Temperature conversion
- Terminal control/Clear the screen
- Terminal control/Coloured text
- Terminal control/Cursor positioning
- Terminal control/Dimensions
- Terminal control/Display an extended character
- Terminal control/Inverse video
- Terminal control/Ringing the terminal bell
- Test integerness
- Text processing/1
- Text processing/2
- Text processing/Max licenses in use
- The Twelve Days of Christmas
- Tokenize a string
- Tokenize a string with escaping
- Towers of Hanoi
- Trigonometric functions
- Two identical strings