View previous topic :: View next topic
|
Author |
Message |
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
STOPRUN
What does this command suggest to you that it might do. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
FYI
Stoprun Suggests that control goes back to MVS. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
It is MAXCC = 12...
(Please ignore the first post) |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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..
use STOP RUN. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
agkshirsagar
i think you didn't get the post properly....
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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! |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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"
and i tried wid stop run only"STOP RUN"....
Thanks[/quote] |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
ahr
New User
Joined: 24 Apr 2007 Posts: 14 Location: India
|
|
|
|
I feel MAXCC comes because of VSAM files. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
ahr...
Can you please justify your answer?
Thanks |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Please post your compiler listing o/p so that we can help you better.
As per my humble opinion MAXCC is given by COMPILER, it is not an ABEND. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
I am not asking you to paste CODE, I am asking for compiler error listing IGY--- something |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
ahr
New User
Joined: 24 Apr 2007 Posts: 14 Location: India
|
|
|
|
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.
|
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 )
OP is not even ready to paste compiler o/p and has been consistently mistaking an ABEND with a COMPILATION error. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
I agree with the two posts above.
No output, no way. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Yes, a good thread to close. . . |
|
Back to top |
|
|
|