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 will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


Which Search verb is equivalent to PERFORM…VARYING?

1 Answers  


Differentiate COBOL and COBOL-II?

0 Answers  


How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN REDEFINES A. 05 AIN1 PIC S9(4) 01 B PIC 9(4)V99. 01 BIN REDEFINES B. 05 BIN1 PIC S9(4)V99. PROCEDURE DIVISION. START-PARA. INITIALIZE A AIN B BIN. ACCEPT A B. DISPLAY 'VALUE OF A=' A. DISPLAY 'VALUE OF B=' B. DISPLAY 'VALUE OF BIN1=' BIN1. DISPLAY 'VALUE OF AIN1=' AIN1. COMPUTE AIN1 = BIN1 - AIN1. DISPLAY 'VALUE OF AIN1=' AIN1. When i'm executing this code i'm getting SOC7 for A = 12 & B=34. Can someone explain SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE 0 COLUMNS 02- 81 COMMAND INPUT ===> SCROLL ===> CSR ********************************* TOP OF DATA ********************************** VALUE OF A=12 VALUE OF B=34 VALUE OF BIN1=34 VALUE OF AIN1=12 CEE3207S The system detected a data exception (System Completion Code=0C7). From compile unit PROG1 at entry point PROG1 at statement 29 at compile +000004CE at address 00007ECE. Please address how to solve this issue Thanks in advance.

1 Answers  


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


Discuss about changing dataset name in proc.

1 Answers  


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

2 Answers   IBM, Wipro,


where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........

1 Answers  


Categories