Skip to content

Commit a1003aa

Browse files
authored
Merge pull request #3172 from julesyan/qualifiers
Added qualifiers for remaining commands
2 parents 6e37768 + 7c6b28a commit a1003aa

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/api/IBMiContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ export default class IBMiContent {
940940

941941
async checkObject(object: { library: string, name: string, type: string, member?: string }, authorities: Authority[] = [`*NONE`]) {
942942
return (await this.ibmi.runCommand({
943-
command: this.toCl(`CHKOBJ`, {
943+
command: this.toCl(`QSYS/CHKOBJ`, {
944944
obj: `${this.ibmi.upperCaseName(object.library)}/${this.ibmi.upperCaseName(object.name)}`,
945945
objtype: object.type.toLocaleUpperCase(),
946946
aut: authorities.join(" "),
@@ -1110,7 +1110,7 @@ export default class IBMiContent {
11101110
paths = Array.isArray(paths) ? paths : [paths];
11111111
const toPathIsDir = await this.isDirectory(Tools.escapePath(toPath));
11121112
for (const path of paths) {
1113-
const result = await this.ibmi.runCommand({ command: `COPY OBJ('${path}') ${toPathIsDir ? 'TODIR(' : 'TOOBJ('}'${toPath}') SUBTREE(*ALL) REPLACE(*YES)`, environment: "ile" });
1113+
const result = await this.ibmi.runCommand({ command: `QSYS/COPY OBJ('${path}') ${toPathIsDir ? 'TODIR(' : 'TOOBJ('}'${toPath}') SUBTREE(*ALL) REPLACE(*YES)`, environment: "ile" });
11141114
if (result.code !== 0) {
11151115
return result;
11161116
}

src/api/components/password.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class PasswordManager implements IBMiComponent {
5353
call QSYS2.QCMDEXC('grtobjaut ${connection.getConfig().tempLibrary}/${PasswordManager.ID} *PGM *PUBLIC *ALL');
5454
`);
5555
const compile = await connection.runCommand({
56-
command: `RUNSQLSTM SRCSTMF('${source}') COMMIT(*NONE) NAMING(*SQL) OPTION(*NOSRC)`,
56+
command: `QSYS/RUNSQLSTM SRCSTMF('${source}') COMMIT(*NONE) NAMING(*SQL) OPTION(*NOSRC)`,
5757
noLibList: true
5858
});
5959
if (compile.code !== 0) {

src/ui/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export async function runAction(instance: Instance, uris: vscode.Uri | vscode.Ur
343343
file: `${lib}/${srcpf}`,
344344
});
345345

346-
const copyFromStreamfile = content.toCl(`CPYFRMSTMF`, {
346+
const copyFromStreamfile = content.toCl(`QSYS/CPYFRMSTMF`, {
347347
fromstmf: fullPath,
348348
tombr: `'${Tools.qualifyPath(lib, srcpf, evfeventInfo.object)}'`,
349349
mbropt: `*REPLACE`,

src/ui/views/ifsBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class IFSBrowserDragAndDrop implements vscode.TreeDragAndDropController<IFSItem>
285285
try {
286286
for (const uri of uris) {
287287
const member = connection.parserMemberPath(uri.path);
288-
const command: string = `CPYTOSTMF FROMMBR('${Tools.qualifyPath(member.library, member.file, member.name, member.asp)}') TOSTMF('${toDirectory.path}/${member.basename.toLocaleLowerCase()}') STMFCCSID(1208) ENDLINFMT(*LF)`;
288+
const command: string = `QSYS/CPYTOSTMF FROMMBR('${Tools.qualifyPath(member.library, member.file, member.name, member.asp)}') TOSTMF('${toDirectory.path}/${member.basename.toLocaleLowerCase()}') STMFCCSID(1208) ENDLINFMT(*LF)`;
289289
const result = await connection.runCommand({
290290
command: command,
291291
noLibList: true

0 commit comments

Comments
 (0)