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 

Problem with cursor

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


Joined: 09 May 2005
Posts: 7
Topics: 6
Location: Kolkata

PostPosted: Mon Jun 13, 2005 2:41 am    Post subject: Problem with cursor Reply with quote

Hi,
The code given below opens a cursor c1 for making a selection from the table t_cer_grp1.How can I close the cursor C1 at the end of the proc.The conventional close c1 is not working with this sort of cursor
Code:

FOR_LOOP: FOR each_row AS C1 CURSOR FOR
        SELECT group_no FROM RATTH.t_cer_grp1 g1
        WHERE LTRIM(RTRIM(g1.tf_tc_indicator)) = v_tf_tc_indicator
        DO CALL            RATTH.OSDP_SET_LEVEL_PROC(each_row.group_no,v_open_start_date,
           v_publication_start_date,v_sqlstate,v_sqlcode,v_output_message);
        IF v_output_message <> 'Y' THEN
      SET v_success_ind = 'N';
   END IF;
END FOR;
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jun 13, 2005 5:10 am    Post subject: Reply with quote

Joy,

what is the language you are trying to use?

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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