GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 139 of 162    Print  
What does the initialize statement do ?

  
Total Answers and Comments: 2 Last Update: June 24, 2008     Asked by: sprabodhini 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 08, 2008 05:47:08   #1  
sathya swaminathan Member Since: May 2008   Contribution: 3    

RE: What does the initialize statement do ?
Hi

Initailize verb initiallizes(empty) the data items. Alphabetic Alphanumeric fields & alphanumeric edited items are set to SPACES. Numeric Numeric edited items set to ZERO. FILLER OCCURS DEPENDING ON items left untouched. 

 
Is this answer useful? Yes | No
June 24, 2008 06:03:56   #2  
janrev Member Since: May 2008   Contribution: 1    

RE: What does the initialize statement do ?
Initialize will move zeroes to numeric items(9) and spaces to alpha-numeric items.(X)
 
Is this answer useful? Yes | No

 Related Questions

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

What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default?
INITIALIZE moves spaces to alphabetic fields and zeros to alphanumeric fields. The REPLACING option can be used to override these defaults.  

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 : 01 SALES-TABLE.  02 SALES-DETAIL OCCURS 100 TIMES. COPY DDS-ALL-FORMAT OF EMPPF.If a group data is using database reference, where emppf is logical file name. ...
Read Answers (7) | Asked by : bhaskar singh

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

1) Is more than one record description is allowed in a FD?2) Is NUMERIC EDIT fields can be used for Arithmatic operations?3) Is COMPUTE P,Q,W = A+ B/C -E ** 2 is a valid statement?4) Is LINKAGE SECTION is mandatory in a sub program?5) In edit fiels the character used for check protection is __________6) COMP-2 occupies _________ bytes?7) Maximum length of a numeric item ________ ?

Latest Answer :    by default sign is trailing with no separate char and ans:    12345N ...
Read Answers (9) | Asked by : nirupam kundu

Latest Answer : value--- value is used to initialize data item in working storage sectionwhere as intialize----is used to initialize data item in procedure division ...
Read Answers (4) | Asked by : p.srinivas


 Sponsored Links

 
Related Articles

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>=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’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
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

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