IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File Section for indexed files in COBOL.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravigouram

New User


Joined: 18 Apr 2007
Posts: 2
Location: Pune

PostPosted: Fri Apr 20, 2007 4:25 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Apr 20, 2007 4:33 pm
Reply with quote

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
View user's profile Send private message
Shrimathi Krishnan

New User


Joined: 19 Apr 2007
Posts: 39
Location: Chennai

PostPosted: Fri Apr 20, 2007 4:59 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Apr 20, 2007 5:29 pm
Reply with quote

Hi

Could you plz copy here your file description and OPEN statements..?

Thanks
Arun
Back to top
View user's profile Send private message
Shrimathi Krishnan

New User


Joined: 19 Apr 2007
Posts: 39
Location: Chennai

PostPosted: Fri Apr 20, 2007 5:48 pm
Reply with quote

FD FILE-NAME
COPY COPYBOOK-NAME

OPEN INPUT FILE-NAME
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 20, 2007 8:12 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top