created cluster using IDCAMS ..that is empty ..when i write a
program for read using Input ..wil it open the cluster or
gives any error?

Answers were Sorted based on User's Feedback



created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil i..

Answer / pramod

Open statement itself fails when u try to open an empty
file.

Is This Answer Correct ?    8 Yes 0 No

created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil i..

Answer / ganesh

writing the vsam file using the input modeis not possible
as system will find the file as empty and will throw error
that file can not be opened but yes you can write the file
using the outout mode.

Is This Answer Correct ?    2 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 are different data types in cobol?

1 Answers  


study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

4 Answers   TCS,


What is cobol?

1 Answers  


what happens of we dont give time stamp in precompilation process

2 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


tell me about examine inspect and evaluate ?

2 Answers   CTS,


What kind of error is trapped by on size error option?

1 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  


i want a program using by if, evaluate , string, unstring, perform, occurs?

2 Answers  


How are the next sentence and continue different from each other?

1 Answers  


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


Categories