Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example.

Answer Posted / osachari

next sentence transfers the control to the sentence which
after the first period. where as continue transfers the
control to the statement after the first scope
terminator(end-if...).

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6772


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10501


Which mode is used to operate the sequential file?

648


what is the difference between COBOL2 AND COBOL390?

2427


how do you reference the ksds vsam file formats from cobol programs

641






A table has two indexes defined. Which one will be used by the SEARCH?

735


What is redefines clause in COBOL?

829


How many sections are there in data division in COBOL?

665


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1898


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

725


What is the local-storage section?

664


what is the use of outrecord?

1757


Describe the cobol database components?

664


What type of SDLC u followed? Why?

1504


What is the Purpose of POINTER Phrase in STRING command in COBOL?

701