View previous topic :: View next topic
|
Author |
Message |
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Alternate way is to use an alternate key. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
|