ascot diagnostics

A6851

Error: Cannot find label ‘{label}’ in {routine}

Do Reprot, $$Reprot(), Goto Reprot or Set $ZTRAP = "Reprot" names a label that the routine or method body does not declare. Reprot^Other names a label that the routine Other does not declare. IRIS refuses to compile a reference to a label missing from the routine or method itself (<NOLINE>). A call to a label that another routine lacks compiles and raises <NOLINE> when it runs. Spell the label as it is declared.

IRIS rejects the example.

ROUTINE Demo.MissingLabel
Main
    Do Reprot //! A6851
    Quit
Report
    Write "report", !
    Quit

All diagnostics