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
 

 

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 Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm
No new posts Drop building Alternate Index for a p... bhavin.mehta JCL & VSAM 6 Mon Jul 04, 2016 3:47 pm
No new posts VSAM Alternate Index in CICS jacobdng CICS 2 Fri May 06, 2016 1:41 pm


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