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
 
Accessing Alternate index

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

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Wed Jul 27, 2005 6:06 pm    Post subject: Accessing Alternate index
Reply with quote

Hai friends,

I am having the following index-file

Field key type Type Length
=======================================
Video-Code Primary 9 5
Video-Title --- X 30
Supplier-Code Alt with Duplicates 9


The supplier codes are not in contigous, ihave to list video-codes by supplier wise

i have to access by alternate index key. it should access as
supplier codes - 01, 01, 01, 02, 02, 03,04, 04, 04


what i did !
========

move zero to supplier-code
start f1 key is greater than supplier-code invalid key imp-stmt.
--
perform read-para until eof='t'
--
--
read-para
read next record at end move 't' to eof .


but i am not getting result properly.
Back to top
View user's profile Send private message

Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Tue Aug 02, 2005 11:41 am    Post subject: Got it right Now.
Reply with quote

what i did was correct

Now i got my result ! icon_biggrin.gif
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 KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Need help on SFTP alternate for LOCSI... ashok_uddaraju JCL & VSAM 2 Thu Oct 26, 2017 12:43 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
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 SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am

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