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 with VSCode.md
+58-54Lines changed: 58 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,29 +80,75 @@ From a software engineering perspective, that even makes sense. Rewrites are al
80
80
81
81
# VSCode with Zowe Explorer
82
82
83
-
Zowe Explorer is an open-source extension for VS Code that lets developers and system administrators interact with z/OS mainframes using the VSC interface.
83
+
Zowe Explorer is an open-source extension for VS Code that lets developers and system administrators interact with z/OS mainframes.
84
84
85
85
-**Introduction to Zowe Explorer**
86
+
-**Using Zowe Explorer**
86
87
-**Profiles in Zowe Explorer**
87
88
-**Secure Credentials**
88
89
-**Creating a New Profile**
89
90
-**Editing Profiles**
90
91
-**Deleting Profiles**
91
-
-**Using Zowe Explorer**
92
92
-**Summary**
93
93
94
94
## Introduction to Zowe Explorer
95
95
96
-
The Zowe Explorer extension modernizes the way developers and system administrators interact with z/OS mainframes. Working with data sets and USS files from VSC can be more convenient than using 3270 emulators. The extension provides the following benefits:
96
+
The Zowe Explorer extension modernizes the way developers and system administrators interact with z/OS mainframes. Working with data sets and USS files from VS Code can be more convenient than using 3270 emulators. The extension provides the following benefits:
97
97
98
98
* Create, modify, rename, copy and upload data sets directly to a z/OS mainframe.
99
99
* Create, modify, rename and upload USS files directly to a z/OS mainframe.
100
100
* Streamlined process to access data sets, USS files and jobs.
101
-
* Create and use Zowe CLI `zosmf` compatible profiles.
101
+
* Easy interact with multiple z/OS systems
102
+
103
+
The Zowe Explorer can be installed into VS Code by searching the Extensions Marketplace inside VS Code for "Zowe Explorer" and selecting install. To see more detailed instructions on installing this extension, refer to "Installation of VSCode and Extensions".
104
+
105
+
## Using Zowe Explorer
106
+
107
+
Zowe Explorer allows you to work with data sets, Unix System Service (USS) files, and jobs.
108
+
109
+
Zowe Explorer offers the following functions:
110
+
111
+
Data sets
112
+
113
+
* Search for data sets matching desired filters and view their contents
114
+
115
+
* Download, edit, and upload existing PDS members
116
+
117
+
* Create and delete both data sets and data set members
118
+
119
+
* Interact with data sets from multiple systems simultaneously
120
+
121
+
* Rename data sets
122
+
123
+
* Copy data sets
124
+
125
+
* Submit JCL from a chosen data set member
126
+
127
+
USS Files
128
+
129
+
* View multiple Unix System Services (USS) files simultaneously
130
+
131
+
* Download, edit, and upload existing USS files
132
+
133
+
* Create and delete USS files and directories
134
+
135
+
* Interact with USS files from multiple systems simultaneously
136
+
137
+
* Rename USS files
138
+
139
+
Jobs
140
+
141
+
* View multiple jobs simultaneously
142
+
143
+
* Download spool content
144
+
145
+
* Interact with jobs from multiple systems simultaneously
146
+
147
+
For more information about Zowe Explorer and the different use cases, visit the [marketplace](https://marketplace.visualstudio.com/items?itemName=Zowe.vscode-extension-for-zowe)
102
148
103
149
## Profiles in Zowe Explorer
104
150
105
-
Profiles serve as a point-of-contact for Zowe Explorer and Mainframe. Profiles contain the URL for the API services that you want to connect to, and your credentials. The main profile information that you need for Zowe Explorer is the z/OSMF Connection.
151
+
Profiles serve as a point-of-contact for Zowe Explorer and the Mainframe. Profiles contain the URL for the API services that you want to connect to, and your credentials. The main profile information that you need for Zowe Explorer is the z/OSMF Connection. If you have the Zowe Explorer installed, you can follow the steps in this section to connect to the mainframe.
106
152
107
153
### Secure Credentials
108
154
@@ -160,7 +206,7 @@ Note: You can leave this blank if you do not want to save your credentials in yo
160
206
161
207
Note: You can leave this blank if you do not want to save your credentials in your machine. You will be prompted for your username once you start using Zowe Explorer.
162
208
163
-
8. Select True/False if you want to accept or reject Self-Signed Certificates.
209
+
8. Select True/False if you want to accept or reject Self-Signed Certificates. For this course, please select false.
164
210
165
211

166
212
@@ -244,55 +290,9 @@ Zowe Explorer Tree:
244
290
245
291

246
292
247
-
## Using Zowe Explorer
248
-
249
-
Zowe Explorer allows you to work with data sets, Unix System Service (USS) files, and jobs.
250
-
251
-
Zowe Explorer offers the following functions:
252
-
253
-
Data sets
254
-
255
-
* View data sets and use multiple filters.
256
-
View multiple data sets simultaneously and apply filters to show specific data sets.
257
-
258
-
* Rename data sets
259
-
260
-
* Copy data sets
261
-
262
-
* Download, edit, and upload existing PDS members
263
-
Instantly pull data sets and data set members from the mainframe, edit them and upload back.
264
-
265
-
* Create and delete both data sets and data set members
266
-
267
-
* View, access, and work with multiple profiles simultaneously.
268
-
269
-
* Submit a JCL.
270
-
You can submit a JCL from a chosen data set.
271
-
272
-
USS Files
273
-
274
-
* View multiple Unix System Services (USS) files simultaneously.
275
-
276
-
* Rename USS files.
277
-
278
-
* Download, edit, and upload existing USS files.
279
-
You can instantly pull USS files from the mainframe, edit them and upload back.
280
-
281
-
* Create and delete USS files and directories.
282
-
283
-
* View, access, and work with multiple profiles simultaneously.
284
-
285
-
Jobs:
286
-
287
-
* View multiple jobs simultaneously.
288
-
289
-
* Download spool content onto your computer.
290
-
291
-
For more information about Zowe Explorer and the different use cases, visit the GitHub repository: [https://github.com/zowe/vscode-extension-for-zowe](https://github.com/zowe/vscode-extension-for-zowe)
292
-
293
293
## Summary
294
294
295
-
In this section you have learned how to create and work with Zowe compatible `zosmf` profiles and learned about the basic features of the Zowe Explorer extension.
295
+
In this section you have learned the basic features of the Zowe Explorer extension and how to create and work with Zowe compatible `zosmf` profiles.
296
296
297
297
\newpage
298
298
@@ -539,6 +539,8 @@ Code4z is an all-in-one, open-source mainframe extension package for Visual Stud
539
539
540
540
The COBOL Language Support extension leverages the Language Server Protocol to provide autocomplete, highlighting, and diagnostic features for COBOL code. Together with Zowe Explorer, you can load COBOL code from a mainframe data set, and edit it leveraging the LSP features of the extension. Once you finish editing, you can save the file back on the mainframe, and store a copy locally.
541
541
542
+
The Code4z Extension Pack can be installed into VS Code by searching the Extensions Marketplace inside VS Code for "Code4z" and selecting install. The extension pack contains a number of extensions that can be leveraged when working with the mainframe, including the COBOL Language Support extension which provides similar functionality to the Z Open Editor extension discussed earlier. Therefore, ensure only one of these two extensions is enabled. Other extensions included in the pack will work with either COBOL Language Support or Z Open Editor. To see more detailed instructions on installing this extension, refer to "Installation of VSCode and Extensions".
543
+
542
544
## Known File Extensions
543
545
544
546
Code4z recognises files with the extension .COB and .CBL as COBOL files. This applies to both local files and files held in a PDS on the mainframe. COBOL Language Support features are automatically enabled when you open any file with an extension identifying it as a COBOL file.
@@ -937,6 +939,8 @@ Code4z is an all-in-one, open-source mainframe extension package for developers
937
939
938
940
Open VSCode and in the left side tool menu select **Extensions**. From there, in the "Search Extensions in Marketplace" search field, type `Code4z`. Search results will begin populating, select **" Code4z "** and click **install**.
939
941
942
+
The extension pack contains a number of extensions that can be leveraged when working with the mainframe, including the COBOL Language Support extension which provides similar functionality to the Z Open Editor extension. Therefore, ensure only one of these extensions is enabled. Extensions can be disabled within VS Code by locating the extension in the Extensions menu, clicking the settings gear, and selecting `Disable`. Other extensions included in the Code4z pack will work with either COBOL Language Support or Z Open Editor.
943
+
940
944
## Summary
941
945
942
946
In this chapter you have been introduced to VSCode and some of the extension tools available to it. We have walked through the process of installing the pre-requisite software, Node.js and Java SDK, as well as VSCode, Zowe Explorer, IBM Z Open Editor and Code4z. You have also been briefly introduced to the utility of these extensions in VSCode. In the subsequent chapters we will delve deeper into how and when to use them and get some practice through lab assignments.
@@ -1586,7 +1590,7 @@ In this section, we will use the Zowe CLI interactively to view data set members
1586
1590
To create a LearnCOBOL profile (and overwrite it if it already exists), issue the following command with your system details (using `prompt*` will prompt you for certain fields and not show input):
Many profiles can be created for interacting with different z/OSMF instances. If this was not your first profile, you will want to set it as the default for the following lab exercises. Issue the following command:
0 commit comments