DBA.Cobol.bj

Action

Perform domain-based analysis of Cobol programs. Domain-based analysis "slices out" a specialized program based on the values of one or more variables.

An input file in CSV format identifies the slice parameters. Each line contains the following information:

ProgName,SliceName,DataItem,FileName,Row,Col,Comparison,Value,LowerValue,UpperValue

where:

  • ProgName is the name of the program from which the slice will be extracted.
  • SliceName is the name of the slice.
  • DataItem is the name of the specialization variable.
  • FileName is the name of the source file containing the specialization variable.
  • Row is the row number of the specialization variable in the source file.
  • Col is the column number of the specialization variable in the source file.
  • Comparison is the comparison type: "equals" sets the specialization variable to the values specified in Value; "not equals" sets the specialization variable to every value but the values specified in Value.
  • Value is the value to set the specialization variable to.
  • If Value is omitted, LowerValue is the lower value of the range of values to set the specialization variable to.
  • If Value is omitted, UpperValue is the upper value of the range of values to set the specialization variable to.

Multiple locations can be specified for a slice. Multiple conditions can be set for a location. All content is case-sensitive.

Input File Sample

DAYOFWEEK,Domain1,YEAR,DayOfWeek.cbl,12,12,equals,2000,, 
DAYOFWEEK,Domain1,YEAR,DayOfWeek.cbl,12,12,equals,,2002,2005 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,13,12,equals,4,, 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,13,12,equals,5,, 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,65,19,equals,5,, 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,65,19,equals,6,, 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,95,15,equals,7,, 
DAYOFWEEK,Domain1,MONTH,DayOfWeek.cbl,95,15,equals,,1,3 
DAYOFWEEK,Domain2,YEAR,DayOfWeek.cbl,81,15,equals,,2001,2010 
GSS,Domain3,GSS1003-CMD-CODE-I,GSS.cbl,186,16,equals,"ENTER",,

Syntax

DBA.Cobol LogFile Workspace List [Options] [Export] [Notify] 
Required Parameters Description

LogFile

Output log file generated when the batch script is executed.

Workspace

Workspace file (.rwp).

List CSV file with slice parameters.
Optional Parameters Description

Options

Options script file. Default values for options usually are acceptable. Contact support services for special needs.

Export Destination folder for slices. Results normally are viewed in EA Component Maker.

Notify

Notification file.