@@ -62,7 +62,7 @@ describe('Content Tests', { concurrent: true }, () => {
6262 tempMbr = `O_ABC` . concat ( connection ! . variantChars . local ) ;
6363
6464 const result = await connection ! . runCommand ( {
65- command : `CRTSRCPF ${ tempLib } /${ tempSPF } MBR(${ tempMbr } )` ,
65+ command : `QSYS/ CRTSRCPF ${ tempLib } /${ tempSPF } MBR(${ tempMbr } )` ,
6666 environment : 'ile'
6767 } ) ;
6868
@@ -83,7 +83,7 @@ describe('Content Tests', { concurrent: true }, () => {
8383
8484 // Cleanup...
8585 await connection ! . runCommand ( {
86- command : `DLTF ${ tempLib } /${ tempSPF } ` ,
86+ command : `QSYS/ DLTF ${ tempLib } /${ tempSPF } ` ,
8787 environment : 'ile'
8888 } ) ;
8989 } ) ;
@@ -129,7 +129,7 @@ describe('Content Tests', { concurrent: true }, () => {
129129 tempObj = `O_ABC` . concat ( connection ! . variantChars . local ) ;
130130
131131 await connection ! . runCommand ( {
132- command : `CRTDTAARA ${ tempLib } /${ tempObj } TYPE(*CHAR)` ,
132+ command : `QSYS/ CRTDTAARA ${ tempLib } /${ tempObj } TYPE(*CHAR)` ,
133133 environment : 'ile'
134134 } ) ;
135135
@@ -143,7 +143,7 @@ describe('Content Tests', { concurrent: true }, () => {
143143
144144 // Cleanup...
145145 await connection ! . runCommand ( {
146- command : `DLTDTAARA ${ tempLib } /${ tempObj } ` ,
146+ command : `QSYS/ DLTDTAARA ${ tempLib } /${ tempObj } ` ,
147147 environment : 'ile'
148148 } ) ;
149149 } ) ;
@@ -580,14 +580,14 @@ describe('Content Tests', { concurrent: true }, () => {
580580 const tempLib = connection . getConfig ( ) . tempLibrary ;
581581 if ( tempLib ) {
582582 const file = Tools . makeid ( 8 ) ;
583- const deleteSPF = async ( ) => await connection . runCommand ( { command : `DLTF FILE(${ tempLib } /${ file } )` , noLibList : true } ) ;
583+ const deleteSPF = async ( ) => await connection . runCommand ( { command : `QSYS/ DLTF FILE(${ tempLib } /${ file } )` , noLibList : true } ) ;
584584 await deleteSPF ( ) ;
585- const createSPF = await connection . runCommand ( { command : `CRTSRCPF FILE(${ tempLib } /${ file } ) RCDLEN(112)` , noLibList : true } ) ;
585+ const createSPF = await connection . runCommand ( { command : `QSYS/ CRTSRCPF FILE(${ tempLib } /${ file } ) RCDLEN(112)` , noLibList : true } ) ;
586586 if ( createSPF . code === 0 ) {
587587 try {
588588 const expectedCount = Math . floor ( Math . random ( ) * ( 10 - 5 + 1 ) ) + 5 ;
589589 for ( let i = 0 ; i < expectedCount ; i ++ ) {
590- const createMember = await connection . runCommand ( { command : `ADDPFM FILE(${ tempLib } /${ file } ) MBR(MEMBER${ i } ) SRCTYPE(TXT)` } ) ;
590+ const createMember = await connection . runCommand ( { command : `QSYS/ ADDPFM FILE(${ tempLib } /${ file } ) MBR(MEMBER${ i } ) SRCTYPE(TXT)` } ) ;
591591 if ( createMember . code ) {
592592 throw new Error ( `Failed to create member ${ tempLib } /${ file } ,MEMBER${ i } : ${ createMember . stderr } ` ) ;
593593 }
@@ -624,11 +624,11 @@ describe('Content Tests', { concurrent: true }, () => {
624624 const content = connection . getContent ( )
625625 const longName = Tools . makeid ( 18 ) ;
626626 const shortName = Tools . makeid ( 8 ) ;
627- const createLib = await connection . runCommand ( { command : `RUNSQL 'create schema "${ longName } " for ${ shortName } ' commit(*none)` , noLibList : true } ) ;
627+ const createLib = await connection . runCommand ( { command : `QSYS/ RUNSQL 'create schema "${ longName } " for ${ shortName } ' commit(*none)` , noLibList : true } ) ;
628628 if ( createLib . code === 0 ) {
629629 try {
630630 const asp = await connection . lookupLibraryIAsp ( shortName ) ;
631- await connection . runCommand ( { command : `CRTSRCPF FILE(${ shortName } /SFILE) MBR(MBR) TEXT('Test long library name')` } ) ;
631+ await connection . runCommand ( { command : `QSYS/ CRTSRCPF FILE(${ shortName } /SFILE) MBR(MBR) TEXT('Test long library name')` } ) ;
632632
633633 const libraries = await content . getLibraries ( { library : `${ shortName } ` } ) ;
634634 expect ( libraries ?. length ) . toBe ( 1 ) ;
@@ -650,29 +650,29 @@ describe('Content Tests', { concurrent: true }, () => {
650650
651651 // Add reply list entry to automatically reply to CPA7025 with 'I'
652652 await connection . runCommand ( {
653- command : `ADDRPYLE SEQNBR(9999) MSGID(CPA7025) RPY('I')` ,
653+ command : `QSYS/ ADDRPYLE SEQNBR(9999) MSGID(CPA7025) RPY('I')` ,
654654 } ) ;
655655
656656 // Change job to use system reply list
657657 await connection . runCommand ( {
658- command : `CHGJOB INQMSGRPY(*SYSRPYL)` ,
658+ command : `QSYS/ CHGJOB INQMSGRPY(*SYSRPYL)` ,
659659 } ) ;
660660
661661 try {
662662 // Now drop the schema - it will automatically reply to CPA7025
663663 await connection . runCommand ( {
664- command : `RUNSQL 'drop schema "${ longName } "' commit(*none)` ,
664+ command : `QSYS/ RUNSQL 'drop schema "${ longName } "' commit(*none)` ,
665665 noLibList : true
666666 } ) ;
667667 } finally {
668668 // Restore job to default inquiry message reply
669669 await connection . runCommand ( {
670- command : `CHGJOB INQMSGRPY(*RQD)` ,
670+ command : `QSYS/ CHGJOB INQMSGRPY(*RQD)` ,
671671 } ) ;
672672
673673 // Clean up the reply list entry
674674 await connection . runCommand ( {
675- command : `RMVRPYLE SEQNBR(9999)` ,
675+ command : `QSYS/ RMVRPYLE SEQNBR(9999)` ,
676676 } ) ;
677677 }
678678 }
@@ -700,15 +700,15 @@ describe('Content Tests', { concurrent: true }, () => {
700700 END_OF_LINE => 'CRLF')` ,
701701 ) ;
702702
703- await connection . runCommand ( { environment : `ile` , command : `CRTCLMOD MODULE(${ tempLib } /${ id } ) SRCSTMF('${ source } ')` } )
703+ await connection . runCommand ( { environment : `ile` , command : `QSYS/ CRTCLMOD MODULE(${ tempLib } /${ id } ) SRCSTMF('${ source } ')` } )
704704
705705 let exports : ModuleExport [ ] = await content . getModuleExports ( tempLib , id ) ;
706706
707707 expect ( exports . length ) . toBe ( 1 ) ;
708708 expect ( exports . at ( 0 ) ?. symbolName ) . toBe ( id ) ;
709709 } finally {
710710 await connection ! . runCommand ( {
711- command : `DLTMOD MODULE(${ tempLib } /${ id } )` ,
711+ command : `QSYS/ DLTMOD MODULE(${ tempLib } /${ id } )` ,
712712 environment : 'ile'
713713 } ) ;
714714 }
@@ -744,11 +744,11 @@ describe('Content Tests', { concurrent: true }, () => {
744744 expect ( info . at ( 0 ) ?. symbolName ) . toBe ( id ) ;
745745 } finally {
746746 await connection ! . runCommand ( {
747- command : `DLTSRVPGM SRVPGM(${ tempLib } /${ id } )` ,
747+ command : `QSYS/ DLTSRVPGM SRVPGM(${ tempLib } /${ id } )` ,
748748 environment : 'ile'
749749 } ) ;
750750 await connection ! . runCommand ( {
751- command : `DLTMOD MODULE(${ tempLib } /${ id } )` ,
751+ command : `QSYS/ DLTMOD MODULE(${ tempLib } /${ id } )` ,
752752 environment : 'ile'
753753 } ) ;
754754 }
0 commit comments