What does the initialize statement do ?

Answers were Sorted based on User's Feedback



What does the initialize statement do ?..

Answer / shashank

in case of numeric variable it makes default value to zero
and in case of alphanumeric or alphabetic it makes default
value to spaces.

Is This Answer Correct ?    6 Yes 1 No

What does the initialize statement do ?..

Answer / viji

Also,
FILLER , and OCCURS DEPENDING ON items are left untouched.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is Comm?

2 Answers   IBM, Kemper Corporation,


how to transfer the file from pc to mainframe??

5 Answers   TCS,


How to retain the Duplicates in the one records?

3 Answers   CS,


study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

4 Answers   TCS,


How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.

4 Answers   Cap Gemini,


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


wht is the difference between goto and perform stmts

7 Answers   DELL,


how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 Answers  


What are the access modes of START statement?

0 Answers  


A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


What is the difference between PIC 9.99 and 9v99 in COBOL?

0 Answers   SwanSoft Technologies,


What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES

7 Answers   TCS,


Categories