Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Jan 12 '11 at 18:06

This question came from our site for professional and enthusiast programmers.

Recommended reading: – Matt Ball Jan 12 '11 at 3:38
Appears to be a duplicate of… – Mike Wills Jan 12 '11 at 14:39

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:

  • 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:


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.

share|improve this answer
auctionitis... thk u so much... whn i checked the status... it shows "available to use" nw i've given inztap command to initialize the wud take >2 hrs for this i guess... lemme c if it works... :)... – Sarah Jan 12 '11 at 7:12

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.