IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting maxcc=4 when compiling programs taht are using Files


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top