MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sequential read of VSAM file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
rakshith
Beginner


Joined: 26 Jul 2005
Posts: 32
Topics: 16
Location: bangalore

PostPosted: Mon Jan 02, 2006 9:11 am    Post subject: sequential read of VSAM file Reply with quote

hi all ,

i have doubt regarding reading the file sequentially,

I have a file like this ,

state zip city rating

aa 12345 city1
bb 22222
cc 33333 city.
dd 44444
..
..

first read the file according with the keys state, zip and city

assume tha we did using using startbr and readnext

here i have to check whether record found or not.

if record found do some logic let say logic1.

if record not found i have to once again read same file with keys state and zip only not city.
if record found in this read without city i have to do the same logic i.e logic1.

My question is how to read the whole file to get appropriate rating ?

do any one having good method please share with me
[/b]
Back to top
View user's profile Send private message Yahoo Messenger
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Mon Jan 02, 2006 12:32 pm    Post subject: Reply with quote

rakshith, can you please explain your logic.

According to your posting, for both keys you are doing LOGIC1. So why don't you just do with state+zip only???

Explain your question more with some examples. You has given the INPUT. Now how shall the Output be?? Is there any grouping for ratings has to done???
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group