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
 

 

COBOL program compilaton problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
puneetvirmani143

New User


Joined: 24 Jul 2007
Posts: 55
Location: noida

PostPosted: Fri May 25, 2012 12:51 pm    Post subject: COBOL program compilaton problem
Reply with quote

Hi all,

I have to Open , read and Close 150 input files and 1 output file in my COBOL program for some processing.

However my program is running fine with 55 files.. But is failing for all code I pasted for 56th file and furthur files... In fact it is giving errors to EXIT Paragraph names for all files starting from 56 th file till 150th file. It says "PARA56-EXIT was expected in area B , but appears in area A" , which seems strange to me considering that all para names should begin in Area A.

I have also checked all the statements appearing before and after this Paragraph names.. they all are correct and are in right margins..

I also removed code for first 55 files and ran for 56th till 80th file.. it ran fine..

Please help

Regards
Puneet
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1534
Location: Andromeda Galaxy

PostPosted: Fri May 25, 2012 1:09 pm    Post subject: Re: COBOL program compilaton problem
Reply with quote

Hi is your code failing while compile time or run time??

If Compile time what do you mean by the one below??

puneetvirmani143 wrote:
However my program is running fine with 55 files.. But is failing for all code I pasted for 56th file and furthur files

I also removed code for first 55 files and ran for 56th till 80th file.. it ran fine..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 25, 2012 1:20 pm    Post subject:
Reply with quote

Quote:
I have to Open , read and Close 150 input files and 1 output file in my COBOL program for some processing.
That's gross, but COBOL doesn't put any such restriction, so far so good - but curious, why do you need such a mammoth of input files? Can't this be broken to multiple processes?

Quote:
However my program is running fine with 55 files.. But is failing for all code I pasted for 56th file and furthur files... In fact it is giving errors to EXIT Paragraph names for all files starting from 56 th file till 150th file. It says "PARA56-EXIT was expected in area B , but appears in area A" , which seems strange to me considering that all para names should begin in Area A.
Instead of this suggest you please show us the "copy/paste" of the error mesasge/s.
Back to top
View user's profile Send private message
puneetvirmani143

New User


Joined: 24 Jul 2007
Posts: 55
Location: noida

PostPosted: Fri May 25, 2012 2:22 pm    Post subject:
Reply with quote

Sorry for confusion .. I meant my COBOl program is getting compiled sucessfully with less no of files..


Regards\
Manoj
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1534
Location: Andromeda Galaxy

PostPosted: Fri May 25, 2012 2:25 pm    Post subject:
Reply with quote

Ok so?

What is the error you get when executing ?

Could you please paste it for us??
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri May 25, 2012 2:58 pm    Post subject: Reply to: COBOL program compilaton problem
Reply with quote

Since you are nowhere near any compile limits, isn't it likely that, say, the code for the 54th file has an error which is then blowing-out the rest of the compile. Thus, when you delete that code, everything "runs" (as in compiles" fine.

Good things for blowing out in such a way are to make a mess of COPY statements. Ensure that you check for messages relating to this, you may see some at the beginning of the compile listing, and check for messages at the beginning of the diagnostic-message list, anything you are not used to seeing.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 25, 2012 6:50 pm    Post subject:
Reply with quote

Hello,

Suggest you post something we can use to help you. . . .

Post the 10 lines before and after the line with the first compiler error.

Post the error message(s) associated with this first error (inclue the message id(s).
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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