GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 128 of 159    Print  
What happens if we code Exit program instead of Stop Run in main program

  
Total Answers and Comments: 2 Last Update: October 17, 2008     Asked by: Bhairon Singh Rathore 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 03, 2008 08:44:43   #1  
ranjanoec Member Since: June 2008   Contribution: 1    

RE: What happens if we code Exit program instead of Stop Run in main program
it will not return back to the control.
 
Is this answer useful? Yes | No
October 17, 2008 05:02:09   #2  
suma_infy Member Since: July 2008   Contribution: 3    

RE: What happens if we code Exit program instead of Stop Run in main program
If Exit program is coded in the main program it will throw abend 4038 (compilation error) since it wont be able to return control to the O.S
 
Is this answer useful? Yes | No

 Related Questions

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                   ...

The parameters passed in a call by context are protected from modification by the called program. In a normal call they are able to be modified.  
Latest Answer : In call by content a copy of variable is passed to the sub program. In case of call by address the address is passed. ...

The linkage section is part of a called program that 'links' or maps to data items in the calling program's working storage. It is the part of the called program where these share items 
Latest Answer : Each parameter to be accepted or passed by a procedure must be declared in the LINKAGE SECTION.This section lists buffers for data are common to calling and called programs. Calling parameters are set in the Linkage Section of the called programs and ...

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 

REPLACING allows for the same copy to be used more than once in the same code by changing the replace value 
Latest Answer : Hi,   Replacing option in COPY verb provides facility to use same block of code for different programs having all things common except few variables in that particular block of code. It providesdes the feature of reusablity without writing it ...

1) Without execution cobol program how to see output?2) how to rename input filename and outputfile name?3) what is flag?4) what is impact analysis what basis how will you write test cases?5) how you sea output of cics command?6) how are datasets concatenated explain with example?
i don't know please give me answer 
Read Answers (5) | Asked by : mohansharma

Latest Answer : A RESIDENT program is one that is loaded into the CICS cashe. This will improve the performance of the application by not having to re-load them into memory. ...
Read Answers (1) | Asked by : tamal sengupta

In file section of a COBOL program, I have the following line.Record varying from 122 to 160 depending on WS00_RECORD_LENGTH. How would the value of WS00_RECORD_LENGTH found out? Where will it be?

Latest Answer : IBM-MQseries are used for communication purpose from cobol to no cobol prog... Using this you can pass the value. ...

77 I PI 9.PERFORM VARYING I FROM 1 BY 1 UNTIL>10DISPLAY 'OK'END-PERFORM.What output/msg is likely when this program is executed thru JCL?


 Sponsored Links

 
Related Articles

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php" fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

code

geshibot lang javascript" head This is a JS snippet from Geshi Bot" Replaces the geshi default classes with mambo joomla classes function replaceGeshiWithMamboClasses if document document getElementsByTagName Category
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

exit and return statements

  How does the exit () and return () differ exit () is used to exit the program as a whole. In other words it returns control to the operating system. After exit () all memory and temporary storage areas are all flushed out and control goes out of program. In contrast, the return () stateme
 

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
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape