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

COBOL compilation error RC=12


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:02 pm
Reply with quote

I am trying to compile A COBOL program.
and getting RC=12, but i see 4 under INFORMATIONAL but still RC=12.
kindly help me on this
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:08 pm
Reply with quote

Kindly copy/paste, don't attach screen prints.

Did you try fixing the error you have? At least show all of it here.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:28 pm
Reply with quote

Have a look at this topic.

That first little message (the 185-I) will probably lead you to the "source" of your problem. Fix the other one as well, but not connected to this problem.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 6:31 pm
Reply with quote

Did you verify from Appendix E of the COBOL Language Reference manual (available at the Manuals link at the top of this page) that you are not using a reserved word for a variable name? Did you check with your site support group to see if they added anything to the reserved word table at your site?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Fri Dec 09, 2011 6:32 pm
Reply with quote

Are you sure your RC=12 is not from link edit?
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:34 pm
Reply with quote

Yes I am very sure about the RC is 12. and i m clueless for that. If i have only 4 information how RC can be 12 ???
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:37 pm
Reply with quote

vinod kumar prasad wrote:
Yes I am very sure about the RC is 12. and i m clueless for that. If i have only 4 information how RC can be 12 ???


Did you read anything I posted?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Fri Dec 09, 2011 6:38 pm
Reply with quote

Quote:
Yes I am very sure about the RC is 12


But are you sure it is from the compile step? Prove it.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Dec 09, 2011 6:39 pm
Reply with quote

4 is the number of informational messages, and NOT a return code.


reading comprehension is an art.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:41 pm
Reply with quote

Below is what i got as information with RC as 12



IGYSC0185-I Messages were issued during library phase processing. Refer to the begining of the listing.

231 IGYDS0086-I "RECORD-NAME" was specified as an informational word in the current reserved word table . The reserved word table used may be different from the IBM-supplied default.Language Reference for information on reserved words.

Same message on line: 233 1532
Messages Total Informational Warning Error Severe Terminating
Printed: 4 4
* Statistics for COBOL program FSRXIF3E:
* Source records = 1535
* Data Division statements = 671
* Procedure Division statements = 202
End of compilation 1, program FSRXIF3E, highest severity 0.
Return code 12
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:45 pm
Reply with quote

[
IGYSC0185-I Messages were issued during library phase processing. Refer to the beginning of the listing


231 IGYDS0086-I "RECORD-NAME" was specified as an informational word in the current reserved word table.The reserved word table used may be different from the IBM-supplied default .Refer to VS COBOL II Application Programming. Language Reference for information on reserved words

Same message on line: 233 1532
-Messages Total Informational Warning Error Severe Terminating
0Printed: 4 4
-* Statistics for COBOL program FSRXIF3E:
* Source records = 1535
* Data Division statements = 671
* Procedure Division statements = 202
0End of compilation 1, program FSRXIF3E, highest severity 0.
0Return code 12
][/code]
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:48 pm
Reply with quote

vinod kumar prasad wrote:

IGYSC0185-I Messages were issued during library phase processing. Refer to the beginning of the listing


Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 6:49 pm
Reply with quote

Quote:
IGYSC0185-I Messages were issued during library phase processing. Refer to the begining of the listing.
This is telling you to look at your COPY statements for a problem -- either with the COPY statement itself, or with the code being copied into your program.

If you want assistance, you're going to have to post CODE, not just output messages.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:51 pm
Reply with quote

"Highest severity" and "Return Code" on the compile listing usually have a pretty clear relationship.

With severity 0, you'd expect Return Code 0.

Looks like Library Phase messes that up, in that it does not get to influence the severity.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 09, 2011 6:55 pm
Reply with quote

You should be able to find for IGYLI message(s).

If you had googled for the message you could see, you'd have come to the topic I highlighted for you and not have had to bother asking the question.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:01 pm
Reply with quote

I have googled it too but didnt get anything to help myself. Still its fishy how RC can be 12 is i got only 4 informations.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Dec 09, 2011 7:02 pm
Reply with quote

36_2_18.gif

Frisbee asked you for prove if the rc=12 comes from the compile or from something else. You are repeating yourself over and over with stupidity.
Give us the jobstream, all the sysout etc. etc.

Beside that its friday afternoon, and here happy hours are starting and i want to attend all of them. So good luck.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:06 pm
Reply with quote

COPY IDMS SUBSCHEMA-CONTROL
Above is the copy statement which is using Variable "RECORD-NAME".
Help me how to change the copy variables ...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 7:08 pm
Reply with quote

Quote:
how RC can be 12 is i got only 4 informations.
Because the 12 is from the IDMS precompile results while the COBOL compile gives you a 4?
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:12 pm
Reply with quote

Is there anyway i can do any modification to get RC=0 ??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 7:21 pm
Reply with quote

Yes, but YOU will have to find and make the change since you are not posting anything source related. If IDMS is involved, you may need to get the DBA involved to help figure out the actual problem and how to fix it.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:25 pm
Reply with quote

sorry but as all my codes are classified can't post it here.
Anyways i'll try to get the hepl of DBA on the same.

Thanks for all your expert advices.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Dec 09, 2011 7:38 pm
Reply with quote

what classification do your codes have?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 8:30 pm
Reply with quote

Dick, I'm thinking maybe TS/SCI with a NOFORN designation? icon_biggrin.gif
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Dec 09, 2011 9:10 pm
Reply with quote

At our shop, our spool handling program can have a filter added to it. This filter can be told to select only certain lines from the output of a job. Our shop set up the list of messages to be shown about a decade ago.

People still use it, and it causes exactly this kind of confusion.

There are probably a raft of messages from the link-edit step that are not matching the filter the TS is using. So they type "SS" in the little command area and see what they posted abouve, never guessing there are 500 other lines of information that would help them.

I suggest looking to make sure there isn't another command to use that does not filter out any lines.
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 -> COBOL Programming Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:

Back to Top