GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 149 of 162    Print  
in-line PERFORM and out-line PERFORM
what is the in-line PERFORM and out-line PERFORM?


  
Total Answers and Comments: 2 Last Update: February 21, 2009     Asked by: gowrinag 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: guraddiv
 

hi,

   if u want 2 perform the action with in the perform para that is called as in-line perform and ends with end-perform. the reamining perform statements are called as out-line perform



Above answer was rated as good by the following members:
astrolog, sabarigiri.c, kiranrcse
June 25, 2008 05:49:09   #1  
guraddiv Member Since: April 2008   Contribution: 18    

RE: in-line PERFORM and out-line PERFORM

hi

if u want 2 perform the action with in the perform para that is called as in-line perform and ends with end-perform. the reamining perform statements are called as out-line perform


 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
February 20, 2009 05:44:51   #2  
haris805 Member Since: February 2009   Contribution: 1    

RE: in-line PERFORM and out-line PERFORM
In-line PERFORM have explicit scope terminator END-PERFORM where as Out-line PERFORM does not. Out-line perform have paragraphs.
If you want to perform certain amount of code only one time in the program then we use in-line PERFORM.
If you want to perform the same code many times within the program then you put that code in a paragraph and use it wherever you want.

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

Scope terminators are mandatory for in-line PERFORMS and EVALUATE statements. For readability, it's recommended coding practice to always make scope terminators explicit.  
Latest Answer : in line perform & evaluate verb. in these two scope terminator is mandatory. ...

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.  

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?

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?

I am trying to create a line sequential file with record length 150 bytes (fixed format). The requirement is that the last 50 bytes of the record should be blanks. Finally, when I am opening the file the actual record length is 100 bytes. That means that the last 50 bytes are truncated. solve this problem?
Read Answers (1) | Asked by : vagoro

Latest Answer : Its basically a loop to execute a group of statements without jumping any where else in the program. ...

what is the in-line PERFORM and out-line PERFORM? 
Latest Answer : In-line PERFORM have explicit scope terminator END-PERFORM where as Out-line PERFORM does not. Out-line perform have paragraphs.If you want to perform certain amount of code only one time in the program then we use in-line PERFORM.If you want to perform ...
Read Answers (2) | Asked by : gowrinag


 Sponsored Links

 
Related Articles

On-Line Transaction Processing

On-Line Transaction Processing On-Line Transaction Processing is a processing that supports the daily business operations. Also know as operational processing and OLTP.  An OLTP is a database which must typically allow the real-time processing of SQL transactions to support traditional reta
 

On-Line Analytical Processing

On-Line Analytical Processing On-Line Analytical Processing is a processing that supports the analysis of business trends and projections. It is also known as decision support processing and OLAP.  An OLAP software enables companies to have real-time analysis of data stored in a database. A
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

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
 

Mainframe Features

Mainframe Features In this Mainframe tutorial you will learn about features of Mainframe Processing power memory capacity performance computing multiple operating system time sharing reliability serviceability availability clustering technology and other features available in Mainframe mosgoogle cen
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

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