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
 

 

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: 8057
Location: East Dubuque, Illinois, 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
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 COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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