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.
migrated from stackoverflow.com Jan 12 '11 at 18:06
This question came from our site for professional and enthusiast programmers.
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:
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.
You can check what job is locking the device with the following command: