Description

This page provides the solution to the following warning in the log file which you may get while analyzing power builder source code

syntax error

global type m_ — from m_i-

end type

type m_- from menu within m_tools

------------^

end type

type m_ -1 from menu within m_tools

end type

Screen shot is shown below

Observed in CAST AIP
Release
Yes/No
8.3.x(tick)
8.2.x(tick)
8.1.x(tick)
8.0.x(tick)
7.3.x(tick)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS2(tick)
CSS1(tick)
Step by Step Scenario
  1. Package the source code
  2. Run the analysis
Action Plan
  1. Open CAST-MS, go to the power builder analysis unit and check the highlighted check box which will prevent the syntax error which is coming in the analysis log.

    In the below official documentation, it can be seen that

    Dashes in identifiers allowedThis option is identical to the PowerBuilder option of the same name.

    Activating this option (the option is activated by default) will force the analyzer to take into account code that includes dashes in identifiers. For example:

    int -Myvarint aa = a - -Myvar

    If the option is deactivated, the above code would produce syntax errors and will not be correctly interpreted by the analyzer.


    The syntax error is an expected behavior, unless you check this checkbox.

Impact on Analysis Results and Dashboard

 

Notes/comments

Ticket # 8432

Related Pages