IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Read a VSAM file using both primary and alternate key


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Sat Dec 06, 2008 4:16 pm
Reply with quote

Hi ,
How to read a VSAM file using both primary and alternate key together in CICS ?.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 06, 2008 8:03 pm
Reply with quote

Have you read up on the READ command in the CICS Language Reference (link at the top of this page)? Did you see how many keys can be specified in the command (i.e., one)? So how do you provide a primary key value AND an alternate key value in one field?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Dec 06, 2008 11:09 pm
Reply with quote

Hello,

You have not been very specific about what you want to do (no field names/example data).

From the little you have posted, you might consider adding another alternate index that contains both the primary key and this particular alternate.

There might be storage or performance considerations so this shouldn't just be thrown in to solve one program requirement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top