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

what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?

9 Answers   TCS, Tech Mahindra,


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

0 Answers  


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.

2 Answers   IBM,






plz any one tell clearly the justify right clause?

1 Answers  


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


Explain about level numbers?

3 Answers  


soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?

7 Answers   CitiGroup, IBM,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


How does IDMS insure data integrity?

1 Answers  


Categories