What does the initialize statement do ?
Answers were Sorted based on User's Feedback
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 |
Answer / viji
Also,
FILLER , and OCCURS DEPENDING ON items are left untouched.
| Is This Answer Correct ? | 4 Yes | 0 No |
What will happen if we generate GDG +2 version instead of +1 version?
Which Search verb is equivalent to PERFORM…VARYING?
Differentiate COBOL and COBOL-II?
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.
What are different file OPEN modes available in COBOL?
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.
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.
Discuss about changing dataset name in proc.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
where will we code call by content and call by reference dude pls reply soon ?
What is the difference between write & move in COBOL?
hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........