SoftwareMining - Business Rule Extraction and Documentation 

Business Rule  
COMP_CR.CBL
COBOL Documentation
COMP_CR.html
Persistent Records:
Signature (From Linkage Section) 
Working Storage Section

 

Analyst's Description/Comments
Data Filters Applied to this rule:
  • CompanyInfo
  • CompanyPf
Statement Category Filters: The following statement types have been filtererd out
  • Screen Handling Statements
  • Persisntence (Database IO) Statements

Business Rule Code
/**
 * getNextCustNo_M30
 */
public void getNextCustNo_M30 ()
{

  // START statement 
  try {
  } catch (InvalidKeyException e){
    companyPf.setCoNextId(0);

    // WRITE statement 
  }

  // READ statement 
  companyPf.setCoNextId(1 + companyPf.getCoNextId().getAsInt());

  // REWRITE statement 
  companyPf.setCoRecType(1);
  companyPf.setCoId(companyPf.getCoNextId());
  companyPf.setCoNextId(0);

  // WRITE statement 
  try {
  }}

/**
 * writeCompDetail_M40
 */
public void writeCompDetail_M40 ()
{
  companyInfo.setCompanyId(idata.getWsCompanyNameValue());

  // REWRITE statement 
  try {
  }}

/**
 * getCompDetail_M60
 */
public void getCompDetail_M60 ()
{
  display(companyPf.getCoId(), 8, 68);
}