View previous topic :: View next topic
|
Author |
Message |
prabahar
New User
Joined: 25 Nov 2005 Posts: 6
|
|
|
|
Why do we get MACC=4 when we compile the Cobol programs which handles files? |
|
Back to top |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
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 |
|
|
prabahar
New User
Joined: 25 Nov 2005 Posts: 6
|
|
|
|
Thanks.
Yes..there are warning messages in the compiler listing |
|
Back to top |
|
|
hemanta
New User
Joined: 09 May 2006 Posts: 5
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
sreenivasg
New User
Joined: 13 Jul 2006 Posts: 2 Location: hyderabad
|
|
|
|
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 |
|
|
|