View previous topic :: View next topic
|
Author |
Message |
ravigouram
New User
Joined: 18 Apr 2007 Posts: 2 Location: Pune
|
|
|
|
Hi,
I am getting the file status 95 while opening an indexed file in COBOL.
Could anybody tell me how the file section should be for indexed files in COBOL.
Regards,
Ravi. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Why don't you start by looking at the chapter about Processing VSAM files in the programmers guide? It also gives good examples...... |
|
Back to top |
|
|
Shrimathi Krishnan
New User
Joined: 19 Apr 2007 Posts: 39 Location: Chennai
|
|
|
|
Hi
u need to give information as
SELECT FILE-NAME ASSIGN TO REFERENCE-NAME
ORGANIZATION IS INDEXED
ACCESS IS SEQUENTIAL/RANDOM
RECORD KEY IS RECORD-KEY OF THE FILE |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi
Could you plz copy here your file description and OPEN statements..?
Thanks
Arun |
|
Back to top |
|
|
Shrimathi Krishnan
New User
Joined: 19 Apr 2007 Posts: 39 Location: Chennai
|
|
|
|
FD FILE-NAME
COPY COPYBOOK-NAME
OPEN INPUT FILE-NAME |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Have you done as Bill suggested?
Is it working now?
If you choose to post your file definition, also please post your SELECT/ASSIGN. |
|
Back to top |
|
|
|