GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 138 of 162    Print  
What are two of the common forms of the EVALUATE STATEMENT ?

  
Total Answers and Comments: 1 Last Update: May 13, 2008     Asked by: sprabodhini 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 13, 2008 02:21:42   #1  
Batch Rocker Member Since: May 2008   Contribution: 2    

RE: What are two of the common forms of the EVALUATE STATEMENT ?

1) evaluate Identifier
WHEN value(s) PERFORM …

Evaluate Pay-Code
When 'H' Perform 300-Hourly-Rtn
When 'S' Perform 400-Salaried-Rtn
End-Evaluate

2)Evaluate True
WHEN value(s) PERFORM …

Evaluate Pay-Code
When 'H' Perform 300-Hourly-Rtn
When 'S' Perform 400-Salaried-Rtn
End-Evaluate

3)3) EVALUATE condition
EVALUATE condition
WHEN TRUE PERFORM …
WHEN FALSE PERFORM …

Evaluate Age < 19
When True Perform 400-Minor-Rtn
When False Perform 500-Adult-Rtn
End-Evaluate


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

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

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

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.  

Absolutely. Evaluation of the WHEN clauses proceeds from top to bottom and their sequence can determine results.  
Latest Answer : It's important to have the order in place, you can not put 'When other' as the first clause. ...

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

Latest Answer : No, while a single sending field can be sent to multiple targets such as MOVE A to C, Dthe only way to send mutiple sending fields to multiple target fields is via a MOVE CORRESPONDING. ...

Latest Answer : Hi Lavanya,Why don't you try before answering any question??Readers should not confused by your answers. Answer given by Poonam is absolutely correct!!! ...


 Sponsored Links

 
Related Articles

What is Common Metadata

In simple but technical term, metadata is a data that describes another data. It can be any item describing an individual datum or a collection of multiple content items. Metadata is very useful in facilitating the use, management and understanding of data in a large data warehouse. Depending on the
 

What is Common Data Structure

In big data warehouses such as those used by business organizations which may have many branches around the world and which may have diversified products and services, different kinds of data flood the warehouse every single day. These data may come from other warehouse data sources, or simply fresh
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

What is Common Data Modeling

Common Data Modeling is defining the unifying the structure used in allowing heterogeneous business environments to interoperate. A Common Data Model is very critical to a business organization. Especially with business environment where it is common to have multiple applications, a Common Data Mod
 

What is Common Data Model

This data model represents events, entities and objects in the real world that are of interest to the company. It is subject oriented and includes all aspects of the real world, primarily activities pertaining to the business. To use lay terms, a data model can be considered a road map to get one em
 

What is Common Data Architecture

Business need to define their organizational rules, policies and process in order to realize their projected growth within a specified period. In order to realize these targets, the essentially need to have a basic framework as the guide in their operations. The gathering and use of data is a very s
 

What are the limitations with switch statement?

Switch statement is a powerful statement used to handle many alternatives and provides good presentation for C program. But there are some limitations with switch statement which are given below: Logical operators cannot be used with switch statement. For instance case k&gt;=20: is not allowe
 

goto Statement

Why to avoid goto in C C has goto statement but one must ensure not to use too much of goto statement in their program because its functionality is limited and it is only recommended as a last resort if structured solutions are much more complicated. First let us understand the goto statement, its
 

The Interview Snafu

How to turn someone else&rsquo;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&rsquo;t get over the line without a polished, prof
 

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