{
{   The purpose of this procedure is to store an FMD in the catalog for a cycle
{ of a permanent tape file.  It cannot be used on a mass storage file.  It
{ allows the restore permanent files utility to store the FMD obtained from the
{ backup file into the catalog.
{
{       PFP$REPLACE_REM_MEDIA_FMD (PATH, CYCLE_SELECTOR, PASSWORD_SELECTOR,
{         P_FMD, STATUS)
{
{ PATH: (input)  This parameter specifies the identification of a permanent
{       file.  The path parameter consists of an array of names which identify
{       the path leading through a catalog hierarchy.  The first two names
{       specify the family name and master catalog name portion of the path.
{       By convention, the name of a user's master catalog is the same as the
{       user name.  Subsequent names would specify subcatalogs as applicable.
{       The last name in the path specifies the permanent file for which cycle
{       data is to be defined.  Null names are allowed only for the family name
{       and master catalog name.  If the family name is OSC$NULL_NAME, the
{       family name of the job making the request will be used.  If the master
{       catalog name is OSC$NULL_NAME, the user name of the job making the
{       request will be used.
{
{ CYCLE_SELECTOR: (input)  This parameter selects the permanent file cycle for
{       which the file label is to be saved.
{
{ PASSWORD_SELECTOR: (input)  This parameter specifies a password that must
{       match the password registered with the file.  If
{       pfc$default_password_option is specified, it will be considered a match
{       for the system or family administrator, the file owner, or a non-owner
{       if no password is registered with the file.  If
{       pfc$specific_password_option is selected, the supplied password must
{       match the password registered with the file.
{
{ P_FMD: (input)  This parameter specifies the FMD that is to be stored in the
{       catalog for the file cycle.
{
{ STATUS: (output) This parameter returns the request status.
{
{       CONDITIONS: pfe$bad_cycle_number
{                   pfe$bad_cycle_option
{                   pfe$bad_family_name
{                   pfe$bad_item_name
{                   pfe$bad_last_subcatalog_name
{                   pfe$bad_master_catalog_name
{                   pfe$bad_nth_subcatalog_name
{                   pfe$bad_password
{                   pfe$bad_permanent_file_name
{                   pfe$catalog_full
{                   pfe$duplicate_family_catalog
{                   pfe$duplicate_master_catalog
{                   pfe$incorrect_password
{                   pfe$last_name_not_subcatalog
{                   pfe$name_already_permanent_file
{                   pfe$name_already_subcatalog
{                   pfe$name_not_permanent_file
{                   pfe$nth_name_not_subcatalog
{                   pfe$path_too_short
{                   pfe$pf_system_error
{                   pfe$sharing_not_permitted
{                   pfe$unknown_cycle
{                   pfe$unknown_family
{                   pfe$unknown_item
{                   pfe$unknown_last_subcatalog
{                   pfe$unknown_master_catalog
{                   pfe$unknown_nth_subcatalog
{                   pfe$unknown_permanent_file
{                   pfe$usage_not_permitted
{
