Should I use STOP RUN in the sub program??why?

Answer Posted / veni

If STOP RUN is used in the sub program, execution will
terminate there itself and it will never come to main
program. Thats why we have to use only GOBACK in the sub
programs.

Normally, we will code STOP RUN only in main programs not
in sub programs.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

1618


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1099


) how do u code after getting data?

1572


What are the different rules to perform a Search?

608


Whats the difference between search & search ALL?

5225






How do you differentiate between cobol and cobol-ii?

638


How to know whether the module is dynamical or statistical?

640


What are declaratives and what are their uses in cobol?

692


What is the difference between perform … with test after and perform … with test before?

859


Mention the guidelines to write a structured cobol program?

598


Can a Search can be done on a table with or without Index?

791


Explain how you can characterize tables in cobol?

628


how do you reference the variable block file formats from cobol programs

664


how to convert the recors form vsam file to db2 table tru file aid

2740


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2313