Skip to content

Commit

Permalink
Enable *ALL for getProducts
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsoncj-ibm authored and ThePrez committed Jun 7, 2023
1 parent 3cee88f commit ff3c7ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/com/ibm/as400/access/ProductList.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,15 @@ public Product[] getProducts()
{
text7.toBytes(productIDs_[i], inputList, offset);
offset += 7;
text5.toBytes(productOptions_[i], inputList, offset);

// When using *LIST, "*ALL" isn't allowed, use " ".
if (productOptions_[i].equals(PRODUCT_OPTION_ALL)) {
text5.toBytes(" ", inputList, offset);
}
else {
text5.toBytes(productOptions_[i], inputList, offset);
}

offset += 5;
text6.toBytes(releaseLevels_[i], inputList, offset);
offset += 6;
Expand Down

0 comments on commit ff3c7ad

Please sign in to comment.