Skip to content

System Views

The IBM i FileSystem extension provides powerful system views that allow you to monitor and manage various aspects of your IBM i system directly from VS Code. These views provide comprehensive information and interactive actions for jobs, spooled files, and objects.


๐Ÿ“Š Display Object Information (DSPOBJ)

A comprehensive view that displays detailed information about any IBM i object, similar to the DSPOBJD command but with an enhanced, multi-tab interface.

IBM i SQL Services Used

TypeSchemaNamePurpose
Table FunctionQSYS2OBJECT_STATISTICSRetrieve comprehensive object statistics and metadata
ViewQSYS2OBJECT_LOCK_INFORetrieve all locks on the object
ViewQSYS2OBJECT_PRIVILEGESRetrieve object authorizations and permissions

Features

  • ๐Ÿ“Š Information Tab: Complete object metadata including owner, creation date, size, and attributes
  • ๐Ÿ”’ Locks Tab: View all active locks with state, scope, and job information
  • ๐Ÿ‘ฅ Authorizations Tab: View user and group authorities with specific permissions
  • ๐Ÿ“… Usage Statistics: Last used timestamp, days used count, save/restore information
  • ๐ŸŽจ Multi-tab Interface: Organized display with badges showing lock and authorization counts

How to Access

Command Palette

Use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for โ€œIBM i FS: Display Object Informationโ€:

  1. Enter the library name
  2. Enter the object name
  3. Select the object type
  4. View the information in a multi-tab interface

Object Browser

Right-click on any object in the Object Browser and select โ€œAdditional Informationโ€ from the context menu, or click the info icon (โ„น๏ธ) in the editor toolbar when viewing an object.

Information Displayed

Information Tab:

  • SQL Name and SQL Type
  • Owner and Definer
  • Object Size
  • ASP Group (for libraries)
  • Text Description
  • Creation, Change, and Last Used timestamps
  • Days Used Count
  • Save/Restore information (timestamp, device, volume, sequence)
  • Journal information
  • Authorization List

Locks Tab:

  • Lock State (shared/exclusive)
  • Lock Status
  • Lock Scope
  • Job Name holding the lock

Authorizations Tab:

  • Authorization Name (user/group)
  • Object Authority (*ALL, *CHANGE, *USE, *EXCLUDE)
  • Object Operational, Management, Existence, Alter, Reference permissions
  • Data Read, Add, Update, Delete, Execute permissions

๐Ÿ‘ฅ Work with Active Jobs (WRKACTJOB)

Display and manage all active jobs in the system with real-time information and interactive actions.

IBM i SQL Services Used

TypeSchemaNamePurpose
Table FunctionQSYS2ACTIVE_JOB_INFORetrieve all active jobs with detailed information

Features

  • ๐Ÿ“Š Real-time Job List: View all active jobs with current status and statistics
  • ๐Ÿ” Search Functionality: Filter jobs by name, user, type, status, subsystem, or function
  • ๐Ÿ”„ Auto-refresh: Automatic updates every 30 seconds (for non-OUTQ jobs)
  • ๐Ÿ“‹ Comprehensive Information: Subsystem, job name, user, type, function, status, CPU, I/O
  • โšก Interactive Actions: Hold, release, end, or debug jobs directly from the view
  • ๐ŸŽจ Dynamic UI: Action menu adapts based on job status (subsystem jobs excluded)

Available Actions

ActionDescriptionAvailability
DetailsOpen WRKJOB view for detailed job informationAll jobs
HoldHold the job (HLDJOB)Active jobs (not held)
ReleaseRelease the job (RLSJOB)Held jobs
EndEnd the job (ENDJOB)Active jobs
DebugStart service entry point debuggingActive jobs

How to Access

Use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for โ€œIBM i: Work with Active Jobsโ€ or use the command vscode-ibmi-fs.wrkactjob.

Information Displayed

  • Subsystem: Subsystem name (blank for non-subsystem jobs)
  • Job: Full job name (number/user/name)
  • User: Authorization name
  • Type: Job type (BATCH, INTER, SBS, etc.)
  • Function: Current function being performed
  • Status: Job status (ACTIVE, HLD, etc.)
  • Temp. Stg.: Temporary storage used
  • Elapsed CPU %: CPU percentage since last reset
  • Elapsed I/O: Disk I/O count since last reset
  • CPU Time: Total CPU time used
  • Total I/O: Total disk I/O count

๐Ÿ’ผ Work with Job (WRKJOB)

Display comprehensive information about a specific job with multiple tabs showing job details, statistics, and logs.

IBM i SQL Services Used

TypeSchemaNamePurpose
Table FunctionQSYS2JOB_INFORetrieve comprehensive job information
Table FunctionQSYS2ACTIVE_JOB_INFORetrieve active job status and function
Table FunctionQSYS2STACK_INFORetrieve call stack entries
Table FunctionQSYS2JOB_LOCK_INFORetrieve job locks
Table FunctionQSYS2OPEN_FILESRetrieve open files
Table FunctionQSYS2SPOOLED_FILE_INFORetrieve spooled files
Table FunctionQSYS2JOBLOG_INFORetrieve job log messages

Features

  • ๐Ÿ“Š Job Information Tab: Complete job attributes and configuration
  • ๐Ÿ“ˆ Job Statistics Tab: Library list, call stack, locks, open files, and spooled files
  • ๐Ÿ“ Job Log Tab: All job log messages with severity and timestamps
  • ๐Ÿ”„ Auto-refresh: Automatic updates every 30 seconds (for non-OUTQ jobs)
  • โšก Interactive Actions: Hold, release, end jobs; open, download, or delete spools
  • ๐ŸŽจ Dynamic UI: Action buttons adapt based on job status
  • ๐Ÿ’พ State Preservation: Active tab is preserved across refreshes

Available Actions

Job Actions:

ActionDescriptionAvailability
Hold JobHold the job (HLDJOB)Active jobs (not held)
Release JobRelease the job (RLSJOB)Held jobs
End JobEnd the job (ENDJOB)Active jobs
Debug JobStart service entry point debuggingActive jobs

Spool Actions:

ActionDescription
OpenOpen spooled file in editor
DownloadDownload spooled file as PDF
DeleteDelete spooled file

How to Access

  • From WRKACTJOB or WRKUSRJOB: Click โ€œDetailsโ€ action on any job
  • From command palette: Search for โ€œIBM i: Work with Jobโ€ and enter job name
  • Direct command: vscode-ibmi-fs.wrkjob with job name parameter

Information Displayed

Job Info Tab:

  • Job Status and Active Status
  • Function currently being performed
  • Job Type and Subsystem
  • Job Description
  • Submitter Job Name
  • Timestamps (entered, scheduled, active, end)
  • Job Queue and priorities
  • Threading, storage, and wait settings
  • CCSID and format settings
  • Message logging configuration
  • CPU and I/O statistics

Job Statistics Tab:

  • Library List: All libraries with type (SYS/CUR/USR), ASP, and description
  • Call Stack: Program call stack with position, program, statement, and procedure
  • Locks: All object locks with state, status, scope, and member lock type
  • Open Files: All open files with member, type, option, and I/O counts
  • Spooled Files: All spools with name, status, pages, and interactive actions

Job Log Tab:

  • Message ID and severity
  • Message text (first and second level)
  • From program and message file
  • Timestamp

๐Ÿ‘ค Work with User Jobs (WRKUSRJOB)

Display and manage all jobs (active and inactive) in the system with comprehensive filtering and actions.

IBM i SQL Services Used

TypeSchemaNamePurpose
Table FunctionQSYS2JOB_INFORetrieve all jobs (active and inactive)
Table FunctionQSYS2ACTIVE_JOB_INFORetrieve active job status

Features

  • ๐Ÿ“Š Complete Job List: View all jobs including completed and output queue jobs
  • ๐Ÿ” Search Functionality: Filter jobs by name, status, type, completion status, or function
  • ๐Ÿ“‹ Comprehensive Information: Job status, active status, type, end severity, completion status
  • โšก Interactive Actions: View details, hold, release, or end jobs
  • ๐ŸŽจ Dynamic UI: Action menu adapts based on job status (active/inactive)
  • ๐Ÿ”„ Manual Refresh: Refresh button to update job list

Available Actions

ActionDescriptionAvailability
DetailsOpen WRKJOB view for detailed job informationAll jobs
HoldHold the job (HLDJOB)Active jobs (not held)
ReleaseRelease the job (RLSJOB)Active held jobs
EndEnd the job (ENDJOB)Active jobs

How to Access

Use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for โ€œIBM i: Work with User Jobsโ€ or use the command vscode-ibmi-fs.wrkusrjob.

Information Displayed

  • Job: Full job name (number/user/name)
  • Job Status: Overall job status (ACTIVE, OUTQ, etc.)
  • Active Status: Active job status (HLD, RUN, etc.) - only for active jobs
  • Type: Job type (BATCH, INTER, etc.)
  • End Severity: Job end severity level
  • Completion: Completion status (NORMAL, ABNORMAL, etc.)
  • Function: Current function being performed (for active jobs)

๐Ÿ–จ๏ธ Work with Spooled Files (WRKSPLF)

Display and manage all spooled files in the system with pagination, search, and interactive actions.

IBM i SQL Services Used

TypeSchemaNamePurpose
Table FunctionQSYS2SPOOLED_FILE_INFORetrieve all spooled files with details
FunctionSYSTOOLSGENERATE_PDFGenerate PDF from spooled file

Features

  • ๐Ÿ“Š Complete Spool List: View all spooled files in the system
  • ๐Ÿ” Search Functionality: Filter spools by name, user, data, status, or job
  • ๐Ÿ“„ Pagination: Navigate through large spool lists with configurable items per page
  • ๐Ÿ“‹ Comprehensive Information: Name, user data, status, job, pages, size, timestamp
  • โšก Interactive Actions: Open, download as PDF, or delete spooled files
  • ๐Ÿ”„ Manual Refresh: Refresh button to update spool list

Available Actions

ActionDescription
OpenOpen spooled file in VS Code editor
DownloadDownload spooled file as PDF to local system
DeleteDelete spooled file from the system

How to Access

Use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for โ€œIBM i: Work with Spooled Filesโ€ or use the command vscode-ibmi-fs.wrksplf.

Information Displayed

  • Name: Spooled file name
  • Data: User data associated with the spool
  • Status: Spool status (READY, HELD, PRINTING, etc.)
  • User: User who created the spool
  • Job: Job name that created the spool (number/user/name)
  • Number: Spooled file number
  • Timestamp: Creation date and time
  • Pages: Total number of pages
  • Size (KB): Spool file size in kilobytes

Pagination Controls

  • Items per page: Default 50, configurable
  • Page navigation: First, previous, next, last page buttons
  • Total count: Display total number of spools matching search criteria