Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Jan 12 '11 at 18:06

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

1  
Recommended reading: stackoverflow.com/questions/how-to-ask –  Matt Ball Jan 12 '11 at 3:38
    
Appears to be a duplicate of stackoverflow.com/questions/4654066/… –  Mike Wills Jan 12 '11 at 14:39
add comment

2 Answers 2

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.

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 tape...it wud take >2 hrs for this i guess... lemme c if it works... :)... –  Sarah Jan 12 '11 at 7:12
add comment

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

WRKOBJLCK TAP01 *DEVD
share|improve this answer
add comment

Your Answer

 
discard

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