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: 8166
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Confusion b/w index and subscript Deepak kumar25 Mainframe Interview Questions 7 Thu Aug 31, 2017 6:50 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

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