Please let me know how to mount a tape and how to verify whether it is
mounted or not.
Jerry, in all the replies, some of them sort of testy, no one has actually responded to you, so let me try. You did ask a very broad question with no details so I can't be very specific. This does sound like a homework question or an interview question. I assume your environment is the IBM z/OS operating system (or one of its predecessors). In a batch job, you include a DD statement calling for a tape. The details depend on your installation but as a general example
//ddname   DD   DSN=MY.TAPE.DATASET,UNIT=TAPE,DISP=(,CATLG)
will mount a scratch (output) tape.

When your program issues an OPEN, OPEN will verify that the tape is mounted and ready. If you are writing in assembler, you can use dynamic allocation (SVC 99) to dynamically mount and input or output tape. DYNALLOC will verify that the tape is mounted before it returns to you.

--
Bruce A. Black
Senior Software Developer for FDR
Innovation Data Processing 973-890-7300
personal: [EMAIL PROTECTED]
sales info: [EMAIL PROTECTED]
tech support: [EMAIL PROTECTED]
web: www.innovationdp.fdr.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to