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
 

 

Browse VSAM in absence of few starting Characters of the key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 129
Location: INDIA

PostPosted: Wed Nov 05, 2014 3:36 pm    Post subject: Browse VSAM in absence of few starting Characters of the key
Reply with quote

HI All,

I have the Below Requirements

KSDS Key starting form 1st to 54th Position

I have to search on the position starting form 5 to 16 ( 11 Characters)

I am trying a STARTBR and then Read-Next till the record found but it abends with AEIT perhaps because of AEIT ..

Can you help me to understand if I am doing it in incorrect way and some other way required to browse the file .. can we browse VSAM when we dont have several starting characters of key?

Please let me know if I am not clear above or missing anything. Thanks in Advance!!
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Nov 05, 2014 4:17 pm    Post subject: Reply to: Browse VSAM in absence of few starting Characters
Reply with quote

Unless you use an Alternate Key, you can only read the entire file picking the records you want (not a good idea).
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 129
Location: INDIA

PostPosted: Wed Nov 05, 2014 4:34 pm    Post subject:
Reply with quote

Thanks for your response Bill .. These files are the part of a Legacy system and by used all the screens .. IN this case I guess we can not approach in this way and accesses the path of the file.

I also don't want to go by reading one to one records and was looking for alternate way
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Nov 05, 2014 4:57 pm    Post subject: Reply to: Browse VSAM in absence of few starting Characters
Reply with quote

How else the file(s) are used does not affect the use of an alternate key for your need. Or shouldn't.

If you can explain a bit more, you may get some suggestions.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Nov 05, 2014 7:45 pm    Post subject:
Reply with quote

Alternate way is to use an alternate key.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Nov 05, 2014 8:06 pm    Post subject: Reply to: Browse VSAM in absence of few starting Characters
Reply with quote

defining an alternate index will only impact the CICS files definitions and startup JCLs

and obviously the program ( probably new ) using it

existing programs will NOT be impacted
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am


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