Menu

News · Developer tools

Code for IBM i Adds a CL Job Log Shortcut in VS Code

Version 3.0.17 adds a CL Job entry and restores the SQL job-log action. Version 3.0.18 improves how the extension finds the remote CL job.

IBM iCode for IBM iVS CodeJob logsOpen source

When a command fails on IBM i, the job log can show the messages that led up to the failure. Code for IBM i 3.0.17, released December 1, fixed the Display SQL Job Log action and added a CL Job entry to the VS Code Environment view. The December 2 follow-up, 3.0.18, adds a fallback for finding the remote CL job ID.

The direct lookup requires Mapepire Server 2.6.0, which the extension maintainers said was still pending in the yum repository when 3.0.18 shipped. The extension can now use RUNSQL to find the job ID on older Mapepire servers.

Open the job log in VS Code

Start with the job that ran the failed operation. If you ran a CL command through a SQL job, open that SQL job’s log and check the messages immediately before the failure.

References

Documentation and supporting sources for this update.

Comments

Share your thoughts, questions, or real-world IBM i experiences related to this article.