Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File Section for indexed files in COBOL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: File Section for indexed files in COBOL.
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: 3158
Location: Tucson AZ

PostPosted: Fri Apr 20, 2007 4:33 pm    Post subject:
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    Post subject:
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: 2276
Location: @my desk

PostPosted: Fri Apr 20, 2007 5:29 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Apr 20, 2007 8:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us