Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to use alternate index in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
jitu852

New User


Joined: 30 Apr 2007
Posts: 27
Location: Hyderabad

PostPosted: Fri Jul 18, 2008 12:01 pm    Post subject: how to use alternate index in COBOL
Reply with quote

Hi,

i want to know how to define the FD section for ALTERNATE INDEX

Details:

i have a VSAM for which the key is 0-40(ie 05 KEY
10 FRST PIC X.
10 LST PIC X(40). )

My reqirement is to access using key the ( 10 LST PIC X(40). ) only for which i ctreated a aternate index for it having my requirement but
i am not able to use it in my cobol prog.

can any body describe how the FD section describe for it.
Back to top
View user's profile Send private message

Rajesh Sampath

New User


Joined: 18 Jun 2008
Posts: 9
Location: Pune

PostPosted: Fri Jul 18, 2008 1:14 pm    Post subject:
Reply with quote

Hi Jitu,

Very Simple..

While define the file-control mention your record key & alternate key thats all.

Nothing special in the FD section. Define, before as u define

with Regard

Rajesh Sampath
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8280
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 18, 2008 4:51 pm    Post subject:
Reply with quote

When you say
Quote:
i am not able to use it in my cobol prog.
are you getting a compile error? Are you getting a run-time error? What is/are the error message(s) -- quote and paste them so the precise message is shown.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jul 22, 2008 6:24 pm    Post subject:
Reply with quote

Try the cobol pgmmer's guide for your compiler.

The light grey bar at the top of this panel has a link to IBM manuals. You should find info regarding your problem.
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 How to display offset thru cobol prog... tvinodkumar7 CICS 1 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us