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
On the main branch of vscode-ibmi, the IBM i API is written so it is can be portable and used outside of the VS Code namespace (this is how the vitest tests work). Until we publish the API as a standalone package, you will need to manually import the API.
78
+
79
+
After using `npm i github:codefori/vscode-ibmi`, you will need to cleanup/remove everything but the `src/api` directory.
@@ -91,12 +91,12 @@ To make use of the Debug Service, you need the following PTFs:
91
91
92
92
* Java 11 information:
93
93
*`/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit`
94
-
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
94
+
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
95
95
96
-
<Asidetype="danger">
97
-
Two defective PTF's are included in IBM i 7.5 [Java PTF Group SF99955 level 15](http://www.ibm.com/support/docview.wss?uid=nas4SF99955), released on 2025-07-03: **SJ05893 and SJ05889**.
98
-
99
-
After applying these PTFs, the debug service will no longer start. Please remove these PTFs for the debug service to work again.
96
+
<Asidetype="note">
97
+
IBM i 7.5 Java PTF Group SF99955 level 15 and IBM i 7.4 Java PTF Group SF99665 level 28 contained two defective PTF's for Java 11. These PTF's has now been superceded by newer PTF's included in PTF Group SF99955 level 16 for 7.5 and PTF Group SF99665 level 29 for 7.4.
98
+
99
+
For more information, read [this IBM Support document](https://www.ibm.com/support/pages/node/7239287)
100
100
</Aside>
101
101
102
102
</TabItem>
@@ -109,7 +109,7 @@ To make use of the Debug Service, you need the following PTFs:
109
109
* 7.3 PTF SJ02996
110
110
* Java 11 is required via LPP 5770JV1 Option 19 (not Java from Yum)
111
111
*`/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit`
112
-
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
112
+
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
113
113
* 5770WDS option 60 is required
114
114
* Workstation Tools - Base
115
115
@@ -122,7 +122,7 @@ To make use of the Debug Service, you need the following PTFs:
122
122
* IBM i 7.3 PTF SI85976 and SI82198
123
123
* Java 11 is required via LPP 5770JV1 Option 19 (not Java from Yum)
124
124
*`/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit`
125
-
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
125
+
*[IBM documentation for PTFs](https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os)
126
126
* 5770WDS option 60 is required
127
127
* Workstation Tools - Base
128
128
@@ -144,15 +144,15 @@ After you have installed the PTFs, the connection inside of Visual Studio Code w
144
144
## Configuring & starting the service
145
145
146
146
This must be done with user that has *ALLOBJ and *SYSADM privlages.
147
-
Below are the base requirements to configure the certificate:
147
+
Below are the base requirements to configure the certificate:
148
148
- Master key 1 is set (this can be done in Navigator for IBM i under Security > Cryptographic Services Key Management > Manage Master Keys)
149
149
-*SYSTEM store is populated with a valid certificate (this can be done in Digital Certificate Manager)
150
150
151
151
1. On Navigator for IBM i, go to Network > Servers > TCP/IP Servers
152
152
2. Scroll down to System Debugger and right click
153
153
3. Hover over Stop Instance, select Debug Service
154
154

155
-
4. Right click System Debugger again, select Regenerate Debug Service Trust Store
155
+
4. Right click System Debugger again, select Regenerate Debug Service Trust Store
156
156

157
157
5. Enter in the password for the *SYSTEM store, click OK
Copy file name to clipboardExpand all lines: src/content/docs/extensions/db2i/index.mdx
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,22 @@ update: select * from sample.employee;
77
77
78
78
Enter the value `null` to set a column to *null*. If the column cannot accept at least 4 characters, then `-` (a dash) may be used.
79
79
80
+
### Binding parameters
81
+
82
+
It is possible to bind to SQL parameters inside of SQL statements - both `?` markers and named parameters (e.g. `:param1`) are supported - by using the `bind:` prefix. `bind:` is followed by a list of strings or numbers, either space or comma separated. When executing the prefix, it will find the most previous statement in the document to bind to.
83
+
84
+
```sql
85
+
select*from employee where empno = ?;
86
+
87
+
bind: '000010';
88
+
bind: '000020';
89
+
90
+
select*from employee where empno = ? and workdept = ?;
91
+
92
+
bind: '000010', 'A00';
93
+
bind: '000020', 'A00';
94
+
```
95
+
80
96
## Syntax checking
81
97
82
98
When connected to an IBM i, the syntax checker has the following options:
@@ -119,6 +135,21 @@ The Db2 for i extension adds a view called Schema Browser which allows the user
119
135
120
136
If you are using the Schema Browser to browse objects, you are able to use the 'View contents' icon when hovering over a table, view, or alias to cause a basic SQL select statement to be generated and executed.
121
137
138
+
139
+
## Using Examples
140
+
141
+
The Examples view provides users with a set of SQL example scripts that can be used as a learning tool or as a starting point for their own SQL scripts. These examples are grouped into categories to make it easy to find what you are looking for. You can hover over any example to get a preview of the SQL script or click on it to open a copy which you can freely edit.
142
+
143
+

144
+
145
+
On top of the built-in examples, users can also add specific directories containing their own SQL examples using the `Add...` button under the `Custom Examples Directories` submenu on the Examples view. All SQL files in the specified directories and at most one subdirectory level deeper will be picked up. By default, the folder name will be the category and the file name will be the name of the example. This can be customized by optionally including a comment in the file with the tags `category` and `description`.
146
+
147
+

148
+
149
+
Once you have added a custom examples directory, you can quickly save new examples to that directory using the `Save As New Example` button in the Examples view.
150
+
151
+

152
+
122
153
## SQL Error Logging Facility (SELF)
123
154
124
155
SQL Error Logging Facility (SELF) offers a comprehensive view that can help users understand specific SQL errors or warnings. The SELF view can be accessed through the IBM i panel next to the Results View.
Multiple connections can be defined and some settings are specific to a connection and can be saved for the connection and later reloaded.
8
8
9
+
### Read only mode
10
+
11
+
When checked, you can not change any content on the server, run any actions on the server or open any terminal.
12
+
You can only browse the content of the server, and members and streamfiles will always be opened in readonly mode.
13
+
14
+
<Asidetype="note">
15
+
This setting can be controlled by the IBM i system administrator in the [system settings](../system/).
16
+
</Aside>
17
+
18
+
<Asidetype="danger">
19
+
This setting can only protect against changes from Code for IBM i. It will not protect against changes from any other interface or application.
20
+
21
+
Configuration of IBM i object security on the server is advised!
22
+
</Aside>
23
+
9
24
### Current library
10
25
11
26
The library which will be set as the current library during compilation.
12
27
13
-
You can change the current library with the 'Change build library' command (F1 -> Change build library).
28
+
You can change the current library with the 'Change Current Library' command in the Command Palette (F1).
14
29
15
30
### Home Directory
16
31
@@ -20,15 +35,15 @@ Home directory for user. This directory is also the root for the IFS browser.
20
35
21
36
Temporary library. Stores temporary objects used by Code for i. Will be created automatically if it does not exist. Cannot be QTEMP. Default value is `ILEDITOR`.
22
37
23
-
<Asidetype="danger">
38
+
<Asidetype="note">
24
39
If your IBM i runs replication software, there is no need to replicate the temporary library. Your sysadmin may add it to the list of objects to be ignored.
25
40
</Aside>
26
41
27
42
### Temporary IFS directory
28
43
29
44
Temporary IFS directory. Stores temporary IFS files used by Code for i. Will be created automatically if it does not exist. Must be in root or QOpenSys filesystem. Default value is `/tmp`.
30
45
31
-
<Asidetype="danger">
46
+
<Asidetype="note">
32
47
If your IBM i runs replication software, there is no need to replicate the temporary directory. Your sysadmin may add it to the list of path to be ignored.
Copy file name to clipboardExpand all lines: src/content/docs/settings/system.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ As of Code for IBM i 2.16.3, the extension supports system-wide settings that ca
8
8
9
9
All configuration files related to VS Code settings should be stored under `/etc/vscode/` in the IFS.
10
10
11
-

12
-
13
11
### Code for IBM i settings
14
12
13
+

14
+
15
15
The path is `/etc/vscode/settings.json`. The top level is a JSON object that can contain different properties. Below is a table for the first level of properties. If sub-properties are not described here, refer to the content assist while working on the file.
0 commit comments