GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 114 of 162    Print  
Difference between GOBACK & CHAIN in COBOL?

  
Total Answers and Comments: 1 Last Update: January 02, 2008     Asked by: sekhargupta 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 02, 2008 05:23:42   #1  
kiran.r Member Since: January 2008   Contribution: 2    

RE: Difference between GOBACK & CHAIN in COBOL?
goback:
controller should return back to where ever it comes from.
chain:
controller will go to subprogram after compleation of subprogram it will go to os.

 
Is this answer useful? Yes | No

 Related Questions

There are at least five differences: COBOL II supports structured programming by using in line PERFORMs and explicit scope terminators, it introduces new features (EVALUATE, SET .. TO TRUE, CALL .. BY 
Latest Answer : The END Delimiter --> END-READ                               END-PERFORM                              ...

A scope terminator brackets its preceding verb, eg. IF .. END-IF, so that all statements between the verb and its scope terminator are grouped together. Other common COBOL II verbs are READ, PERFORM, EVALUATE, 
Latest Answer : terminators like END-PEROFRM END-EVALUTE are called explicit scope terminaotr available in COBOL 85. ...

The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs work as long as there are no internal 
Latest Answer : In In-line PERFORM the procedure name is omitted. An In-line PERFORM must be delimited by the END-PERFORM statement.SYNTAX:          PERFORM                   ...

NEXT SENTENCE gives control to the verb following the next period. CONTINUE gives control to the next verb after the explicit scope terminator. (This is not one of COBOL II's finer implementations). 
Latest Answer : Next sentence: The sentence is the collection of statements and is always end with period(.).so next sentence means the control passes to next sentence after period.e.g.: if X=3 Compute X=X-3 Next sentence End-if ...

EVALUATE can be used in place of the nested IF THEN ELSE statements.  
Latest Answer : EVALUATE statement contrusts a case structure. The explicit scope terminator for EVALUATE is END-EVALUATE. The various cases can be places between the EVALUATE and END-EVALUATE statements. Example:Here SQLCODE is a built in variable name EVALUATE SQLCODE ...

Partial list: REMARKS, NOMINAL KEY, PAGE-COUNTER, CURRENT-DAY, TIME-OF-DAY, STATE, FLOW, COUNT, EXAMINE, EXHIBIT, READY TRACE and RESET TRACE.  

A subscript is a working storage data definition item, typically a PIC (999) where a value must be moved to the subscript and then incremented or decremented by ADD TO and SUBTRACT FROM statements. An 
Latest Answer : We can use up by 1/down by 1 in Index but in Subscript we should keeping adding 1. ...

Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc?
An external sort is not COBOL; it is performed through JCL and PGM=SORT. It is understandable without any code reference. An internal sort can use two different syntaxes: 1.) USING, GIVING sorts are 

Comp is a binary usage, while comp-3 indicates packed decimal. The other common usages are binary and display. Display is the default. 3/28/00 Dave Herrmann: 'I was reading your FAQ on Cobol, as 
Latest Answer : Binary representation of data item are called 'comp', while comp-3 is the packed decimal.comp-1 & comp-2 are another usage.  ...

In a COBOL II perform statement, when is the conditional tested, before or after the perform execution?
In COBOL II the optional clause WITH TEST BEFORE or WITH TEST AFTER can be added to all perform statements. By default the test is performed before the perform.  


 Sponsored Links

 
Related Articles

Can RFID Help Your Supply Chain?

Can RFID Help Your Supply Chain In the past few years much has been said about Radio Frequency Identification RFID technology and how it will revolutionize the supply chain process both locally nationally and globally If you’ re wondering what all the fuss is all about you’ re no
 

Supply Chain Management Skills

Supply Chain Management Skills Do you have what it takes to be a Supply Chain Manager Once upon a time the phrase managing a supply chain” meant making sure that your warehouse was adequately stocked and that nobody was goofing off in the back Times have definitely changed Today to manag
 

Supply Chain Optimization

Supply Chain Optimization With the advances in logistics and supply chain management technology in recent years there’ s been an explosion of interest in the topic of Supply Chain Optimization” While many businesses leaders have heard the term used few know exactly what Supply
 

Which Supply Chain Management Software is Right for your Business?

Which Supply Chain Management Software is Right for your Business If you’ re a Business Leader Supply Chain Manager or Logistics Executive you’ re probably all too aware of the fact that there’ s an abundance of Supply Chain Management SCM software products available on
 

Building Better Supply Chain

Building Better Supply Chain In order for your company to remain relevant in today’ s marketplace it is essential to continually look to evolve your supply chain process Companies that prosper and minimize their costs while maximizing their profits and keeping customers happy realize that
 

Why your Supply Chain Costs are too High

Why your Supply Chain Costs are too High If you ask most business owners if reducing their costs is important they won’ t hesitate to answer Why yes of course But when it comes to reducing their supply chain costs many of these same business owners have no clue what to do or even where
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Supply Chain Management Degree Programs

Supply Chain Management Degree Programs What a Supply Chain Manager Does Every business must have supplies and materials in order to run a successful operation Supply chain managers are employed to ensure that needed suppliers are always available to employees The job entails dealing with suppliers
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape