LODRUN ‘Library QTEMP not found’

  • Home
  • /
  • Blog
  • /
  • LODRUN ‘Library QTEMP not found’

July 26, 2023

Have you ever seen a ‘Library QTEMP not found’ error?

LODRUN *OPTICAL
 Library QTEMP not found

Weird Huh?

After some head scratching we figured it out – this IBM i Power System is using an Independent Auxiliary Storage Pool (aka iASP).

The previous administrators had installed and configured the iASP, but then decided to change the core IBM i System commands to point at the iASP by default, rather than standard storage areas, known as System Base.

This is never a good idea – for obvious reasons:

  • IBM command defaults will be reset during the next OS upgrade, or PTF application
  • Existing application code expects IBM i Defaults as standard
  • Command defaults will be different between different versions on the same machine (unless you change QSYS, QSYSV7Rx and more)
  • It’s just poor practice…

Anyhoo, moans aside, I figured this out when I realised that the LODRUN command was issuing a Restore Object command (RSTOBJ) and that command was trying to restore to the QTEMP library. QTEMP exists in the standard IBM storage base area but… but… the RSTOBJ command had been changed using the CHGCMDDFT command to default to the iASP.

So the standard IBM code underneath the LODRUN process was bombing when trying to restore to QTEMP, because QTEMP does not exist in the iASP, because it’s in system base. This was not at all obvious from the joblog.

Solution – ensure the RSTOBJ and RSTLIB commands are using correct IBM i Default Values

library qtemp not found because of iASP

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits.

Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day.

Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

    Subscribe NOW
    7-day free trial

    Take This Course with ALL ACCESS

    Unlock your Learning Potential with instant access to every course and all new courses as they are released.
     [ For Serious Software Developers only ]

    Online Learning for IBM i Software Technology Professionals

    “The more that you read, the more things you will know. The more that you learn, the more places you’ll go.” – Dr. Seuss

    >