Skip to content

Commit 8fa3f06

Browse files
Merge pull request #115 from openmainframeproject/restructure-vscode-chapters
Restructure VS Code Chapters
2 parents 34ffcfd + 1f7e6f9 commit 8fa3f06

File tree

1 file changed

+58
-54
lines changed

1 file changed

+58
-54
lines changed

COBOL Programming with VSCode.md

Lines changed: 58 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,75 @@ From a software engineering perspective, that even makes sense. Rewrites are al
8080

8181
# VSCode with Zowe Explorer
8282

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.
8484

8585
- **Introduction to Zowe Explorer**
86+
- **Using Zowe Explorer**
8687
- **Profiles in Zowe Explorer**
8788
- **Secure Credentials**
8889
- **Creating a New Profile**
8990
- **Editing Profiles**
9091
- **Deleting Profiles**
91-
- **Using Zowe Explorer**
9292
- **Summary**
9393

9494
## Introduction to Zowe Explorer
9595

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:
9797

9898
* Create, modify, rename, copy and upload data sets directly to a z/OS mainframe.
9999
* Create, modify, rename and upload USS files directly to a z/OS mainframe.
100100
* 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)
102148

103149
## Profiles in Zowe Explorer
104150

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.
106152

107153
### Secure Credentials
108154

@@ -160,7 +206,7 @@ Note: You can leave this blank if you do not want to save your credentials in yo
160206

161207
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.
162208

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.
164210

165211
![](Images/code4z-img14-20.png)
166212

@@ -244,55 +290,9 @@ Zowe Explorer Tree:
244290

245291
![](Images/code4z-img25-28.png)
246292

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-
293293
## Summary
294294

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.
296296

297297
\newpage
298298

@@ -539,6 +539,8 @@ Code4z is an all-in-one, open-source mainframe extension package for Visual Stud
539539

540540
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.
541541

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+
542544
## Known File Extensions
543545

544546
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
937939

938940
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**.
939941

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+
940944
## Summary
941945

942946
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
15861590
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):
15871591

15881592
```
1589-
zowe profiles create zosmf LearnCOBOL --host 192.86.32.250 --port 10443 --ru false --user prompt* --pass prompt*
1593+
zowe profiles create zosmf LearnCOBOL --host 192.86.32.250 --port 10443 --ru false --user prompt* --pass prompt* --ow
15901594
```
15911595

15921596
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

Comments
 (0)