next up previous contents index
Next: Using a Zebra Up: A tutorial introduction Previous: Using the TMS

Using tape pools within the TMS

The following is the recommended method of using tape pools within the TMS.

Thus, a FORTRAN program might look like the following.

Example of using TMS tape pools

*
*     Allocate a new 3480 from the pool XX_FREE
*
      CALL FMALLO('3480','38K',' ','SMCF_1','XX_FREE',
     +LBANK,' ',VSN,VID,IRC)
*
*     Now write the data ...
*
...
...      
*
*     OK - write-lock the tape and move to XX_DSTS
*     set TMS tag to generic name
*
10    CONTINUE
      CALL FMPOOL(GENAM,LBANK,KEYS,'XX_DSTS','LS',IRC)
      RETURN
*
*     Error - free tape
*     delete TMS tag 
*
20    CONTINUE
      CALL FMPOOL(GENAM,LBANK,KEYS,'XX_FREE','D',IRC)
      RETURN
      END


Janne Saarela
Mon May 15 09:59:59 METDST 1995