AS/400 error message - Cannot allocate device

9,190

Solution 1

You may find the device is either in use or varied off. I am presuming you have the right device name.

To check the status of the device:

WRKCFGSTS *DEV TAP01
  • If the status says VARIED ON then the device is ready to use.
  • If the status says ACTIVE the device is in use; the job using the device will appear to the right on the display.
  • If the status says VARIED OFF then the device is unavailable and must be varied on. Option 1 on this screen will allow you to vary the device on if you have authority.

On the off-chance you have the wrong device name:

WRKCFGSTS *DEV TAP*

If your tape device has been named staring with "TAP" then you should see it in the resulting list. Use the na ein the list but consider checking with someone that knows if that is the appropriate device name.

Good luck.

Solution 2

You can check what job is locking the device with the following command:

WRKOBJLCK TAP01 *DEVD
Share:
9,190

Related videos on Youtube

Bill the Lizard
Author by

Bill the Lizard

Python, Java, Android, etc. developer living in Charlotte, NC. I am the author of @BountyBot, a Twitter bot that posts new and interesting bounty questions from Stack Overflow. You can view the source on GitHub. My Android apps on Google Play: Three of a Kind - A fun, fast-paced strategy card game. Match any three symbols to win. Sketchboard - Sketch drawings on your mobile device. Serpent - An Android version of the classic mobile game Snake. Math Blitz! - A fast-paced flashcard game to help students practice their arithmetic skills. Linear Interpolator - Fill in the gaps in your data using linear interpolation. Kitchen Calculator - A simple unit converter for common units used in cooking and homebrewing. If you use any of these apps, please leave me a rating and any feedback for improvement.

Updated on September 17, 2022

Comments

  • Bill the Lizard
    Bill the Lizard over 1 year

    When I display tape or initialize a tape using DSPTAP or INZTAP commands and enter the parameters I get the error message "Cannot allocate device tap01..." Please help me as I am new to AS/400.

  • michabbb
    michabbb over 13 years
    auctionitis... thk u so much... whn i checked the status... it shows "available to use" nw i've given inztap command to initialize the tape...it wud take >2 hrs for this i guess... lemme c if it works... :)...