You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COBOL Programming Course #2 - Advanced Topics/COBOL Programming Course #2 - Advanced Topics.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,31 +49,29 @@ Can you fix the code to get the correct result? The new source code is named **C
49
49
50
50
You can find them in the github repository for the COBOL course, in the subfolder **/COBOL Programming Course #2 - Advanced Topics/Challenges/Debugging**.
51
51
52
-
# COBOL Challenge - The Covid 19 Reports
52
+
# COBOL Challenge - The COVID-19 Reports
53
53
54
-
Today, you are tasked to create a COVID-19 Summary Report of all the countries around the world. The information will come from COVID19API website.
54
+
Today, you are tasked to create a COVID-19 Summary Report of all the countries around the world, using information from the COVID19API website.
55
55
56
-
Here are the instructions:
56
+
## Instructions
57
57
58
-
- Extract the response from this API: https://api.covid19api.com/summary. You will receive a JSON file that is similar to the photo below:
58
+
- Extract the response from this API: https://api.covid19api.com/summary. You will receive a JSON file that is similar to the image below:
59
59
60
60

61
61
62
62
- Convert that file to CSV format. It should look like this. In my example, I only chose the “Countries” part.
63
63
64
64

65
65
66
-
- Using Zowe, Upload the CSV file that you have created to mainframe.
66
+
- Using Zowe, upload the CSV file to the mainframe.
67
67
68
-
`Hint: you can use the command zowe files ul ftds “file location” “dataset name”`
68
+
**Hint:** You can use the command `zowe files ul ftds “file location” “dataset name”` to upload the CSV file to the mainframe.
69
69
70
-
- Create a new member in your *.CBL Dataset to write your COBOL program.
70
+
- Create a new member in your *.CBL data set to write your COBOL program.
71
71
72
-
`Hint: This step can be done using Zowe Explorer and Zowe CLI`
72
+
**Hint:** You can create a member using Zowe Explorer or Zowe CLI.
73
73
74
-
- Begin writing your COBOL program
75
-
76
-
- In your COBOL program, you have to read the uploaded CSV file and re-format it to display the contents like this:
74
+
- Write a COBOL program that reads the uploaded CSV file and reformats it to display the contents like this:
-Optional: A more advance approach is to reformat it into a Report Form like this:
92
+
-Compile and test your work.
95
93
96
-

94
+
## Advanced Tasks
95
+
96
+
If you want a more challenging approach, try the optional tasks below:
97
97
98
-
-Compile and Test your work
98
+
-Reformat the data into a Report Form like this:
99
99
100
-
- Optional: Automate. Using NPM and Zowe CLI, Run all these steps and create a “one click” COBOL build similar to this.
100
+

101
+
102
+
- Automate. Using NPM and Zowe CLI, run all these steps and create a “one click” COBOL build similar to this:
101
103
102
104

103
105
104
-
I hope this could be a good COBOL challenge to anybody who is willing to try.
105
-
If you want to check the solution, read all about it [here](https://medium.com/@jessielaine.punongbayan/solution-covid-19-reports-cobol-challenge-6c509579e3fe?source=friends_link&sk=5a662034a03c91d639b77267ed6abfc9).
106
+
## Solution
107
+
108
+
To check the solution, refer to the blog post [here](https://medium.com/@jessielaine.punongbayan/solution-covid-19-reports-cobol-challenge-6c509579e3fe?source=friends_link&sk=5a662034a03c91d639b77267ed6abfc9).
0 commit comments