Skip to content

Commit 2405349

Browse files
committed
Custom changes to process the way I like:
1 - i5_spool_list - do not require an outq library use *LIBL if one is not provided 2 - listRead - remove error logging when no more entries found, just clogs the log.
1 parent 28f30d1 commit 2405349

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ToolkitApi/CW/cw.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,9 +2266,11 @@ function i5_spool_list($description = array(), $connection = null)
22662266

22672267
// if outq is not *ALL, it should have a library name
22682268
if (($outq != '*ALL') && empty($outqLibName)) {
2269+
// Try *LIBL
2270+
$outqLibName = '*LIBL';
22692271
// if no libname, result set will be empty, so might as well alert the user.
2270-
i5ErrorActivity(I5_ERR_PHP_ELEMENT_MISSING, I5_CAT_PHP, 'Missing outq library', 'You specified an outq but did not qualify it with a library name.');
2271-
return false;
2272+
//i5ErrorActivity(I5_ERR_PHP_ELEMENT_MISSING, I5_CAT_PHP, 'Missing outq library', 'You specified an outq but did not qualify it with a library name.');
2273+
// return false;
22722274
}
22732275
}
22742276

@@ -2755,7 +2757,8 @@ function listRead(&$list)
27552757
// we simply have no more records to receive.
27562758
$errorCode = $connection->getErrorCode();
27572759
if ($errorCode == '' || $errorCode == 'GUI0006' || $errorCode == 'GUI0001') {
2758-
i5ErrorActivity(I5_ERR_BEOF, I5_CAT_PHP, 'No more entries.', 'No more entries.');
2760+
// EOF is not an error, just clogs the log, completely normal, happens to everyone...
2761+
//i5ErrorActivity(I5_ERR_BEOF, I5_CAT_PHP, 'No more entries.', 'No more entries.');
27592762
} else {
27602763
// a real error.
27612764
i5CpfError($errorCode, $connection->getErrorMsg());

0 commit comments

Comments
 (0)