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
 

 

what is the diff. between STOP RUN and GO BACK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what is the diff. between STOP RUN and GO BACK
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: 238
Location: USA

PostPosted: Sat Nov 15, 2003 10:53 am    Post subject:
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    Post subject:
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    Post subject: mainframes question
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    Post subject: GDG
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    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 CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Stop Process when file is empty Roland Brosio DFSORT/ICETOOL 4 Thu Jun 25, 2015 1:20 pm
No new posts Compare PD Values with same storage &... Shrinika Rajendran JCL & VSAM 5 Wed Nov 05, 2014 3:17 pm
No new posts Need a JCL to change the volume back ... Manikandesvaran D JCL & VSAM 10 Tue Oct 14, 2014 9:06 pm
No new posts Go Back (F3) has to be automized sakrat TSO/ISPF 7 Tue May 06, 2014 12:30 pm


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