how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

Answers were Sorted based on User's Feedback



how can u find out just by seeing wheater it is main program or sub program ? any two ways to identi..

Answer / ankur

If the Program is having 'USING' clause with procedure
division then it will be Sub-program.

Eg - PROCEDURE DIVISION USING DFHCOMMAREA.

Is This Answer Correct ?    14 Yes 1 No

how can u find out just by seeing wheater it is main program or sub program ? any two ways to identi..

Answer / guest

for mainprogram it ends with stoprun,subprogram ends with
exit

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More COBOL Interview Questions

There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.

1 Answers   Mind Tree,


Write a program to explain size error.

0 Answers  


RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE

12 Answers   TCS,


When is a scope terminator mandatory?

3 Answers  


What are the different rules for performing sort operation?

0 Answers  






How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

2 Answers   L&T,


WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??

1 Answers  


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


Categories