View previous topic :: View next topic
|
Author |
Message |
rcpriya
New User
Joined: 05 Sep 2006 Posts: 3
|
|
|
|
Hi All,
I am new to PL/I and while trying to compile a program, i get the error"PROCEDURE or PACKAGE statement expected" for the following code.
Please advise what needs to be done.
ON ENDFILE(DDIN) BEGIN;
EOFDDIN = '1'B;
END;
Thanks. |
|
Back to top |
|
|
Trajko
New User
Joined: 05 Sep 2006 Posts: 3 Location: Switzerland
|
|
|
|
Try it like that:
ON ENDFILE(DDIN) EOFDDIN = '1'B;
And if the compiler say again, it isn't right, then is the problem elsewhere, not in this section, maybee again bevor this statements.
sometimes the compiler isn't exact about the wrong statement.
Greets
Trajko |
|
Back to top |
|
|
rcpriya
New User
Joined: 05 Sep 2006 Posts: 3
|
|
|
|
Hi
I still get the same error even after removing BEGIN and END.
:-(
Thanks
Priya |
|
Back to top |
|
|
Trajko
New User
Joined: 05 Sep 2006 Posts: 3 Location: Switzerland
|
|
|
|
hmmm i cant say exactly whats wrong, can you post de hole message from the compiler?
so if the compiler told you further, thats there is a problem, it isnt a fault there with your endfile statements, it seems like something else is wrong.
Are you programming a modul or a programm?
If it tolds PROCEDURE or PACKAGE statement expected, then maybe your variables are not declared. Have you declared ddin as a file and eofddin as a bit var? |
|
Back to top |
|
|
|