You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, if the command you execute has a return code of more than 0, no spool is written and therefore we can't capture it with SQL like we can with the system command:
call qsys2.qcmdexc('CRTBNDRPG PGM(*CURLIB/OCAN) SRCFILE(LIAMA/QRPGLESRC) OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT)');
selectchar(job_number) ||'/'|| job_user ||'/'|| job_name, spooled_file_name, spooled_file_number
from table(qsys2.spooled_file_info()) x order by creation_timestamp desclimit20;
Maybe we still leave the compiles and library list stuff to QSH?
system
SQL replacement (https://gist.github.com/worksofliam/b51ec5cd76e76cd9d23a3ddc2ff2ff32)qsys2.qcmdexc
doesn't write a spool file if the command returns exit code > 0 (so we can't see the spool file from a bad compile)system
around for compiles and just use SQL for data (which makes sense)Remove usage of QSH in APIRemove usage ofliblist
internallyReplacesystem
with new replacementfor bit data
The text was updated successfully, but these errors were encountered: