IBM Support

QShell Cannot Use the QTEMP Library

Troubleshooting


Problem

This document explains why QShell cannot use the QTEMP library.

Resolving The Problem

There are various reasons why the QShell command shell cannot use the QTEMP library. These reasons are:
  • The QTEMP library is scoped to a job. It is often used to create temporary objects without regard for deleting them because they are automatically deleted when the job ends. The QShell command shell is unable to make effective use of this library.
  • If the QShell utility's output is redirected to any library (for example, QSYS.LIB file system), it would only work correctly if the file in that library already existed. Redirection cannot create files, it can only create new members.
  • There are QShell commands that could be used to create a file in the QTEMP library. When those commands are run, they run in a spawned Qshell job. The QTEMP library for the spawned Qshell job where the file is created in is not the same QTEMP library as the parent QShell job. To work with physical files from a QShell command, the files must be in a library other than QTEMP.

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CHQAA2","label":"Qshell"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

339314931

Document Information

More support for:
IBM i

Component:
Qshell

Software version:
All Versions

Operating system(s):
IBM i

Document number:
639109

Modified date:
06 December 2024

UID

nas8N1016080

Manage My Notification Subscriptions