Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us