MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shortest COBOL program that will ABEND
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Mainframe Challenge
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Mon Oct 11, 2004 12:28 am    Post subject: Reply with quote

Hi Manas,
I had an offline discussion with Kolusu about this. And, Kolusu, pointed out that, I was using NOCMPR2 compiler option (which is obsolete with Enterprise COBOL).
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Tue Apr 26, 2005 1:55 pm    Post subject: Reply with quote

what happens when we set the compiler option to "NOCMPR2"?

Kolusu,

Any documentation on this ?

Thanks,
Tattva
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Tue Apr 26, 2005 2:13 pm    Post subject: Reply with quote

tattva,

Check this link for a detailed explanation of the Compiler Option CMPR2

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGYA1101/5.2.3.4?DT=19930312141355

Check this link which explains in detail about New Language Features under NOCMPR2

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGYA1101/APPENDIX1.4.2.2?SHELF=&DT=19930312141355&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Tue Apr 26, 2005 2:35 pm    Post subject: Reply with quote

Kolusu,

i tried to compile the program( the one with 3 lines) with option CMPR2.

it threw me 3 errors !! what am i doing wrong here ??

could you please throw some light on this ?

Thanks,
Tattva
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Wed Apr 27, 2005 8:16 am    Post subject: Reply with quote

tattva,

Quote:

it threw me 3 errors !! what am i doing wrong here ??



I cannot help you without knowing what the error messages are. can you post your error messages?

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tommy123
Beginner


Joined: 04 May 2005
Posts: 21
Topics: 11

PostPosted: Wed May 11, 2005 9:53 pm    Post subject: SHORTEST COBOL PGM Reply with quote

Kolusu,

I tried running 2 lines of code & i am getting abend

ABENDED S000 U4038 CN(INTERNAL)
***

IDENTIFICATION DIVISION.
PROGRAM-ID. SHORTEST.

Wont' u think this is the shortest code to abend ?

Tommy123
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Thu May 12, 2005 5:53 am    Post subject: Reply with quote

tommy123,


Did you read the entire topic clearly ? Read it once again and it will answer your question.

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Milind
Beginner


Joined: 29 Dec 2004
Posts: 26
Topics: 20

PostPosted: Wed May 25, 2005 11:25 am    Post subject: Reply with quote

Dear all,

I have tried with two lines progrm:

IDENTIFICATION DIVISION.
PROGRAM-ID. ABEND.

It gave me this abend:

18.17.43 JOB54305 $HASP165 TSICR076 ENDED AT NREJES2 - ABENDED S001 U0615 CN(IN
TERNAL)


How about this?


Cheers,
Milind
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Wed May 25, 2005 11:30 am    Post subject: Reply with quote

Quote:

I have tried with two lines progrm:

IDENTIFICATION DIVISION.
PROGRAM-ID. ABEND.

It gave me this abend:

18.17.43 JOB54305 $HASP165 TSICR076 ENDED AT NREJES2 - ABENDED S001 U0615 CN(IN
TERNAL)


How about this?


Milind,

If you had read atleast the last 2 posts in this topic , you wouldn't have raised that question. You SHOULD start reading the topic once again from the top .(especially from post # 5 from the top)

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Mainframe Challenge All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group