View previous topic :: View next topic
|
Author |
Message |
puneetvirmani143
New User
Joined: 24 Jul 2007 Posts: 55 Location: noida
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
puneetvirmani143
New User
Joined: 24 Jul 2007 Posts: 55 Location: noida
|
|
|
|
Sorry for confusion .. I meant my COBOl program is getting compiled sucessfully with less no of files..
Regards\
Manoj |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Ok so?
What is the error you get when executing ?
Could you please paste it for us?? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|