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

[Solved]GO BACK in a main program which does not call any sub-pgm


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkateshbagayat

New User


Joined: 04 Mar 2005
Posts: 10

PostPosted: Tue Jul 26, 2005 8:18 pm
Reply with quote

Hi all..,
Can anybody tell me wat happens if i code GO BACK in a main program which does not call any sub-program. I know that its equivalent to STOP RUN if coded in a program which calls one or more sub program.., but I want to know wat happens if I code it in a program which does not call any sub program.
Regards..,
Venkat
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Tue Jul 26, 2005 8:28 pm
Reply with quote

It will go back to OS.
Back to top
View user's profile Send private message
venkateshbagayat

New User


Joined: 04 Mar 2005
Posts: 10

PostPosted: Tue Jul 26, 2005 8:40 pm
Reply with quote

thanks KK..,
Thanks a lot for your quick reply..,
will be in touch okay..,
bbye
Venkat
Back to top
View user's profile Send private message
harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Tue Jul 26, 2005 10:04 pm
Reply with quote

Hi venkateshbagayat,

As per to the my knowledge, Program(Main program) will go infinite loop.

Please let me know, If I am wrong.


Thanks & Regards
Hari.
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Wed Jul 27, 2005 11:02 am
Reply with quote

Hi Hari..

It wont go in a Loop. Did you try coding it?
Back to top
View user's profile Send private message
harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Thu Jul 28, 2005 7:18 am
Reply with quote

Hi shobam,

I didn't code it,But i study in some material.

Are u tested...if yes tell me result.

Tanks & Regards
Hari.
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Thu Jul 28, 2005 12:31 pm
Reply with quote

GO BACK & STOP RUN both do same function when u code it in stand alone COBOL
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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
Search our Forums:

Back to Top