Syntax error: `newline or ;' is not expected
-- Cause : One of the (many) weaknesses of the command parser is that
-- it cannot handle single space separator lines.
-- This is not something that's visually obvious!
-- To find and eliminate them you have to cursor to the
-- offending line, and hit delete. If the separator line
-- does not close up you have an invisible space line.
-- The parser should (but does not) check for this condition
-- when you Ok out of the command step edit dialog.
-- List Special command code with space lines
select unique nsct.special_command_type_name,
nc.command_seq,
ncs.step_seq,
ncs.command
from KNTA_COMMANDS nc,
KNTA_ENTITIES ne,
KNTA_COMMAND_STEPS ncs,
KNTA_SPECIAL_COMMAND_TYPES nsct
where nsct.special_command_type_id = nc.parent_id
-- and nsct.special_command_type_id = nscp.special_command_type_id
and nc.command_id = ncs.command_id
and nc.parent_entity_id = ne.entity_id
and ne.entity_name = 'Special Commands'
and nsct.special_command_type_name like 'sc_%'
and ncs.command like ' %' -- Note
order by nsct.special_command_type_name, nc.command_seq, ncs.step_seq
-- NOTE It's possible to have to type multiple deletes to get two lines
-- to close up. If you still get this error you can extend the
-- above:
-- ( and ncs.command like ' %'
-- or ncs.command like ' %'
-- or ncs.command like ' %'
-- ...)
-- List step command code with space lines
select dot.object_type_name,
--nc.command_seq,
nc.command_name,
ncs.step_seq,
ncs.command
from KDLV_OBJECT_TYPES dot,
KNTA_COMMANDS nc,
KNTA_COMMAND_STEPS ncs
where dot.enabled_flag = 'Y'
and dot.object_type_id = nc.parent_id
and nc.command_id = ncs.command_id
-- and ncs.command_name like 'File'
and ncs.command like ' %'
--and dot.object_type_name not like '%foo%'
order by ncs.command
|