Mainframe Template Example - Documentation for Bmc Discovery 11.3
tpl 1.5 module Mainframe.Examples;

metadata
  origin := "ONLINE_DOCS";
end metadata;

from SupportingFiles.Mainframe.Support import MainframeModel 1.0;


pattern Mainframe_TapeDrive 1.0



  overview
    tags IBM, TapeDrive;
  end overview;

  triggers
    on dtd := DiscoveredTapeDrive;
  end triggers;

  body
    MainframeModel.createTapeStorage(dtd);
  end body;

end pattern;


pattern Mainframe_DASD 1.0



  overview
    tags IBM, DASD;
  end overview;
  
  
  triggers
    on dasd := DiscoveredDiskDrive where volume_id matches regex '^AL';
  end triggers;
  
  body
    MainframeModel.createDiskStorage(dasd);
  end body;

end pattern;


pattern Mainframe_Transaction 1.0



  overview
    tags IBM, Transaction;
  end overview;
  
  triggers
    on trn := DiscoveredTransaction where name matches regex '^CICSTRAN-C';
  end triggers;
  
  body
    MainframeModel.createTransaction(trn);
  end body;

end pattern;


pattern Mainframe_MQ 1.0



  overview
    tags IBM, MQ;
  end overview;
  
  triggers
    on dmq := DiscoveredMQDetail where name matches regex '^MQCHNL-';
  end triggers;
  
  body
    MainframeModel.createMQDetail(dmq);
  end body;

end pattern;
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest