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 

TO ANYBODY WHO KNOWS DATACOM

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Wed May 02, 2007 6:34 am    Post subject: TO ANYBODY WHO KNOWS DATACOM Reply with quote

Hi,

I am facing a problem in reading a table in Datacom.

I have a key for which there are multiple rows in the table, so I tried to get the rows one by one by placing the read logic in loop, but the problem
is the same row is getting read all the times, and the program is going in loop.

Anybody knows how to solve this???
_________________
Regards,
Sharada.

Always perform your duty efficiently and without any selfish attachment to the results,
because by doing work without attachment one attains Supreme.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed May 02, 2007 6:46 am    Post subject: Reply with quote

sharada,

You need to work on explanatory titles. You need to remember that you are not in auction hall and yelling out will not help you.

coming to your problem, I am guessing that it is more of a programming error than a database issue.


Try this

1. Since you have multiple keys, take a count of no: of dups in the table for just 1 key.

2. Now perform the read paragraph exactly "count" times from step 1 with a display of each
key

3. Now check to see if you are reading the same key over and over.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bstillwa
Beginner


Joined: 01 Nov 2004
Posts: 23
Topics: 6
Location: NJ

PostPosted: Wed May 02, 2007 7:40 am    Post subject: Reply with quote

What commands are you using? The first command must be REDKG (read key greater or equal), followed by REDNX (read next). If only REDKG is used, then yes, you will only retrieve the same record over and over.
_________________
Bev.
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 -> Database 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