Fireship · @fireship

COBOL in 100 seconds

Uploaded April 11, 2020 · Length 2:03

COBOL in 100 seconds

Summary

COBOL explained in 100 seconds, its history, syntax, and uses in 2020.

  • cobol programming language
  • mainframe systems
  • legacy systems
  • programming jobs
  • cobol syntax

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    common business oriented language or

  2. 0:01

    COBOL is a weak verbose and flabby

  3. 0:03

    language used by coat grinders to do

  4. 0:05

    boring things on dinosaur mainframes it

  5. 0:07

    was developed over 100 years ago in 1959

  6. 0:10

    but is still in demand today in 2020

  7. 0:12

    because it's the language used on many

  8. 0:14

    mainframe computer systems you know

  9. 0:16

    those things we call big iron usually

  10. 0:18

    built by IBM to handle massive amounts

  11. 0:20

    of throughput to handle things like

  12. 0:21

    credit card transactions airline

  13. 0:23

    ticketing and most recently the massive

  14. 0:25

    spike in unemployment claims so if you

  15. 0:27

    want to be a programmer in 2020 COBOL

  16. 0:29

    might be your best bet it's a high-level

  17. 0:30

    imperative language which means it's

  18. 0:32

    very easy to learn the syntax is

  19. 0:34

    extremely verbose by design because it's

  20. 0:35

    self documenting and it contains over

  21. 0:37

    600 reserved words for you to memorize

  22. 0:39

    to take advantage of and every COBOL

  23. 0:41

    program is structured with an

  24. 0:43

    easy-to-follow hierarchy your program

  25. 0:44

    contains many divisions which contain

  26. 0:46

    many sections which contain many

  27. 0:47

    paragraphs which contain many sentences

  28. 0:49

    that contain your statements which of

  29. 0:51

    course contain many characters when you

  30. 0:52

    start writing some COBOL code you'll

  31. 0:54

    notice these vertical lines in your IDE

  32. 0:55

    the first six characters are your line

  33. 0:57

    numbers start at zero zero zero one

  34. 0:59

    hundred and increment by 100 for each

  35. 1:01

    line column seven is where you identify

  36. 1:02

    comments or the continuation of a

  37. 1:04

    previous line if we're identifying a new

  38. 1:06

    division section or paragraph we can use

  39. 1:08

    columns 8 through 11 and notice how

  40. 1:10

    every line ends with a period that's

  41. 1:12

    what's known as readable code now

  42. 1:13

    columns 12 through 72 are where you

  43. 1:15

    write your actual statements the reason

  44. 1:17

    you don't go beyond 72 columns is

  45. 1:19

    because your code needs to fit onto a

  46. 1:20

    physical punch card and it ensures your

  47. 1:22

    program is responsive on mobile devices

  48. 1:24

    we can define our variables in the data

  49. 1:26

    division first we name the variable then

  50. 1:28

    we define its data type with the picture

  51. 1:29

    keyword then assign a value to it we can

  52. 1:31

    then work with this data in the

  53. 1:33

    procedure division we display the

  54. 1:34

    variable then tell our program to stop

  55. 1:36

    from there we can pile our program to a

  56. 1:37

    binary run it and everything should work

  57. 1:39

    perfectly and now you're qualified for a

  58. 1:41

    six-figure salary maintaining the

  59. 1:43

    world's most critical legacy systems

  60. 1:44

    this has been COBOL in 100 seconds hit

  61. 1:47

    the like button if you want to see more

  62. 1:48

    short videos like this thanks for

  63. 1:50

    watching and I will see you in the next

  64. 1:51

    one oh hey there thanks for sticking

  65. 1:54

    around this is the part of the video

  66. 1:55

    where we go beyond 100 seconds to

  67. 1:57

    learned some more advanced features of

  68. 1:58

    COBOL