|
|
|
|
Re: Encountered the symbol "end-of-file" when expecting one of the following: ; [message #515327 is a reply to message #515322] |
Sun, 10 July 2011 09:35   |
 |
Littlefoot
Messages: 21825 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
There's some missing information; what is "Orion" (in 'Orion.Atatchment')? What is 'NatureOfRelation'? As you put it, these are ordinary strings.
Your PL/SQL block misses the END.
This, I hope, would compile:BEGIN
FOR REC IN (SELECT * FROM HARRELATYPE) LOOP
SP_ADD_CODE('Orion.Attachment',
'NatureOfRelation',
RTRIM(REC.RELATYPECODE),
RTRIM(REC.RELATYPENAME)
);
END LOOP;
COMMIT;
END;
SP_ADD_CODE seems to be a procedure; is it valid? If not, what happens when you try to compile it?
[Updated on: Sun, 10 July 2011 09:36] Report message to a moderator
|
|
|
|
|
|
|
|