De-allocate the file



On z/OS, this is less of an issue in background (batch) as files are automatically de-allocated at job/step end.

In a fore-ground TSO Session, a file or data set will remain allocated until either the session ends (LOGOFF) or a TSO FREE command is issued.

In z/VM, as with allocation, the need to de-allocate may be unnecessary.

z/OS

 

z/VM

 

De-allocation by file or ddname)

"FREE F(ddname1,ddname2....)" See example here

The ddname should match the file name on the assciated TSO ALLOCATE (ALLOC) command.

De-allocation by data set name

"FREE F(dsname1,dsname2....)" See example here

Note that the dsname does not have to be catalogued, but must be in the TSO Allocation List.

 

DETACH Command - z/VM CP Commands and Utilities Reference

If the ATTACH command was issued to gain access to a mini-disk then the DETACH command can be used to remove the attachment, which will otherwise stay in force until LOGOFF.

RELEASE Command - z/VM CMS Commands and Utilities Reference

If the ACCESS command was issued to gain access rights to the file, then the RELEASE command can be used to remove those rights. The command also has a DETACH option.

VMLINK Command - z/VM CMS Commands and Utilities Reference

This facilitates linking devices, detaching at the LINK level, and releasing access rights.

Copyright © Legac-e Education 2015-