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
 
Getting maxcc=4 when compiling programs taht are using Files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
prabahar

New User


Joined: 25 Nov 2005
Posts: 6

PostPosted: Tue Nov 29, 2005 6:14 pm    Post subject: Getting maxcc=4 when compiling programs taht are using Files
Reply with quote

Why do we get MACC=4 when we compile the Cobol programs which handles files?
Back to top
View user's profile Send private message

kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Wed Nov 30, 2005 10:39 am    Post subject: Re: Getting maxcc=4 when compiling programs taht are using F
Reply with quote

Hi,
Isn't there any warning messages in your compiled listing?
for example when you code a File description in the cobolII programs and do not code recording mode in your "FD" section you will get warning message and consequently get return code of 4 for your compile step.
Usually the listing output will give you complete information about the messages.
Back to top
View user's profile Send private message
prabahar

New User


Joined: 25 Nov 2005
Posts: 6

PostPosted: Wed Nov 30, 2005 10:46 am    Post subject: Re: Getting maxcc=4 when compiling programs taht are using F
Reply with quote

Thanks.
Yes..there are warning messages in the compiler listing
Back to top
View user's profile Send private message
hemanta

New User


Joined: 09 May 2006
Posts: 5

PostPosted: Mon Jun 12, 2006 2:44 pm    Post subject:
Reply with quote

Hi
I think u r getting that MAXCC=4 because of sequence error in the compilation step. So don't worry. GO ahead and execute the program
In that step u can get MAXCC=0 if everything is fine
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Jul 13, 2006 12:30 pm    Post subject: Re: Getting maxcc=4 when compiling programs taht are using F
Reply with quote

Hi,

Cobol is a very descriptive language, it expects File Definitions and record layout for each and every file it is accessing.

In case of Batch programs we usually get MAXCC = 0 , but there may be certain cases were we miss the FD, mode of accessing...

During these cases we encounter return code of 4.

For these you have to check the SYSMSG for the warnings.

Regards,
diwakar.

Nobody is Perfect .I am Nobody

[/b]
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jul 13, 2006 3:03 pm    Post subject:
Reply with quote

hemanta wrote:
Hi
I think u r getting that MAXCC=4 because of sequence error in the compilation step. So don't worry. GO ahead and execute the program
In that step u can get MAXCC=0 if everything is fine


I wonder what is a "sequence error" during compilation?
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Jul 13, 2006 3:14 pm    Post subject:
Reply with quote

Hi,

I think he is speaking about the Sequence number in the program, The sequence may change during insertion or deletion of the lines it may result in a mismatch.


Correct me if i am wrong

Regards,
Diwakar

Nobody is perfect . I am Nobody
Back to top
View user's profile Send private message
sreenivasg

New User


Joined: 13 Jul 2006
Posts: 2
Location: hyderabad

PostPosted: Thu Jul 13, 2006 9:52 pm    Post subject:
Reply with quote

hi,
this is sreenivas,
this error occurs due to not coding of recording mode in fd(file description)
even if we don't code the recording mode we will get the maxcc=0
so no problem
bye
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am

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