what will happen if i give program name and member name as
different? program runs successful or w'll abend?

Answers were Sorted based on User's Feedback



what will happen if i give program name and member name as different? program runs successful or w..

Answer / vijay

The program will be compiled successfully and the load will
be created with the member name only. So, no issues with
program name and member name being different.

Is This Answer Correct ?    8 Yes 2 No

what will happen if i give program name and member name as different? program runs successful or w..

Answer / prachi

During compilation the program will give an error

Is This Answer Correct ?    7 Yes 3 No

what will happen if i give program name and member name as different? program runs successful or w..

Answer / tata

(a)//COMPILE.SYSIN DD DSN=OZA093.SUNIL.COBO1(DATE),DISP=SHR
(b)//LKED.SYSLMOD DD
DSN=OZA093.SUNIL.LOADLIB(DATE),DISP=SHR

here (a) is for compilation.and (b) is for
execution.i.e.loadmodule of our program. after compilation
of our program.the compiler will generate an object code to
our program. this only going to be executed..what ever u
give at
LOADLIB(DATE)..this name (for my program loadmodule name is
date) should be specified at
//step exec pgm=loadmodulename.(here date).

Is This Answer Correct ?    3 Yes 2 No

what will happen if i give program name and member name as different? program runs successful or w..

Answer / sudhir

Compile will be succesful. but while linking the program-name will be used to scan the Object library. it will not be found and linking will not complete successfully.

Is This Answer Correct ?    2 Yes 1 No

what will happen if i give program name and member name as different? program runs successful or w..

Answer / raj

If its been dynamically called by some other program then
the member name and the program name should be same .
else if its standalone program then it will work

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


What is the difference between Perform para and perform asaection in cobol?

3 Answers   TCS,


How do u write test cases?

0 Answers   IBM,


Difference between ps, esds

3 Answers  


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  






Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.

6 Answers   EDS,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


what is the use of filler in cobol programing?

4 Answers   MAT,


What is the difference between goback, stop run and exit program in cobol?

0 Answers  


is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


diffrence between renames and redifnes with examples

3 Answers   IBM,


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


Categories