Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PROCEDURE or PACKAGE statement expected

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: PROCEDURE or PACKAGE statement expected
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    Post subject: Re: PROCEDURE or PACKAGE statement expected
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    Post subject: Re: PROCEDURE or PACKAGE statement expected
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    Post subject: Re: PROCEDURE or PACKAGE statement expected
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us