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

what is the diff. between STOP RUN and GO BACK


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

New User


Joined: 15 Nov 2003
Posts: 1

PostPosted: Sat Nov 15, 2003 10:35 am
Reply with quote

what is the diff. between STOP RUN and GO BACK?
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Sat Nov 15, 2003 10:53 am
Reply with quote

Hello m_poda,

STOP RUN

Main Program: Return to calling program. (Might be the operating system, and job will end.) STOP RUN terminates the run unit, and deletes all dynamically called programs in the run unit and all programs link-edited with them. (It does not delete the main program.) In a threaded environment the entire Language Environment enclave is terminated, including all threads executing within the enclave.

Sub Program: Return directly to the program that called the main program. (Might be the operating system, and job will end.) In a threaded environment, the entire Language Environment enclave is terminated, including all threads executing within the enclave.


GOBACK:

Main Program: Same effect as STOP RUN: return to calling program. (Might be the operating system, and job will end.) In a threaded environment, the thread is terminated.

Sub Program: Return to calling program. In a threaded environment, if the program is the first program in a thread, the thread is terminated.
If the main program is called by a program written in another language that does not follow Language Environment linkage conventions, return is to this calling program. If the thread is the initial thread of execution in an enclave, the enclave is terminated.


EXIT PROGRAM

Main Program: No action taken

Sub Program: Return to calling program without ending the run unit. An implicit EXIT PROGRAM statement is generated if the called program has no next executable statement. In a threaded environment, the thread is not terminated unless the program is the first (oldest) one in
the thread.


Hope this helps,

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
Johore

Specialist


Joined: 12 Sep 2003
Posts: 19

PostPosted: Fri Nov 21, 2003 12:06 pm
Reply with quote

Difference in short

STOP RUN will terminate all currently running programs.The stop run statement will cause a normal termination to your program.

GOBACK will return execution to the calling program

johore
Back to top
View user's profile Send private message
vsravankumar

New User


Joined: 27 Nov 2003
Posts: 1

PostPosted: Thu Nov 27, 2003 11:35 am
Reply with quote

what is GDG in VSAM?
Back to top
View user's profile Send private message
Johore

Specialist


Joined: 12 Sep 2003
Posts: 19

PostPosted: Fri Nov 28, 2003 10:09 am
Reply with quote

Hi vsaravanakumar,

A gdg is a set of chronologically related dataset.It is used in cyclical applications .A generation dataset is one data set in a generation data group.A new generation of the dataset is produced in each cycle.These datasets are processed at regular intervals .

The new generation is called the current generation .the former generation is called the previous generation .All datasets in a gdg have the same name .Relative numbers are used to identify the generation (0) or (-1) etc
The dataset has a name
Filename.GnnnnV00
Here G0000-G9999 is the ABSOLUTE number and V00 is the version number .This is the version of the generation ,
A new version of a dataset replaces the current relative position and the old version loses its relative position .
A generation dataset can be called in the DSN parameter of the DD statement using the relative number or the absolute number .

//OLDFILE DD DSN = PAYROLL(1) **** RELATIVE NUMBER
DISP = SHR /OLD
//OLDFILE DD DSN = PAYROLL.G0001V00 **** ABXOLUTE NUMBER
All GDG are created floowing a Model GDG or a base.IDCAMS are used to create the GDG's
Two things needed to create a GDG are
1? An index or base
2? A prototype dataset .
Refer
Code:
 http://www.jaymoseley.com/hercules/vstutor/vstutor.htm

for more info.

rgds
johore
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 Back Page print direction (Duplex Pri... JCL & VSAM 3
No new posts Sort on different fields, removing du... SYNCSORT 8
No new posts How to stop a runaway CICS trans with... CICS 13
No new posts Query regarding STOP REGION XX ABDU... IMS DB/DC 11
Search our Forums:

Back to Top