While in some ways an emulated tape acts like a pre-mounted volume, it appears in some ways it does not. I replicated your exact situation. I defined an awstape stanza with a file that currently does not exist. As in your situation, the display u command showed the tape drive online and ready. I then submitted an iebcopy job that unloaded a partitioned dataset and wrote it to dataset sequence number 1 on the emulated tape drive (580). I have included that iebcopy job below for reference.
MVS prompted me to mount the tape to the device as follows:
M 0580,PRIVAT,SL,TAPECP1,TAPECP2,TAPETST5
This surprised me, as I like you thought just defining the awstape was the equivalent of having an "already mounted" volume. But at least for me, it did not work that way.
I thought maybe that just issuing a 'ready 580' command from the Linux Terminal would make the device ready, since I had already indicated the awstape file in the devmap. However, when I did this my IEBCOPY job completed with errors.
So I unmounted the tape using awsmount -u, resubmitted the IEBCOPY job, but this time when prompted with the mount message from MVS I entered:
awsmount -m /home/ibmsys1/tapetst5 - this was the same file I had specified in my devmap.
This worked for me. I got prompted from MVS to enter the label information for the tape volume as follows:
*01 IEC704A REPLY 'VOLSER,OWNER INFORMATION' OR 'M'
I entered - R 01,'111111,BEBE' - which set the volume serial number for the tape to 111111
The job completed as follows:
IEE600I REPLY TO 01 IS;'111111,BEBE'
IEC705I TAPE ON 0580,111111,SL,COMP,TAPECP1,TAPECP2,TAPETST5,MEDIA0
IEC205I SYSUT2,TAPECP1,TAPECP2,FILESEQ=1, COMPLETE VOLUME LIST, 199
DSN=TAPETST5,VOLS=111111,TOTALBLOCKS=7
I will note that if I did a display on unit 580 at this point, after the IEBCOPY job completed, I got not ready - when the job completes, it apparently automatically unmounts. By issuing a 'ready 580' command, the device became online and ready again, and I could resubmit the job. I would again be prompted for the mount, could perform the awsmount, and all would work. Also at this point, I was able to change the IEBCOPY job to put the VOL=SER=111111 parameter on the DD statement for my tape drive, I could change the sequence number to 2 in the LABEL parameter, and write a second file on to the same tape volume..
I don't know why I am prompted for a mount from MVS, but I am. I also tried doing the awsmount before the IEBCOPY, but that did not work either. I still got the mount message from MVS when I submitted the IEBCOPY, and a simple ready command did not work; I had to do another awsmount in response to the Mount prompt to get the job to work. I think the key is that the device is ready at the point you define it with the awstape stanza, but you must issue an awsmount command when the job you execute is ready to write to tape.
I hope this helps.
Bebe
Sample IEBCOPY job
//TAPECP1 JOB (ACCT),CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
//TAPECP2 EXEC PGM=IEBCOPY,REGION=0M,TIME=1440
//SYSUT1 DD DISP=SHR,DSN=BEEB.SYSPLEX.TCPPARMS,UNIT=3390,
// VOL=SER=USER01
//SYSUT2 DD DSNAME=TAPETST5,UNIT=580,
// DISP=(NEW,KEEP),LABEL=(1,SL)
//SYSUT3 DD DSNAME=TEMP1,UNIT=3390,VOL=SER=USER01,
// DISP=(NEW,DELETE),SPACE=(80,(60,45))
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//*
.
RDTBebe