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
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 |
Answer / prachi
During compilation the program will give an error
| Is This Answer Correct ? | 7 Yes | 3 No |
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 |
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 |
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 |
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
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
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
wht happens if we dnt give scope terminator ?
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
What is Redefines clause?
can we use 77 level no for Redefines?if we use give an example?
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)
What is Static and Dynamic linking ?
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?
Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?