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 exclude Spaces in Alternate Index

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jagan_infotech

New User


Joined: 08 Feb 2007
Posts: 1
Location: Trivandrum

PostPosted: Sat Apr 24, 2010 1:59 am    Post subject: How to exclude Spaces in Alternate Index
Reply with quote

Hi,

Am trying to create a VSAM file and an Alternate index. Since my alternate key contains many (more than 40000) spaces, I want to exclude them while building index.

Will the option KEYRANGES work for this? If so, could you give me the syntax for this.


Thanks,
Jagan S.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Apr 24, 2010 2:05 am    Post subject:
Reply with quote

Hello and welcome to the forum,

At the top of the page is a link to "IBM Manuals". Suggest you become familiar/comfortable with these. . .

Quote:
Will the option KEYRANGES work for this?
If the manual can be believed, no. . .

IBM wrote:
KEYRANGES((lowkey highkey)[(lowkey highkey)...])
KEYRANGE is no longer supported; If you specify this parameter, VSAM ignores it, and no message is issued.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Apr 24, 2010 2:43 am    Post subject:
Reply with quote

Quote:
Am trying to create a VSAM file and an Alternate index. Since my alternate key contains many (more than 40000) spaces, I want to exclude them while building index.
Huh? An alternate includes all of the records -- excluding some of the records makes absolutely no sense when you think of the purpose of an alternate index. Either you need to explain more what you think your problem is, or explain why you think you need to exclude some of your records from the alternate index (which cannot be done, anyway, so your thinking is WAY off base already).
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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