Skip to content

Commit

Permalink
Fix issue #103
Browse files Browse the repository at this point in the history
  • Loading branch information
jeber-ibm committed Jul 31, 2023
1 parent b24fa05 commit 7a992b7
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/main/java/com/ibm/as400/access/ProgramCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,9 @@ public boolean run() throws AS400SecurityException, ErrorCompletingRequestExcept
system_.aspName= iasp;
}
}catch (Exception e){
e.printStackTrace();
// Log the error, but do not print the stack trace
Trace.log(Trace.ERROR, e);

}
}
}
Expand Down Expand Up @@ -864,14 +866,20 @@ public void setParameterList(ProgramParameter[] parameterList) throws PropertyVe
//boolean isV7R2 = false;//@RCD
// boolean isV7R1 = false;//@N6A//@RCD
boolean isSupport255 = false;//@RCA
try {
//isV7R2 = system_.getVRM() == 0x00070200; //@RCD
//isV7R1 = system_.getVRM() == 0x00070100;//@RCD //@N6A V7R1 with ptf SI55519 supported parameter with max 255
isSupport255 = (system_.getVRM() >= 0x00070100);//@RCA
} catch(Exception e) {
e.printStackTrace();
}

// only check the VRM if system_ exists
if (system_ != null) {
try {
// isV7R2 = system_.getVRM() == 0x00070200; //@RCD
// isV7R1 = system_.getVRM() == 0x00070100;//@RCD //@N6A V7R1 with ptf SI55519
// supported parameter with max 255
isSupport255 = (system_.getVRM() >= 0x00070100);// @RCA
} catch (Exception e) {
// Log the error but do not print the stack trace
Trace.log(Trace.ERROR, e);

}
}

if ((isSupport255)&& parameterList.length > 255)//@N6C //@RCC
{
Trace.log(Trace.ERROR, this, "Parameter list length exceeds limit of 255 parameters:", parameterList.length); //@L8
Expand Down

0 comments on commit 7a992b7

Please sign in to comment.