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

[Closed]Program abends If I use STOPRUN, but runs If GOBACK used


IBM Mainframe Forums -> COBOL Programming
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:18 pm
Reply with quote

Hi,

I have a standlone COBOL which abends when i use STOPRUN but runs properly when GOBACK is used.This program uses only PS and VSAM files.

Ideally GOBACK and STOPRUN should do same function for a standalone program.

Can anyone please explain the reason behind this?

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 02, 2007 4:24 pm
Reply with quote

STOPRUN
What does this command suggest to you that it might do.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:27 pm
Reply with quote

Hi,

I have a standlone COBOL which gives MAXCC=12 when i use STOPRUN but runs properly when GOBACK is used.This program uses only PS and VSAM files.

Ideally GOBACK and STOPRUN should do same function for a standalone program.

Can anyone please explain the reason behind this?

Thanks
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 4:28 pm
Reply with quote

Quote:
Ideally GOBACK and STOPRUN should do same function for a standalone program.
I agree with the OP.
pingte,
What was the abend??

Expat,
what do you want to suggest? I couldn't get what you just said..
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:29 pm
Reply with quote

FYI
Stoprun Suggests that control goes back to MVS.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:31 pm
Reply with quote

It is MAXCC = 12...
(Please ignore the first post)
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 4:31 pm
Reply with quote

Quote:
I have a standlone COBOL which gives MAXCC=12 when i use STOPRUN but runs properly when GOBACK is used.This program uses only PS and VSAM files.

Compilation error is not an ABEND.. icon_smile.gif
use STOP RUN.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:34 pm
Reply with quote

agkshirsagar
i think you didn't get the post properly....
icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 02, 2007 4:35 pm
Reply with quote

STOPRUN


To me this says - STOP the run, STOP what you are RUNning, as in cease, terminate, quit, end, finish, immediately, without delay, this instant, right this second, get the heck out of here.

Whereas, GOBACK suggests - Go back to the next line of the main routine following the line used to call this sub routine.

I am not a programmer or software engineer, just applying the logic of what the command syntax suggest to me. WHo knows, I might be wrong.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:40 pm
Reply with quote

Read this (from view of a software engineer)...

ibmmainframes.com/viewtopic.php?t=13781&highlight=goback

icon_biggrin.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 4:42 pm
Reply with quote

Quote:
program gives MAXCC=12.
And you call this an ABEND.. this is what I've understood from your question..
I understand COMPILER gives MAXCC.
I suggested giving a SPACE bet'n STOP & RUN..

Now enlighten me if I misunderstood your question! icon_smile.gif
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 4:47 pm
Reply with quote

agkshirsagar...

did u read the post completely....

"Post subject: GoBack/ Stop Run (please ignore the previous post)"

i have posted twice... second time saying "Please ignore the first post"
icon_biggrin.gif icon_biggrin.gif
icon_biggrin.gif and i tried wid stop run only"STOP RUN"....

Thanks[/quote]
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 4:53 pm
Reply with quote

did u read the post completely.... YES

"Post subject: GoBack/ Stop Run (please ignore the previous post)"

i have posted twice... second time saying "Please ignore the first post"

and i tried wid stop run only"STOP RUN".... OK, PERFECTLY OK.

Now what is the ABEND?????? Now don't give me MAXCC again..
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 5:01 pm
Reply with quote

It is not a abend...
it is MAXCC=12...
when i removed STOP RUN and replaced it wid GOBACK....
It works fine... (that is MAXCC = 4)
What can be possible reason for this?

Now please don't tell me that it is an abend...(Please Read the second post of mine carefully)

Thanks
Back to top
View user's profile Send private message
ahr

New User


Joined: 24 Apr 2007
Posts: 14
Location: India

PostPosted: Wed May 02, 2007 5:07 pm
Reply with quote

I feel MAXCC comes because of VSAM files.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 5:12 pm
Reply with quote

ahr...

Can you please justify your answer?

Thanks
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 5:12 pm
Reply with quote

Please post your compiler listing o/p so that we can help you better. icon_smile.gif
As per my humble opinion MAXCC is given by COMPILER, it is not an ABEND.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 5:15 pm
Reply with quote

FYI...

Posting of any sort of code/ code snippet is against data security policy of any company... it is strict violation of that policy

I hope people using this forum are aware of it and should refrain from doing such things in public forums.

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 02, 2007 5:26 pm
Reply with quote

pingte wrote:
FYI...

Posting of any sort of code/ code snippet is against data security policy of any company... it is strict violation of that policy

I hope people using this forum are aware of it and should refrain from doing such things in public forums.

Thanks


That would somewhat defeat the object of coming to a help forum with a problem, not being able to post the error or sysout listings.

Obviously they can be changed to hide the identity of the posting company, but with no error or sysout listings there's really no point in posting.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 5:32 pm
Reply with quote

I am not asking you to paste CODE, I am asking for compiler error listing IGY--- something
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed May 02, 2007 5:33 pm
Reply with quote

Probably that is ur interpretation.... but i think that ways!!
I think people can obtain legitimate help from public forums without posting sensitive information.

Thanks
Back to top
View user's profile Send private message
ahr

New User


Joined: 24 Apr 2007
Posts: 14
Location: India

PostPosted: Wed May 02, 2007 6:07 pm
Reply with quote

Hi Pingte,

sorry man, unless I can see your Job output information, specially JES**MSG, it is very tough to find the error. Good Luck, Hope you find the reason soon.


icon_cool.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed May 02, 2007 6:15 pm
Reply with quote

I request moderators to delete this thread or move it to OFF TOPICs.
A lot of our time has been wasted by OP. I dont know if a normal program will give MAXCC=12 when it is run, I have insisted throughout my posts that it is there is a COMPILATION ERROR when MAXCC=12 is encountered (Please correct me if I am wrong icon_smile.gif )
OP is not even ready to paste compiler o/p and has been consistently mistaking an ABEND with a COMPILATION error.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 02, 2007 6:17 pm
Reply with quote

I agree with the two posts above.

No output, no way.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 02, 2007 10:46 pm
Reply with quote

Yes, a good thread to close. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top