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: 2238
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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