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 |
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
what is the difference b/w level no.01 & level no.77?
What is the difference between next sentence and continue in cobol programing language?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it
i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2
How to display string in the reverse order using occurs clause?
What will happen if we generate GDG (+2) version without generating (+1) version?
what is label record is standard or omitted in file description of data division?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
Differentiate COBOL and COBOL-II?