Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

[Closed]Program abends If I use STOPRUN, but runs If GOBACK used
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Program abends If I use STOPRUN, but runs If GOBACK used
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 02, 2007 4:24 pm    Post subject:
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    Post subject: GoBack/ Stop Run (please ignore the previous post)
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: 685
Location: Earth

PostPosted: Wed May 02, 2007 4:28 pm    Post subject:
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    Post subject: Re:GoBack/ Stop Run (please ignore the previous post)
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    Post subject: Re:GoBack/ Stop Run (please ignore the previous post)
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: 685
Location: Earth

PostPosted: Wed May 02, 2007 4:31 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 02, 2007 4:35 pm    Post subject:
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    Post subject:
Reply with quote

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

http://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: 685
Location: Earth

PostPosted: Wed May 02, 2007 4:42 pm    Post subject:
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    Post subject:
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: 685
Location: Earth

PostPosted: Wed May 02, 2007 4:53 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 685
Location: Earth

PostPosted: Wed May 02, 2007 5:12 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 02, 2007 5:26 pm    Post subject:
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: 685
Location: Earth

PostPosted: Wed May 02, 2007 5:32 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm
No new posts Need points to tune IMS Checkpoint Pr... satish.ms10 IMS DB/DC 2 Fri Sep 30, 2016 4:12 pm
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us