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 care has to be taken to force program to execute above 16 Meg line?

1 Answers  


when COMP-3 is preferrable?

3 Answers   Patni,


In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?

1 Answers  


)what is retrieve?

1 Answers   IBM,


What is file status 39 ?

10 Answers   JPMorgan Chase,






Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


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

3 Answers   TCS,


How to recover a deleted source physical file from library?

1 Answers   HCL,


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


Categories