IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PROCEDURE or PACKAGE statement expected


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rcpriya

New User


Joined: 05 Sep 2006
Posts: 3

PostPosted: Tue Sep 05, 2006 11:01 am
Reply with quote

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
View user's profile Send private message
Trajko

New User


Joined: 05 Sep 2006
Posts: 3
Location: Switzerland

PostPosted: Tue Sep 05, 2006 2:33 pm
Reply with quote

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. icon_smile.gif

Greets
Trajko
Back to top
View user's profile Send private message
rcpriya

New User


Joined: 05 Sep 2006
Posts: 3

PostPosted: Tue Sep 05, 2006 2:45 pm
Reply with quote

Hi

I still get the same error even after removing BEGIN and END.

:-(

Thanks
Priya
Back to top
View user's profile Send private message
Trajko

New User


Joined: 05 Sep 2006
Posts: 3
Location: Switzerland

PostPosted: Tue Sep 05, 2006 4:32 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
Search our Forums:

Back to Top