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
 

 

COBOL Program error: control after last line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
chetan arage
Warnings : 1

New User


Joined: 12 Dec 2006
Posts: 1
Location: kolhapur

PostPosted: Sat Dec 16, 2006 3:59 pm    Post subject: COBOL Program error: control after last line
Reply with quote

sir when i m submiting cobol jcl,my program abends but giving result-THE FLOW OF CONTROL IN PGM M1 PROCEDDED BEYOND LAST LINE OF PGM.BCZ OF THIS I M NT GETING MAXCC=O.
whats the problem i cant understand?
Back to top
View user's profile Send private message

nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Sat Dec 16, 2006 4:46 pm    Post subject: Re: program problem
Reply with quote

hi,
I think that the loop may be going infinitely.
correct me if i am wrong.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat Dec 16, 2006 5:50 pm    Post subject:
Reply with quote

One guess would be that last paragraph in your program, one meant to be performed, ended up recieving control via a go to.
Back to top
View user's profile Send private message
sudhakar_lendave

New User


Joined: 21 Nov 2006
Posts: 48
Location: mumbai

PostPosted: Mon Dec 18, 2006 10:17 am    Post subject: Re: COBOL Program error: control after last line
Reply with quote

hi chetya,
can you show me your jcl?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Dec 19, 2006 3:28 am    Post subject:
Reply with quote

Hello,

A possibility is that it "just fell out the bottom".

One possibility is the one that William suggests.

Another is that the program has done all it is supposed to do, but there is no GOBACK or STOP RUN to terminate processing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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