Skip to content

Commit

Permalink
Change a few more QGY.LIB API calls to their QSYS.LIB equivalents.
Browse files Browse the repository at this point in the history
Missed these in ed6da9b because I searched for "QGY.LIB" when making my initial changes, but these used QSYSObjectPathName.toPath() to build the name. See that commit for more details on this change.

Signed-off-by: Parker Young <[email protected]>
  • Loading branch information
pjyoung-ibm authored and jeber-ibm committed Sep 5, 2024
1 parent f3d46bb commit b1a11ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/ibm/as400/access/ValidationList.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void closeList(byte[] handle) throws PersistenceException {
ProgramCall pgm = new ProgramCall(getAS400());
ProgramParameter[] parmList = new ProgramParameter[2];
try {
pgm.setProgram(QSYSObjectPathName.toPath("QGY", "QGYCLST", "PGM"), parmList);
pgm.setProgram(QSYSObjectPathName.toPath("QSYS", "QGYCLST", "PGM"), parmList);
} catch (PropertyVetoException pve) { Trace.log(Trace.ERROR, pve); }

// Refer to documentation for the QGYCLST generic list API for a complete description of parameters
Expand Down Expand Up @@ -322,7 +322,7 @@ public ValidationListEntry[] getEntries() throws PersistenceException {
ProgramParameter[] parmList = new ProgramParameter[7];
int bufferLength = LISTBUFFER_LENGTH_INITIAL;
try {
pgm.setProgram(QSYSObjectPathName.toPath("QGY", "QSYOLVLE", "PGM"), parmList);
pgm.setProgram(QSYSObjectPathName.toPath("QSYS", "QSYOLVLE", "PGM"), parmList);
} catch (PropertyVetoException pve) { Trace.log(Trace.ERROR, pve); }

// Refer to documentation for the QSYOLVLE Security API for a complete description of parameters
Expand Down Expand Up @@ -420,7 +420,7 @@ private int getNextEntries(byte[] listHandle, int listPosition, ValidationListEn
// Try & retrieve all remaining entries in a single call; keeps it simple for now
int bufferLength = LISTBUFFER_LENGTH_NEXT;
try {
pgm.setProgram(QSYSObjectPathName.toPath("QGY", "QGYGTLE", "PGM"), parmList);
pgm.setProgram(QSYSObjectPathName.toPath("QSYS", "QGYGTLE", "PGM"), parmList);
} catch (PropertyVetoException pve) { Trace.log(Trace.ERROR, pve); }

// Refer to documentation for the QGYGTLE generic list API for a complete description of parameters
Expand Down Expand Up @@ -451,7 +451,7 @@ public int getNumberOfEntries() throws PersistenceException {
ProgramParameter[] parmList = new ProgramParameter[7];
int bufferLength = 512;
try {
pgm.setProgram(QSYSObjectPathName.toPath("QGY", "QSYOLVLE", "PGM"), parmList);
pgm.setProgram(QSYSObjectPathName.toPath("QSYS", "QSYOLVLE", "PGM"), parmList);
} catch (PropertyVetoException pve) { Trace.log(Trace.ERROR, pve); }

// Refer to documentation for the QSYOLVLE Security API for a complete description of parameters
Expand Down

0 comments on commit b1a11ee

Please sign in to comment.